Hacker Newsnew | past | comments | ask | show | jobs | submit | TheIronYuppie's commentslogin

Disclosure: I co-founded Bacalhau (bacalhau.org)

If you have any feedback about the platform, would love to hear it!


For scripting... HIGHLY recommend putting your dependencies inline.

E.g.:

  #!/usr/bin/env python3
  # /// script
  # requires-python = ">=3.11"
  # dependencies = [
  #     "psycopg2-binary",
  #     "pyyaml",
  # ]
  # ///
Then -

  uv run -s file.py


How does this interact with your code editor or IDE? When you edit the file, where does the editor look for information about the imported third-party libraries?


Usually the VENV and import lines are enough


How do you determine where the venv is? AFAIK, uv run in script mode creates the venv in some random temporary directory.


I don’t know of a convenient way of doing it, but a clumsy way of doing it is to run this in your script:

  import os
  
  print(os.environ['VIRTUAL_ENV'] + '/bin/python')
Then, e.g. in VS Code, you bring up the command palette, run Python: Select Interpreter, and enter the result.


uv v0.6.10 has just been released with a more convenient way of doing this:

    uv python find --script foo.py
https://github.com/astral-sh/uv/releases/tag/0.6.10

https://docs.astral.sh/uv/reference/cli/#uv-python-find--scr...


Do you need a wrapper script for scripts in the PATH or execve? I would usualy chmod+x the script but I am not sure here.


If you want to make it work regardless of where uv is installed, you can use the following shebang line:

  #!/usr/bin/env uv run --script


Discussed here:

> Using uv as your shebang line

https://news.ycombinator.com/item?id=42855258

Since `env` doesn’t pass multiple arguments by default, the suggested line uses `-S`:

   #!/usr/bin/env -S uv run --script


Not at a laptop to try this right now, but shouldn't this be possible with the shebang? Something along the lines of:

    #!/home/tetha/Tools/uv run


Yes it is, I just converted my work scripts over this afternoon.

    #!/usr/bin/env uv run


Bacalhau / Expanso | Distributed Compute and Orchestration | REMOTE | Full-time | Multiple Roles

Expanso[0] is building a distributed compute platform (Bacalhau.org[1]), enabling users to run compute jobs where the data resides, unlocking new possibilities for data-intensive applications. We are fostering an open ecosystem of contributors and partners.

We are looking for passionate and skilled individuals to join our growing team. We have positions open across several areas:

- Senior Software Engineers (Go): Design, develop, and maintain the core Bacalhau platform. Experience with distributed systems, networking, and cloud technologies is highly desired.

- Developer Relations: Engage with the Bacalhau community, create tutorials and documentation, and drive adoption of the platform.

Our stack includes Go, Docker, and various cloud technologies.

Learn more and apply[2]

[0] https://expanso.io

[1] https://bacalhau.org

[2] https://expanso-inc.breezy.hr/


Hello - the link to apply only displays the engineering position. How can I apply for the developer relations role?

Thanks!


Heya!

Can you say more? We made this container (for DuckDB) with open source code, that anyone can download and play around with.

(To be clear, I wrote this, and cofounded Bacalhau :), and published it to the docs pages here - so that's what I meant by "we")


Heya!

Dave from the Bacalhau Project - really cool feature for dynamically scaling your cluster and queueing!

Let us know how we can get better!


Hi!

Can you say more about what you mean? You don't like Substack? We're open to alternatives!

Disclosure: I co-founded Bacalhau


Heya!

Happy to answer any questions about this.

Disclosure: I co-founded Bacalhau.


Cool capability, I'll give it a try my local network.

At the end of the article you mentioned this:

While Bacalhau is open-source software, the Bacalhau binaries go through the security, verification, and signing build process lovingly crafted by Expanso.

It looks like you have a typo in the link for Expanso. Currently it points to https://expanse.io/ and not https://expanso.io/


Thank you so much!


Hey all!

Next one in our series of log analysis - do real-time adhoc querying of things like your nginx or other logs.

Disclosure: I lead Expanso


lol exactly - I think not having horrible crimes committed against you is usually “expected”


it's crazy how good this is - if all self-checkout was like this, it'd be so much better (not sure how possible that is)


Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: