Skip to main content

Pypkg Generator

PyPI version CircleCI

Creates a simple template of a python package.

Creates a basic template of python package with a simple command line tool.

Installation

OS X & Linux:

From PYPI

$ pip3 install pypkg-generator

from the source

$ git clone https://github.com/dany2691/pypkg-generator.git
$ cd pypkg-generator
$ python3 setup.py install

Usage example

Open a terminal and type:

$ pkg-generator --help

And it'll display:

Options:
  -n, --name TEXT       The name of the package
  -p, --path TEXT       The path where the package will be created
  --tests / --no-tests  Create test suite directory or not, created by default
  --help                Show this message and exit.

There are many options for customization, you can decide what file will be created or not.

You must assign a name, or the project will be name forgotten_name.

$ pkg-generator --name my-awesome-project

You can explicitly pass a path, otherwise, the project will be created in the current directory.

$ pkg-generator --name my-awesome-project --path /home/user/Documents/

Development setup

This project uses pipenv for dependecy resolution. It's a kind of mix between pip and virtualenv. Follow the next instructions to setup the development enviroment.

$ git clone https://github.com/dany2691/pypkg-generator.git
$ cd pypkg-generator
$ pipenv shell
$ pip3 install -e .

To run the test-suite, inside the pypkg-generator directory:

$ pytest -vv test/

Meta

Daniel Omar Vergara Pérez – @dan1_net – daniel.omar.vergara@gmail.com

https://github.com/dany2691

Contributing

  1. Fork it (https://github.com/dany2691/pypkg-generator)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

Metadata

Release files for pypkg-generator 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pypkg-generator 0.5.0
File Size Uploaded Provenance Actions
pypkg-generator-0.5.0.tar.gz 4.4 kB Without provenance Details for pypkg-generator-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pypkg-generator 0.5.0
File Interpreter ABI Platform Actions
pypkg_generator-0.5.0-py3-none-any.whl Python 3 none any Details for pypkg_generator-0.5.0-py3-none-any.whl

Total release size: 10.8 kB

Release files / pypkg-generator-0.5.0.tar.gz

Download URL pypkg-generator-0.5.0.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1a1a98daabe1c2721a411f09fd68175fdacc7c3a9379048a78ebf273f98d125f
BLAKE2b-256 checksum
How to use checksums
cd728ea70906a3ebae29f05ea381755ca2459fc52204bf437e666cae5476e38b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.36.1 CPython/3.7.4

Release files / pypkg_generator-0.5.0-py3-none-any.whl

Download URL pypkg_generator-0.5.0-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
66246cb02cafdc5aff991923bbf2fd9fd4257aefcc960c0872a480fbefb5d68f
BLAKE2b-256 checksum
How to use checksums
6221a14792f54669646fd6a08a2fd7ec30181a679a03171fa869d558d3dd6501
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.36.1 CPython/3.7.4

Security for pypkg-generator 0.5.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page