Skip to main content

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.

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

[pypi]
  username = __token__
  password = yourpasstoken

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

Metadata

Release files for createmypypackage 1.0.4

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

Source distribution (sdist)

Source distribution for createmypypackage 1.0.4
File Size Uploaded
createmypypackage-1.0.4.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for createmypypackage 1.0.4
File Interpreter ABI Platform
createmypypackage-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 12.9 kB

Release files / createmypypackage-1.0.4.tar.gz

Download URL createmypypackage-1.0.4.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
22e82b53629eced140a8bbd8e293fb29e70e33255ce3d1d6ab6115c1158cc887
BLAKE2b-256 checksum
How to use checksums
afb3a52d08e99b2330fdd90ef891e4269f14ee3439710e5383ed234c023bc0af
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / createmypypackage-1.0.4-py3-none-any.whl

Download URL createmypypackage-1.0.4-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1a338386f18d077b442e6c8b36a797361106a1c3cb08de745ff0117da2b1e689
BLAKE2b-256 checksum
How to use checksums
3e5caed378da2bd6179527b0320866a6aea294673864834674d7a96a0368b51b
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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