1
0
Fork 0
mirror of synced 2026-12-06 18:52:25 +00:00
No description
  • Python 90.6%
  • Dockerfile 9.4%
Find a file
2025-05-27 15:47:50 -04:00
.github Bump actions/setup-python from 4.1.0 to 4.5.0 (#1305) 2023-02-23 22:06:47 +01:00
docs Remove the line continuation char in the docs (#1258) 2023-02-19 22:37:15 +01:00
hooks still no better template exists in the big 25 (updated for 2025) 2025-05-26 16:26:50 -04:00
tools 📚 Document pre-commit hook for pyupgrade (#1065) 2021-11-12 17:13:09 +01:00
{{cookiecutter.project_name}} cosign version 2025-05-27 15:47:50 -04:00
.gitattributes Enable end-of-line normalization with Git attributes (Cookiecutter) (#166) 2020-04-22 16:04:32 +02:00
.gitignore Add documentation for Cookiecutter (#39) 2020-04-05 23:48:55 +02:00
.pre-commit-config.yaml Bump Prettier from 2.5.1 to 2.6.0 (#1177) 2022-05-16 17:30:06 +02:00
.readthedocs.yml First round: still much work to do! 2023-08-04 00:30:12 -04:00
CODE_OF_CONDUCT.md 📚 [CODE_OF_CONDUCT] Upgrade to Contributor Covenant 2.1 in Markdown (#1203) 2022-05-25 22:15:03 +02:00
CONTRIBUTING.md 📚 [CONTRIBUTING] Convert to Markdown using MyST (#1204) 2022-05-25 22:42:47 +02:00
cookiecutter.json still no better template exists in the big 25 (updated for 2025) 2025-05-26 16:26:50 -04:00
LICENSE still no better template exists in the big 25 (updated for 2025) 2025-05-26 16:26:50 -04:00
noxfile.py First round: still much work to do! 2023-08-04 00:30:12 -04:00
README.md still no better template exists in the big 25 (updated for 2025) 2025-05-26 16:26:50 -04:00

cookiecutter-neopy

Hi there! I'm an amateur Python developer, and I love tyrannosaurus, and equally love cookiecutter-hypermodern-python. However, in my extended use of both, I noticed some shortcomings that I wanted to address.

  1. tyrannosaurus uses its own templating engine, but it unfortunately is very buggy and most of its exclusive features (like sync) are poorly implemented. I wanted to use cookiecutter's templating engine, which is much more robust and well-maintained.
  2. tyrannosaurus tries too hard to make testing into a monolith, which yields unintelligible test results. Even though I prefer tox over nox, I still chose to take cookiecutter-hypermodern-python's approach of using nox, because it's much more flexible and easier to use.
  3. tyrannosaurus never seems to update its dependencies, and it's stuck on Python 3.8. I wanted to use Python 3.11 exclusively to make use of the increased performance and syntax features, and I wanted to use the latest versions of all the dependencies.
  4. tyrannosaurus has a lot of boilerplate code pre-included, mainly for capturing test data and retrieving assets. While this is a good idea. It doesn't help that half of it is wrong and fails its own type checks. 🙃 The boilerplate I chose to implement in my template is a lot lighter and only supplies things that EVERY project uses.
  5. cookiecutter-hypermodern-python is a great template, but it lacks the tooling for containerization and deployment with Docker like tyrannosaurus has. I wanted to add that to this template.
  6. cookiecutter-hypermodern-python also favors lower-level libraries like click over higher-level libraries like typer. I wanted to use typer, because it's a great library that makes it easy to build CLI applications.

For all of these reasons, I decided to fork cookiecutter-hypermodern-python and make my own template, cookiecutter-neopy. I hope you enjoy it!

TODO

  • Convert to Python 3.11
  • Update dependencies
  • Add settings.yml for GitHub Probot
  • Add typer
  • Add Dockerfile
  • Add docker-compose.yml
  • Add GitHub Actions for publishing Docker image
  • Write typer boilerplate & tests
  • Write asset & metadata boilerplate & tests

Usage

# install pip & pipx through your distribution's package manager
pipx install poetry
pipx inject poetry poetry-plugin-export

pipx install nox
pipx inject nox nox-poetry

pipx install cookiecutter

# confirm poetry can find both Python~3.11 and Python~3.12
pipx python list

cookiecutter gh:regulad/cookiecutter-neopy

Please note, you must have the following installed and on PATH: nox, Python 3.11/3.12, poetry & git

The following segment of the README is the original README from cookiecutter-hypermodern-python.


cookiecutter-hypermodern-python

Status Python Version CalVer License
Read the documentation Tests Codecov
pre-commit enabled Black codestyle Contributor Covenant

logo

Cookiecutter template for a Python package based on the Hypermodern Python article series.

✨📚✨ Read the full documentation

Usage

cookiecutter gh:cjolowicz/cookiecutter-hypermodern-python --checkout=2022.8.23

Special branches in the frameworks folder are available for some Python frameworks like FastAPI, Discord.py, and more. Check GitHub to see if there's a branch for your framework of choice.

These special templates also carry the opinionated nature of the base template, so you can expect the same quality of code and documentation.

cookiecutter gh:cjolowicz/cookiecutter-hypermodern-python --checkout=frameworks/fastapi

Features

The template supports Python 3.7, 3.8, 3.9, and 3.10.