Skip to main content

Provides a basic package structure

Project description

Makes python package creation easy again!

License: MIT stars Github All Releases PyPI Build Status Scrutinizer Code Quality tweet Latest Stable Version Release date python

Support me

Buy Me A Coffee

Most of the packages are simple and a collection of few functions or classes. We have created a package for that now that can create python packages, upload to github and distribute to pypi all in a single call. We collect desired packagename, author name and a few info interactively and create the package from a single python file. You can use multiple python scripts too. To use multiple scripts give a space seperated list when asked for file locations with main file (the file where all the functions and classes you want user to use is present) at the start. For simple packaging, one single file is enough.

  • Lightweight
  • Easiest to use with only one interactive command

Fun part: This package is also created by running the script located at src/createmypypackage/__init__.py

Install from PyPi

pip3 install createmypypackage

Or Install from main branch

pip3 install git+https://github.com/Souvic/createmypypackage.git

Example Usage

To make a new package:

  1. Run the below code to submit to PyPi
  2. Input yes at the first prompt.
  3. Make necessary changes if you have to (e.g. updating README.md file) now on the github repo before submitting to PyPi(by following the upload instruction below)

One code to create/upload/update them all

python3 -m createmypypackage

To update/upload a package:

  1. Make all necessary changes in the python files in the github repo
  2. Run the same code as above to submit to PyPi
  3. Input no at the first prompt.
  4. Input 1 at the second prompt if you are uploading for the first time.
  5. Input 2 at the second prompt if you have already submitted once. Change the version in that case to a higher number when prompted.
python3 -m createmypypackage 

Use keyring to save twine password to avoid typing username and password everytime Doc Link

Paste the below code for that with your username. Give passtoken when prompted.

keyring set https://upload.pypi.org/legacy/ yourusername

Use git store password utility to avoid typing GitHub username and password everytime Doc Link

Paste the below code for that with your passtoken and username

git credential-store --file ~/.mysecretfilelocation store
protocol=https
host=github.com
username=yourusername
password=passtoken

Important note:

You can use Github-flavored Markdown to write your content for your README.md

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

createmypypackage-0.0.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

createmypypackage-0.0.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file createmypypackage-0.0.1.tar.gz.

File metadata

  • Download URL: createmypypackage-0.0.1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.0

File hashes

Hashes for createmypypackage-0.0.1.tar.gz
Algorithm Hash digest
SHA256 8391aa954b546ebb19dc9eaeb0fbfb3488199f4acefe04df506f8508eda109c4
MD5 d1f402b794b76d8728c9ddfdd4c18be7
BLAKE2b-256 a43ff7749ea27bf466013ba0993098823d66a2f1901589d7611e95dd745c9f13

See more details on using hashes here.

File details

Details for the file createmypypackage-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: createmypypackage-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.0

File hashes

Hashes for createmypypackage-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 159b8916325fb52c5628567c89b011c3f74eca4030d15165adc42f0bde626f1e
MD5 5bc5c61964890f328282515b6a8005a0
BLAKE2b-256 146c27c8aefd1590a45b382ead622a052cb1054c3bdd85ed674499c9aedcd055

See more details on using hashes here.

Supported by

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