astral-sh / rye

a Hassle-Free Python Experience
https://rye.astral.sh
MIT License
13.82k stars 467 forks source link

Use `rye new project` replace `rye init project && cd project && rye sync` #1321

Closed wngtk closed 2 months ago

wngtk commented 3 months ago

rye init can sometimes just want to do the following and see, but it's easy to initialize a Python project in the wrong place. How about rye adding a new command, like cargo new, to create a project and run rye sync?

Zaloog commented 3 months ago

@wngtk Isnt defining an alias on your own for your shell an easy solution to this? I also created a TUI for rye (rye-tui) with basic functionality, that way you can manage projects with an UI and it automatically uses the corresponding working directory of the project when adding packages or syncing