Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boil the plate! #25

Closed
bzurkowski opened this issue Nov 5, 2021 · 1 comment
Closed

Boil the plate! #25

bzurkowski opened this issue Nov 5, 2021 · 1 comment

Comments

@bzurkowski
Copy link

Some time ago I created a Python tool (Boil) for bootstraping projects in various technologies (languages, frameworks).

First, you search for available (boiler)plates:

➜  $ boil list
Available plates:
ansible_role            license                 python_script
bash_script             python_package          ruby_gem

➜  $ boil search python
Found plates (2):
python_package          python_script

Then, fill in some variables:

➜  $ boil new python_package
Initializing new Python package.
Package name [e.g. fancy_package]:
fancy_package
Description [e.g. Super fancy package]:
Some fancy stuff
Url [e.g. https://github.com/username/package_name]:
https://github.com/bzurkowski/fancy_package
License [MIT]:
Apache License 2.0
Author [e.g. John Smith]:
Just me
Done!

You get complete package structure with proper module names, basic test environment, linter, exception class etc.:

➜ $ tree fancy_package
fancy_package
├── MANIFEST.in
├── README.md
├── README.rst
├── fancy_package
│   ├── __init__.py
│   └── exceptions.py
├── requirements.txt
├── setup.py
├── test-requirements.txt
├── tests
│   ├── integration
│   │   ├── __init__.py
│   │   └── test_example.py
│   └── unit
│       ├── __init__.py
│       └── test_example.py
└── tox.ini

The tool is based on Jinja templates like this one.

I wonder if I could use your code as a plate in my project. With Node.js support it could help you too! 😉

@sindresorhus
Copy link
Owner

Nice work. While it's not something I would personally use, feel free to use the boilerplate contents here as you please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants