Yet another modern Python Package (pypi) with emphasis in CI/CD and automation.
Project description
Python Package Generator
Features
module: 24 module+cli: 28 pytest-plugin: 26
Scaffold a modern ready-to-develop Python Package (see Quickstart)
Generate over 24 files, to setup Test Suite, build scripts & CI Pipeline
Python Package Template (source code at src/cookiecutter_python/) implemented as a Cookiecutter
Extensively Tested on various systems, factoring the below:
System’s platform: “Linux”, “MacOS” & “Windows”
System’s Python: 3.6, 2.7, 3.8, 3.9 & 3.10
See the Test Workflow on the CI server.
Auto Generated Sample Package Biskotaki
Check the Biskotaki Python Package Project, for a taste of the project structure and capabilities this Template can generate!
It it entirely generated using this Python Package Template:
Generated Python Package Features
Test Suite, using pytest, located in tests dir
Parallel Execution of Unit Tests, on multiple cpu’s
Documentation Pages, hosted on readthedocs server, located in docs dir
Automation, using tox, driven by single tox.ini file
CI Pipeline, running on Github Actions, defined in .github/
Job Matrix, spanning different platform’s and python version’s
Platforms: ubuntu-latest, macos-latest
Python Interpreters: 3.6, 3.7, 3.8, 3.9, 3.10
Parallel Job execution, generated from the matrix, that runs the Test Suite
Quickstart
Installation
Usage
Open a console/terminal and run:
generate-python
Now, you should have generated a new Project for a Python Package, based on the Template!
Just ‘enter’ (cd into) the newly created directory, ie cd <my-great-python-package>.
Try Running the Test Suite!
tox
Read the Documentation’s Use Cases section for more on how to leverage your generated Python Package features.
License
Free/Libre and Open Source Software (FLOSS)
Notes
Currently, since the actual cookiecutter template does not reside on the root directory of the repository (but rather in src/cookiecutter_python), ‘cloning’ the repository locally is required at first.
This was demonstrated in the Quickstart section, as well.
For more complex use cases, you can modify the Template and also leverage all of cookiecutter’s features, according to your needs.
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
Built Distribution
Hashes for cookiecutter_python-1.7.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c79d3bedd69124c3249474b8c2fbd540fec044b4b6318db4b1abe9a63f72667 |
|
MD5 | 15933e5b88422bc675a8a5e86261c668 |
|
BLAKE2b-256 | eddf317f26d98c08b850d078aaab4796ce610b23345d308c9379e512cf076185 |
Hashes for cookiecutter_python-1.7.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bce909fc4c84329c9e6f01c315b0a9844efd58770c0b63e7c4ad6c8b713daa1 |
|
MD5 | 9bfffea02455823815292733aac9f1ec |
|
BLAKE2b-256 | fcd30c15a2d7a57ae90ae595197a9b34d029de9d64379b7dcd7d542f1f9993a3 |