Skip to content

thiswillbeyourgithub/BrownieCutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 BrownieCutter or pip 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

About

Quick script to create new python project

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages