Skip to main content

krag-mathlib

krag-mathlib is a Python library for performing mathematical operations like addition, subtraction, and more.


📑 Table of Contents

  1. Introduction

  2. Installation

  3. Development Workflow

  4. Publishing

  5. Usage

  6. Contributing

  7. License


Introduction

krag-mathlib provides a clean and simple interface for performing common mathematical operations. It is designed for Python developers who want a lightweight, easy-to-use library for basic calculations.


Installation

Install the package from PyPI:

pip install krag-mathlib

For development with optional dependencies (for testing, etc.):

pip install .[dev]

Development Workflow

1. pytest -q — Run your tests

Run:

pytest -q

Use it to test your package code during:

  • Development
  • Before committing
  • Before releasing/publishing

This ensures your package works correctly in your local environment.


2. pip install -e . — Editable install (development mode)

Run:

pip install -e .

Use editable mode to:

  • Use the package in another project
  • Test imports without reinstalling
  • Develop multiple packages simultaneously

Changes in:

src/krag_mathlib/

are immediately reflected everywhere Python imports krag_mathlib.


3. python -m build — Create release artifacts

Run:

python -m build

This creates:

dist/krag_mathlib-0.1.0-py3-none-any.whl
" +
"dist/krag_mathlib-0.1.0.tar.gz

Use this before:

  • Releasing on GitHub
  • Publishing to PyPI
  • Sharing the library

Publishing

PyPI

twine upload dist/*

GitHub

  • Upload wheel + tar.gz to a release

Usage

Install from PyPI:

pip install krag-mathlib

Then use in your code:

from krag_mathlib import add, subtract

def main():
    a = 10
    b = 5

    sum_result = add(a, b)
    diff_result = subtract(a, b)

    print(f"The sum of {a} and {b} is: {sum_result}")
    print(f"The difference when {b} is subtracted from {a} is: {diff_result}")

if __name__ == "__main__":
    main()

Note: The PyPI package name is krag-mathlib, but the import is krag_mathlib (matching the internal folder name).


Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Run tests:
pytest -q
  1. Submit a pull request

License

This project is licensed under the MIT License.

Metadata

Release files for krag-mathlib 0.1.17

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for krag-mathlib 0.1.17
File Size Uploaded Provenance
krag_mathlib-0.1.17.tar.gz 4.3 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for krag-mathlib 0.1.17
File Interpreter ABI Platform
krag_mathlib-0.1.17-py3-none-any.whl Python 3 none any Details

Total release size: 9.4 kB

Release files / krag_mathlib-0.1.17.tar.gz

Download URL krag_mathlib-0.1.17.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b6dc0b97cd6010fe165b5493626d4a57a6504a0d085b2a4445a391d07a3f781a
BLAKE2b-256 checksum
How to use checksums
c4c61d12b001ed3573d1dd7da196013c4bfafc3647cd6c8c82ed4b8881cdc0dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2025.

Transparency log

Release files / krag_mathlib-0.1.17-py3-none-any.whl

Download URL krag_mathlib-0.1.17-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c9a489d50f4b36de1e2c5d59fa7c109be8c81ea0a89ad1a627fd51b585376ba3
BLAKE2b-256 checksum
How to use checksums
0e4ef459f925fd87a686dff7e0ff0ff507ae9c15e27790d441e7ce91004a3dee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2025.

Transparency log

Security for krag-mathlib 0.1.17

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for krag_mathlib-0.1.17.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page