https://github.com/williamcanin/cookiecutter-python-package
:package: :snake: :cookie: With Cookiecutter Python Package, you can create your Python packages with a professional structure and with a lot of resources available.
https://github.com/williamcanin/cookiecutter-python-package
cookiecutter cookiecutter-template poetry-generator python python-3
Last synced: 6 months ago
JSON representation
:package: :snake: :cookie: With Cookiecutter Python Package, you can create your Python packages with a professional structure and with a lot of resources available.
- Host: GitHub
- URL: https://github.com/williamcanin/cookiecutter-python-package
- Owner: williamcanin
- License: mit
- Created: 2020-04-27T22:58:32.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-20T15:33:03.000Z (over 1 year ago)
- Last Synced: 2025-02-13T11:50:12.391Z (8 months ago)
- Topics: cookiecutter, cookiecutter-template, poetry-generator, python, python-3
- Language: Python
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cookiecutter Python Package

With **Cookiecutter Python Package**, you can create your Python packages with a professional structure and with a lot of resources available.
Pypkg Cookiecutter is a template inspired by the [Cookiecutter Pypackage](https://github.com/audreyr/cookiecutter-pypackage).
## Requirements
| Required | Required version | How to verify | How to install |
| --------------- | ------------------- | ------------------- | --------------- |
| Git | >= 2.25.0 | `git --version` | [Git](http://git-scm.com/) |
| Python | >= 3.8 | `python --version` | [Python](https://www.python.org/about/gettingstarted/) |
| Black | >= 19.10b0 | `black --version` | [Black](https://pypi.org/project/black/) |
| Cookiecutter | >= 1.7 | `cookiecutter --version` | [Cookiecutter](https://pypi.org/project/cookiecutter/) |
| Pip | >= 20.0.2 | `pip --version` | [Pip](https://pip.pypa.io/en/stable/installing/) |
| *Poetry | >= 1.0.5 | `poetry --version` | [Poetry](https://python-poetry.org/docs/#installation) |\* If chosen at creation
## Using:
```
$ pip install cookiecutter --user
$ cookiecutter https://github.com/williamcanin/cookiecutter-python-package.git
```
After that, go to the folder with the name of the project that you entered at the time of the questions. Example:```
$ cd my_package
```**Create the virtual machine, activate it and install the requirements:**
```
$ python -m venv venv
$ . venv/bin/activate
$ pip install --upgrade pip
$ pip install -r requeriments_dev.txt requeriments.txt
```or
**Create the virtual machine, activate it and install the requirements using Poetry:**
```
$ poetry shell
$ poetry install
```There, you can start to develop your Python package.
## Developers of Cookiecutter Python Package
If you want to build something more in this project, prepare the environment like this:
```
$ git clone https://github.com/williamcanin/cookiecutter-python-package.git
$ cd cookiecutter-python-package
$ python -m venv venv
$ . venv/bin/activate
$ pip install --upgrade pip
$ pip install -r requirements.txt
```**Tests**
```
$ tox
```## License
The gem is available as open source under the terms of the [MIT License](https://github.com/williamcanin/cookiecutter-python-package/blob/master/LICENSE).