Thom's COokie CUtter for Python (CoCuP)
Description
A 'cookie cutter' to create a blank template for a python package in the target directory.
cocup will create a skeleton Python package with the following architechture:
my_package/
├── setup.py
├── LICENSE
├── README.md
├── .gitignore
├── my_package/
│ ├── __init__.py
│ ├── __main__.py
│ ├── main.py
│ ├── parser/
│ │ ├── __init__.py
│ │ └── parser.py
│ ├── utils/
│ │ ├── __init__.py
│ │ └── errors.py
├── example_data/
│ ├── example_in/
│ └── example_out/
└── tests/
Minimal scripts will be generated to produce a functioning skeleton package with a simple parser and basic logging functions.
Installation
Either clone this repository, or download and install with PyPI:
pip install cocup
Usage
Minimal Usage
At minimum cocup requires two positional arguments: the project name and description.
For example, to create a package called my_package, navigate to an empty directory and run:
cocup my_package 'a description of my package'
IMPORTANT: By default, cocup creates a GPL3.0 license for the package. If you want to use a different license,
you can either select a different license with -l, or delete this license and replace it with you own. You alone
are responsible for licensing your software! You have been warned!
Recommended Usage
I recommend to use cocup with additional parameters to help you populate the package with information about the author.
Specifically:
cocup my_package 'a description of my package' -a 'John Smith' -e john.smith@email.com
Other Parameters
There are a few other parameters that might be useful:
-l change the license, IMPORTANT: Defaults to GPL3.0, see above.
-r add requirements to the setup.py (e.g. -r numpy,matplotlib)
-h print the help text for the parser
Citation
None - go crazy!
Version Log
- 0.1.0
- initial version
- 0.1.1
- fixed a bug when creating a setup.py with no requirements
- 0.1.2
- fixed printing and logging errors in main.py template
- fixed inconsistent indentation in parser.py template
Metadata
Release files for cocup 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cocup-0.1.2.tar.gz | 36.2 kB | Without provenance | Details for cocup-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cocup-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for cocup-0.1.2-py3-none-any.whl |
Total release size: 74.5 kB
Release files / cocup-0.1.2.tar.gz
| Download URL | cocup-0.1.2.tar.gz |
|---|---|
| Size | 36.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
285c789ab421c9b52be1002fc5398ca8bc9dd37f49a93bdfa3c1df2c44cb4db6
|
|
BLAKE2b-256 checksum How to use checksums |
82363035a888668b8e8871ae2ea68c1299eb47637d6a6a2e1ede42e9a70b6be1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Release files / cocup-0.1.2-py3-none-any.whl
| Download URL | cocup-0.1.2-py3-none-any.whl |
|---|---|
| Size | 38.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eefe9b1a2d3887e247dfbb8d6ac4b1990b6c4b2e28610a5318c64c06b110b199
|
|
BLAKE2b-256 checksum How to use checksums |
3fb73af06d0941c33fa84240b09dec246c0e7dc6fd8876d088bdf1f3ff01099c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Security for cocup 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.