An empty Python project template with an add function.
Project description
Python empty package template
Ready to be published as a library so any project can install it with pip.
Setup
python -m venv .venv
# for Windows Git Bash
source .venv/Scripts/activate
# or Windows PowerShell
.venv\Scripts\Activate.ps1
# or for Linux:
source .venv/bin/activate
# pip install --upgrade pip
pip install -r requirements.txt
Update requirements.txt while developing:
pip list --not-required --format=freeze > requirements.txt
Run Tests
export PYTHONPATH=src/hello_python_empty_package
python -m unittest -v src/hello_python_empty_package/daominahmath_test.py
Build Package
# for the first time if not installed
# pip install build
python -m build
# Output will be in the `dist` directory
Publish Package
- username: daominah
- email: tung.daothanhtung@gmail.com
The following command will require your API token, the token can only be view right after you create it, create a new token if needed. I store the token in .pypi_api_token, which is gitignored.
# for the first time if not installed
# pip install twine
twine upload dist/*
# the 2nd time you run the upload command,
# it will return error "File already exists" if
# you have not changed the version in pyproject.toml.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hello_python_empty_package-0.1.1.tar.gz.
File metadata
- Download URL: hello_python_empty_package-0.1.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b50efddf34d1ae58e1d4b065821174c0e463acc03a6983b135d63369e6a0cea4
|
|
| MD5 |
8f61fea64c2e2f9ac2a13c586cdf361e
|
|
| BLAKE2b-256 |
3b47eb19b038fcd632ee782a4344202a9938fcac0a3d0a820572a5f0d78c9605
|
File details
Details for the file hello_python_empty_package-0.1.1-py3-none-any.whl.
File metadata
- Download URL: hello_python_empty_package-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0bf178c83c4f606cb6438246d2a88c29e89d3c34816cf78a350812f1acd345b1
|
|
| MD5 |
28b2538f788694e4d4461a7982226fc5
|
|
| BLAKE2b-256 |
805e1a2c82fa4102e42c6a94c90199f741a50991dc361f780bf714dd0a16047b
|