https://github.com/souvic/createmypypackage
This package makes it super easy to make new python packages and distribute them to GitHub and PyPI, literally with just one command execution!
https://github.com/souvic/createmypypackage
creator easy-to-use pypi pypi-package python
Last synced: 10 months ago
JSON representation
This package makes it super easy to make new python packages and distribute them to GitHub and PyPI, literally with just one command execution!
- Host: GitHub
- URL: https://github.com/souvic/createmypypackage
- Owner: Souvic
- License: mit
- Created: 2021-07-03T02:27:54.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-07-04T11:18:07.000Z (almost 5 years ago)
- Last Synced: 2025-07-29T22:09:58.677Z (11 months ago)
- Topics: creator, easy-to-use, pypi, pypi-package, python
- Language: Python
- Homepage:
- Size: 269 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Makes python package creation easy again!
[](https://opensource.org/licenses/MIT)
[]()
[]()
[](https://pypi.org/project/createmypypackage/)
[]()
[](https://scrutinizer-ci.com/g/Souvic/createmypypackage/build-status/main)
[](https://scrutinizer-ci.com/g/Souvic/package_creator/?branch=main)
[]()
[]()
[]()
### Support me
[](https://www.buymeacoffee.com/Souvic)
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.
- [x] Lightweight
- [x] 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](https://twine.readthedocs.io/en/latest/#keyring-support)
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](https://git-scm.com/book/en/v2/Git-Tools-Credential-Storage)
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](https://guides.github.com/features/mastering-markdown/)
to write your content for your README.md