Skip to main content

Thom's COokie CUtter for Python

Project description

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 repositor, 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, IMPORANT: 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!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cocup-0.1.0.tar.gz (36.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cocup-0.1.0-py3-none-any.whl (38.1 kB view details)

Uploaded Python 3

File details

Details for the file cocup-0.1.0.tar.gz.

File metadata

  • Download URL: cocup-0.1.0.tar.gz
  • Upload date:
  • Size: 36.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for cocup-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9ee706896f5a17049a33df6903285211efc4f60ee230bd31c707de5d80145411
MD5 6651e894fb04d7f2c4ce33cc94ab0fa2
BLAKE2b-256 da04583d3024d333dbb4c9c0db4ca0908d390dbb49ea94d708cbafcca4ec7d60

See more details on using hashes here.

File details

Details for the file cocup-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: cocup-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 38.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for cocup-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fd4bba60dd898346be12247cd04b084ccd8f649847a851f9f90cd0db7ddc533d
MD5 3caf1ce90400667fffce1952b18b07c1
BLAKE2b-256 dc000dadfc848d39a0545e0ded46d8bfe27e9c95951930a38806959d44c2c75b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page