A clean mathematical utility package.
Project description
mathlib
Run tests — cleanest way
Install dev-dependencies
pip install .[dev]
✅ 1. pytest -q — Run your tests
You run:
pytest -q
when you want to test your package code.
Use it:
- During development
- Before committing
- Before releasing/publishing
It checks that everything works inside your local environment.
✅ 2. pip install -e . — Editable install (development mode)
You run:
pip install -e .
when you want to:
- Use this package inside another project
- Test how the package behaves when imported
- Develop two packages at once
- Import the package without reinstalling after every edit
Editable mode = “link the source folder directly”.
Changes in:
src/mathlib/
are immediately reflected everywhere Python imports mathlib.
This is what most developers use all the time during development.
✅ 3. python -m build — Create release artifacts
You run:
python -m build
when you are done developing and want to ship the package.
This creates:
dist/myproject-0.1.0-py3-none-any.whl
dist/myproject-0.1.0.tar.gz
Use this when:
- Releasing on GitHub Releases
- Publishing to PyPI
- Giving the packaged library to someone else
- Deploying internally / privately
This is the “final compiled package” that others install.
🎯 Perfect, clean workflow
Daily development workflow
pip install -e .
pytest -q
→ develop, test, iterate
Before release
pytest -q
python -m build
→ package is ready for upload
Publishing
For PyPI:
twine upload dist/*
For GitHub:
- Upload the wheel + tar.gz to a release
⭐ Summary (very clean)
| Action | Command | Purpose |
|---|---|---|
| Test the package | pytest -q |
Make sure package works |
| Editable install | pip install -e . |
Use package in dev without reinstalling |
| Build for release | python -m build |
Produce wheel + source dist for publishing |
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 krag_mathlib-0.1.0.tar.gz.
File metadata
- Download URL: krag_mathlib-0.1.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
673ebe511776bf2a1b770975cf2333868399b7adb7f1f6453a9f4a82af5a1e06
|
|
| MD5 |
624741872335ceb7cde8a1bcffabac5b
|
|
| BLAKE2b-256 |
f8575a2966851c0b196ccfd5bfed8fc4abf523aed7bd0ecdf8c23baffe834a44
|
Provenance
The following attestation bundles were made for krag_mathlib-0.1.0.tar.gz:
Publisher:
release.yml on Kenura-R-Gunarathna/mathlib
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
krag_mathlib-0.1.0.tar.gz -
Subject digest:
673ebe511776bf2a1b770975cf2333868399b7adb7f1f6453a9f4a82af5a1e06 - Sigstore transparency entry: 701956229
- Sigstore integration time:
-
Permalink:
Kenura-R-Gunarathna/mathlib@e3bb764936d36ad6ca4288fe4a1be62a2fd84b1b -
Branch / Tag:
refs/tags/v0.1.12 - Owner: https://github.com/Kenura-R-Gunarathna
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e3bb764936d36ad6ca4288fe4a1be62a2fd84b1b -
Trigger Event:
push
-
Statement type:
File details
Details for the file krag_mathlib-0.1.0-py3-none-any.whl.
File metadata
- Download URL: krag_mathlib-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b305d89c796f2e66d2f09aecfce1848294d8266d38222694a3f8b2064b3c51c6
|
|
| MD5 |
31f03e7f85a2d794b5ea3d648ac51226
|
|
| BLAKE2b-256 |
e7c8b03ee56781aa21dacaacb40e69fc7e13b1ddfac67299a4d9ce3005bcb114
|
Provenance
The following attestation bundles were made for krag_mathlib-0.1.0-py3-none-any.whl:
Publisher:
release.yml on Kenura-R-Gunarathna/mathlib
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
krag_mathlib-0.1.0-py3-none-any.whl -
Subject digest:
b305d89c796f2e66d2f09aecfce1848294d8266d38222694a3f8b2064b3c51c6 - Sigstore transparency entry: 701956230
- Sigstore integration time:
-
Permalink:
Kenura-R-Gunarathna/mathlib@e3bb764936d36ad6ca4288fe4a1be62a2fd84b1b -
Branch / Tag:
refs/tags/v0.1.12 - Owner: https://github.com/Kenura-R-Gunarathna
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e3bb764936d36ad6ca4288fe4a1be62a2fd84b1b -
Trigger Event:
push
-
Statement type: