Quick script to create new python project
Project description
BrownieCutter
- I just needed a quick script to lower the time cost of creating new FOSS tools. So just run this script, give the project name and class name and you'll get a proper template dir with some boiletplate code done for you.
- Yes BrownieCutter was created by itself.
- Inspired by CookieCutter.
Getting started
- As an uv tool:
uvx BrownieCutter@latest --help - From pypi:
uv pip install BrownieCutterorpip install BrownieCutter - From git: git clone then
pip install . BrownieCutter --help
Roadmap
This TODO list is maintained automatically by MdXLogseqTODOSync
- refactor to store the full files as is in a subdir, then write a function that does the regex replacement, major code cleanup and readibility expected from this
- add a pre commit hook file with isort, black
- add lines necessary for using MdXLogseqTODOSync
- fix the issue you found when refactoring wdoc about init.py vs main.py use the code of human readable seed for that
- add arg "requirements_source" to automatically populate the setup.py with them
- store the file content as fulltext in a source dir instead of in a var
- add arg "add to root"
- which automatically overwrites (copy not move) placeholders with what's given, for example to give a LICENSE
- must support dirs too
- add arg "add to project dir"
- for example used to copy the utils dir directly at the right location
- add args to import code directly from a python file
- use ast to match the imports line at the top
- use ast to get the class code you want to use
- if there is a version number, automatically set it to this number
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
browniecutter-0.1.20.tar.gz
(18.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file browniecutter-0.1.20.tar.gz.
File metadata
- Download URL: browniecutter-0.1.20.tar.gz
- Upload date:
- Size: 18.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6f709caa6de3401c42cf54bd1eefc4c6936c1c7c014aabfb36919d0dc929a7d
|
|
| MD5 |
593df2a872b0115371b928bfa0adcb3c
|
|
| BLAKE2b-256 |
fdff1a78aa668de08fa2e644c81da5f506633833f66cc5863c9422ecdefd7664
|
File details
Details for the file BrownieCutter-0.1.20-py3-none-any.whl.
File metadata
- Download URL: BrownieCutter-0.1.20-py3-none-any.whl
- Upload date:
- Size: 18.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07fb62926b6fe171f9510de526a91a06b04564143d29ea7d1b528b7ac8528be5
|
|
| MD5 |
1efcce38b942625c41e0039a79aeb506
|
|
| BLAKE2b-256 |
37eea4565d0657aa583b86e6edc464553ad6b6b87e2e3058f3c049ed4846369d
|