-rw-r--r--
77 words
1 min2 code blocks1 figure
2024-10-15
A nice workflow for creating Python projects with AI
First, create a new project using poetry
poetry new asciinema-editor
This gives you a nice, clean new project structure.
.
├── README.md
├── asciinema_editor
│ ├── __init__.py
├── poetry.lock
├── pyproject.toml
└── tests
└── __init__.py
Now, let the model know that you have this project structure and ask it to write you code. Claude does a nice job of providing the relevant bits to make your project work nicely.
- e.g.
__main__.py(see TIL on this) - Exposes the relevant main function in
__init__.pymaking it easier to import and use the package in other scripts if needed.
corey@gallon.me:~$ tail -f /writing
Attach to the stream.
An email when I have something worth sending.
Replies encouraged!
corey@gallon.me:~$ ls -lt /til
↑2024-11-14
Wrap with HTML tags in VSCode
▸2024-10-15
A nice workflow for creating Python projects with AI ⋅ you are here
↓2024-10-15
__main__.py file in a project