https://github.com/jsonzilla/template_python_package
Simple template of python package
https://github.com/jsonzilla/template_python_package
pypi python python3
Last synced: about 2 months ago
JSON representation
Simple template of python package
- Host: GitHub
- URL: https://github.com/jsonzilla/template_python_package
- Owner: jsonzilla
- Created: 2019-07-19T11:32:22.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-11-11T19:46:42.000Z (over 3 years ago)
- Last Synced: 2025-11-05T09:03:00.085Z (9 months ago)
- Topics: pypi, python, python3
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# template python package
Simple template of package OS independent for Python 3.7
## Publish
Int [The Python Package Index (PyPI)](https://pypi.org/) [register an account](https://pypi.org/account/register/).
### More info about package
[Packaging-projects](https://packaging.python.org/tutorials/packaging-projects/)
### Build require setuptools
```bash
python3 -m pip install --user --upgrade setuptools wheel
```
### Send require twine
```nbash
python3 -m pip install --user --upgrade twine
```
#### Build and upload
```bash
python3 setup.py sdist bdist_wheel
python3 -m twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
```
### Installation
Some environment is pip3, check if get a error
```bash
pip install your_package_name
```
### Usage from terminal (maybe)
```
python3 -m your_package_name
```
### Usage as a lib (maybe)
```python
from your_package_name import some_function
some_function(magic)
```