Skip to main content

One command simplest way to make and upload a python package!

Project description

Makes python package creation easy again!

License: MIT stars Github All Releases PyPI python

Build Status Scrutinizer Code Quality Release date Latest Stable Version

tweet

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

One interactive command with easy-to-follow prompts to create/upload/update them all!

cmpp

cmpp is shorthand of createmypypackage

You can use createmypypackage as the command also with same results

To make a new package and upload to github from a some/one python file(s):

  1. Run the command _cmpp (and just follow the interactive framework forgetting the lines[2,3,4] written below)
  2. Input yes at the first prompt as you will be questioned.
  3. Follow the instructions that will appear.
  4. 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)

To update/upload a package to PyPi which already has a GitHub repo:

  1. Make all necessary changes in the python files(location: src/packagename/) in the github repo.
  2. Run the command _cmpp (and just follow the interactive framework forgetting the lines[2,3,4] written below)
  3. Input no at the first prompt.
  4. Follow the instructions that will appear.

Set up your $HOME/.pypirc file with the passtoken like this to save twine password to avoid typing username and password everytime Doc Link

Create $HOME/.pypirc and paste the below code replacing only _yourpasstoken

[pypi]
  username = __token__
  password = yourpasstoken

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-1.0.2.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

createmypypackage-1.0.2-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: createmypypackage-1.0.2.tar.gz
  • Upload date:
  • Size: 6.0 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.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.6.13

File hashes

Hashes for createmypypackage-1.0.2.tar.gz
Algorithm Hash digest
SHA256 515e752a199ff93839fd6babf9b6eff0a1d80f93e6085b4363117646abe24a3f
MD5 243cadbd69431b47ce3080ec93e2cd2a
BLAKE2b-256 d5b936cf3cc55379b31bb18fd329018ed3fa90b87525abbccfdb99b31e87dccc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: createmypypackage-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.9 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.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.6.13

File hashes

Hashes for createmypypackage-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 78165484ba2fd12c34e7dd076cfe4e7b533435c01b3135bfb26829896dd613d8
MD5 f8d53aed18d3d3b6097387d41bcb9302
BLAKE2b-256 dd0690c4f0ea738ded03297919952411e48c45f679c22d22941f146f25e4d69b

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