Skip to main content

luciole-toolbox

CI PyPI

Python utility library. Currently ships a geo module for Swiss coordinates: CRS detection (WGS84/LV03/LV95), conversion between them, CKM2/CNHA grid codes, and commune/canton lookup via the swisstopo API.

Installation

pip install luciole-toolbox

Usage

from luciole_toolbox.geo import convert_coordinates, get_location_info, CRSType

convert_coordinates("46.9480", "7.4474", target=CRSType.LV95)
get_location_info("46.9480", "7.4474")

Full API reference: https://info-fauna.github.io/luciole-toolbox/

Development

pip install -e ".[dev]"

Testing

pytest                      # all tests, incl. calls to swisstopo/pyproj CDN
pytest -m "not integration" # skip tests hitting real network endpoints

Docs

pip install -e ".[docs]"
mkdocs serve # preview locally at http://127.0.0.1:8000

Versioning & releases

The version is derived from git tags via hatch-vcs — there is no version string to hand-edit. Notable changes are tracked in CHANGELOG.md. To cut a release, push a tag:

git tag v0.1.0
git push origin v0.1.0

This triggers the release workflow, which builds the package, publishes it to PyPI, and creates a matching GitHub Release.

Release files for luciole-toolbox 0.1.0

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

Source distribution (sdist)

Source distribution for luciole-toolbox 0.1.0
File Size Uploaded
luciole_toolbox-0.1.0.tar.gz 14.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for luciole-toolbox 0.1.0
File Interpreter ABI Platform
luciole_toolbox-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 23.3 kB

Release files / luciole_toolbox-0.1.0.tar.gz

Download URL luciole_toolbox-0.1.0.tar.gz
Size 14.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d7a4372cd25fe6192c0ab3ee793ff74fb2e199b7462117fd8eb8a37385fefe44
BLAKE2b-256 checksum
How to use checksums
b52ee4030a5a153acabb2ed6a27b0f0e560d5fc5114d3dd2a2b0f766271a374b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 11, 2026.

Transparency log

Release files / luciole_toolbox-0.1.0-py3-none-any.whl

Download URL luciole_toolbox-0.1.0-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ee7200e6ab926a37a3e13cee70c3f1468081ae3c1cfdae7cf9fafdb6f2648d65
BLAKE2b-256 checksum
How to use checksums
4f253e819525403aebee497a92931d1b787b7ca1287bfb5c13615a4923845097
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 11, 2026.

Transparency log

Release history Release notifications | RSS feed

1.1.0

2 release files

1.0.0

2 release files

This release

0.1.0 This release

2 release files

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