Skip to main content

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

Project description

Single command for python package creation from one/multiple .py files ( Make packaging fun 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.

  • Supports python 3.6+
  • Autopopulates setup files, README.md and version etc , uploads to GitHub and PyPI
  • Easily Customizable
  • Easiest to use with only single interactive command
  • 1 min video tutorial

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

Install from PyPi

pip3 install pypacklib

Or Install from main branch

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

One command to create/upload/update them all!

Easy-to-follow prompts will guide you through the process

pypack

Unnecessary detailed instructions (just see the 1 min video)

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

  1. Run the command pypack (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 pypack (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.

Extras to save GitHub and PyPI passtokens (save typing time)

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

pypacklib-0.0.1.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pypacklib-0.0.1-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pypacklib-0.0.1.tar.gz
  • Upload date:
  • Size: 6.1 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 pypacklib-0.0.1.tar.gz
Algorithm Hash digest
SHA256 86996eb2e575bdd3ba9ce9b81765f6509032024f43c4f11c5a760d1589dc72cc
MD5 1ed423a1b6d7297d096f0053c6a6a887
BLAKE2b-256 d081bed7a6c1c745ec266f5d20ed000ec5f79b52b4303614ba978875f0f7fafd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pypacklib-0.0.1-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 pypacklib-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 09d9ee8712a511646e476c0e29c5d12cb13f20251789370fc794b7befa9d2745
MD5 cbbaad0c5ac1760e14fdbd730b6ecd62
BLAKE2b-256 1c3c36e1b449a26140a1362aef282f929de85d3fbfdd2af57b898aca1df2de04

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