Skip to main content

kyoslib_py

KYOS shared lib code as python package.

Usage

Example code:

from kyoslib_py.simulation import Simulation
simulation_set = Simulation()

Installation

pip install kyoslib_py

Dependencies

Python 3.11+


Development

Command Description
task Run lint + typecheck + test + security
task install Install all dependencies
task lint Run ruff format check + ruff lint
task format Auto-format and fix with ruff
task typecheck Run ty type checker
task test Run pytest
task test:coverage Run pytest with coverage report
task security Run bandit SAST + uv audit
task security:bandit Run bandit SAST scanner
task security:audit Check deps for known CVEs
task build Build the sdist and wheel into dist/
task publish Build and publish to PyPI (needs UV_PUBLISH_TOKEN)
task docs:serve Live preview of the documentation
task docs:build Check that the documentation builds without errors
task docs:deploy Deploy the documentation to GitHub Pages
task clean Remove build artifacts and caches

Adding dependencies

uv add <package>
uv add --dev <package>

Documentation

The package documentation is generated by MkDocs and published at https://kyosenergy.github.io/kyoslib_py/. After task install, start a local preview server with:

task docs:serve

Releasing

  1. Bump version in pyproject.toml and add a matching entry to docs/changelog.md (CI checks that the version is in the changelog).
  2. On merge to master, CI creates a tag for the new version and sends a publish-to-pypi repository dispatch event, which triggers the Deploy kyoslib_py workflow that builds and publishes the package to PyPI.

CI

On every PR to master:

  • lint — ruff format + ruff lint
  • typecheck — ty
  • test — pytest, on every supported Python version (3.11, 3.12, 3.13)
  • audit — uv audit (known CVEs in deps)
  • bandit — bandit SAST scan of src
  • secret-scan — gitleaks (committed secrets)
  • docs — mkdocs build --strict
  • build — uv build (sdist and wheel), once lint, typecheck, test, audit, bandit and secret-scan pass
  • version — the pyproject.toml version is listed in docs/changelog.md

On merge to master:

  • A tag is created if the version is new, and the package is published to PyPI
  • The documentation is deployed to GitHub Pages

Renovatebot opens PRs for dependency updates. The uv-lock-regen workflow regenerates uv.lock automatically on Renovate PRs.


Project structure

src/
  kyoslib_py/      # the package
tests/             # pytest suite
docs/              # MkDocs sources
mkdocs.yml         # MkDocs config
pyproject.toml     # project metadata + tool config
Taskfile.yml       # task runner
renovate.json      # dependency update config

Metadata

Release files for kyoslib_py 5.7.3

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

Source distribution (sdist)

Source distribution for kyoslib_py 5.7.3
File Size Uploaded Provenance Actions
kyoslib_py-5.7.3.tar.gz 82.2 kB Without provenance Details for kyoslib_py-5.7.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kyoslib_py 5.7.3
File Interpreter ABI Platform Actions
kyoslib_py-5.7.3-py3-none-any.whl Python 3 none any Details for kyoslib_py-5.7.3-py3-none-any.whl

Total release size: 153.0 kB

Release files / kyoslib_py-5.7.3.tar.gz

Download URL kyoslib_py-5.7.3.tar.gz
Size 82.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7d68f29b8077f72821614924188065bfd90bef8b02226f5da0e24f88ce1b0a33
BLAKE2b-256 checksum
How to use checksums
4582180d3a7cab4b3f83181ad653cf6becb75e4b0cf57a295c58ec4dd66499c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / kyoslib_py-5.7.3-py3-none-any.whl

Download URL kyoslib_py-5.7.3-py3-none-any.whl
Size 70.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4c3882b76f897a7dc9812ca2a4251f0ec54dc95e36c67a14b63326079ad8eb39
BLAKE2b-256 checksum
How to use checksums
8b296c844c8e48f365a1ca66c10882147a92aeff70d983f732c30583462a5579
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for kyoslib_py 5.7.3

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

5.7.3 This release

2 release files No provenance

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