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!

Version Log

0.1.0 - initial version 0.1.1 - fixed a bug when creating a setup.py with no requirements

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.1.tar.gz (36.1 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.1-py3-none-any.whl (38.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cocup-0.1.1.tar.gz
  • Upload date:
  • Size: 36.1 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.1.tar.gz
Algorithm Hash digest
SHA256 6482a29160156076ec0d9842bff557fc312a50ca0910603bdbc8c3ad3dd4a768
MD5 4df51500ae00d3f77673419777f48b2d
BLAKE2b-256 590fc7acfcfc805c9d42e945ee4443cb47e916211554b6b6de7c6d5492ea9034

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cocup-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 38.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 24cb172a7a59a26b938fc5cef5213d5ab57d0c2d94a4e1c7541273fe85d3d581
MD5 dfe151ddd1ea2ed64f7793a3433019ce
BLAKE2b-256 3f69df630fa08ff4f900a654c5f5d4be3ae81f3e449174412c832e62d48092b9

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