Hacker News new | past | comments | ask | show | jobs | submit login

You can do this:

  [project.scripts]  
  hello = "example:hello"  
Assuming you have src/example.py with a function called hello, then "uv run hello" will call that function. I think you also need to have a (empty) src/__init__.py file.



Consider applying for YC's Summer 2025 batch! Applications are open till May 13

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

Search: