Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

rustigc-py

Python bindings for rustigc: parsing and cross-country scoring of IGC flight recorder files.

Installation

pip install rustigc-py

Usage

from rustigc_py import Log, Ruleset

log = Log.from_file("flight.igc")
print(log.pilot_name, log.glider_type, len(log.track))

flight = log.flights().longest
xcontest = Ruleset.preset("xcontest")
score = log.score(xcontest)  # or log.score(xcontest, (125, 25457))
if score:
    print(score.description, score.score, score.distance_km)

open("flight.geojson", "w").write(log.export(flight, score))

Log is the entry point. The API is documented in the docstrings — help(rustigc_py.Log), or hover in any editor; the package ships py.typed, so type checkers see the annotations too.

A track is a numpy structured array, copied once out of Rust. Track hands out views over it for vectorized work:

log.track._latitude.mean()
log.track._data[0:100]

The array is read-only, and a Log never changes: Log.with_track returns a new one over the track it is given.

Scoring without a log

Scorer scores a table of coordinates, so points that do not come from an IGC file score the same way. It takes an (N, 2) array of [latitude, longitude] in degrees, in flight order:

from rustigc_py import Ruleset, Scorer

score = Scorer(points).score(Ruleset.preset("xcontest"))

The whole table is the scored window — there are no timestamps to detect a flight in — and there are no fixes behind the result, so takeoff, entry, turnpoints, exit and landing come back as plain indices into the table rather than Fix objects.

Rulesets

score takes a Ruleset: a preset, listed by preset_names(), or your own rules as JSON content in the presets' format.

Ruleset.preset("cfd")
Ruleset.from_json(open("my-league.json").read())

from_json raises ValueError on content it cannot use, with the line and column.

Development

python -m venv venv && source venv/bin/activate
pip install maturin pytest pytest-cov
maturin develop
python -m pytest -v

License

GPL-2.0-or-later WITH Classpath-exception-2.0

Metadata

Release files for rustigc-py 0.2.0rc3

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

Source distribution (sdist)

Source distribution for rustigc-py 0.2.0rc3
File Size Uploaded Provenance Actions
rustigc_py-0.2.0rc3.tar.gz 4.7 MB With provenance Details for rustigc_py-0.2.0rc3.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for rustigc-py 0.2.0rc3
File Actions
rustigc_py-0.2.0rc3-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details for rustigc_py-0.2.0rc3-cp312-abi3-win_amd64.whl
rustigc_py-0.2.0rc3-cp312-abi3-manylinux_2_28_x86_64.whl CPython 3.12 abi3 Linux glibc 2.28+ x86-64 Details for rustigc_py-0.2.0rc3-cp312-abi3-manylinux_2_28_x86_64.whl
rustigc_py-0.2.0rc3-cp312-abi3-manylinux_2_28_aarch64.whl CPython 3.12 abi3 Linux glibc 2.28+ ARM64 Details for rustigc_py-0.2.0rc3-cp312-abi3-manylinux_2_28_aarch64.whl
rustigc_py-0.2.0rc3-cp312-abi3-macosx_11_0_arm64.whl CPython 3.12 abi3 macOS 11.0+ ARM64 Details for rustigc_py-0.2.0rc3-cp312-abi3-macosx_11_0_arm64.whl

Total release size: 6.3 MB

Release files / rustigc_py-0.2.0rc3.tar.gz

Download URL rustigc_py-0.2.0rc3.tar.gz
Size 4.7 MB
Tags Source
SHA-256 checksum
How to use checksums
27537bb3bbd1560727b5964df9d11a727b8fbe2c5d069261195d7ea157137475
BLAKE2b-256 checksum
How to use checksums
993da9008453182c10c4b99e45818f97bf5796c918895efed620a6b661c14eb6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 29, 2026.

Transparency log

Release files / rustigc_py-0.2.0rc3-cp312-abi3-win_amd64.whl

Download URL rustigc_py-0.2.0rc3-cp312-abi3-win_amd64.whl
Size 351.8 kB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
14c75c69b43c11859b2507ddebd2c4a1cda37cfcf90f43002b881f9a16f4fe8e
BLAKE2b-256 checksum
How to use checksums
4d57ecfebb98247b348b9e61ef67160c7f8f10d63cd2d0e33cf04352f708c193
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 29, 2026.

Transparency log

Release files / rustigc_py-0.2.0rc3-cp312-abi3-manylinux_2_28_x86_64.whl

Download URL rustigc_py-0.2.0rc3-cp312-abi3-manylinux_2_28_x86_64.whl
Size 462.8 kB
Tags CPython 3.12 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
48f261fbbc349519e991f725c1a5ec0151b4b782f9a67e6c0ceed794369df3c3
BLAKE2b-256 checksum
How to use checksums
88b5f4488293dcbac7a191b16a4cceef888fc0534a74f07607a01535f19b5e57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 29, 2026.

Transparency log

Release files / rustigc_py-0.2.0rc3-cp312-abi3-manylinux_2_28_aarch64.whl

Download URL rustigc_py-0.2.0rc3-cp312-abi3-manylinux_2_28_aarch64.whl
Size 435.0 kB
Tags CPython 3.12 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
01b97c86677781b8cdd5be15e89f94809982fc131d585adfe1e7bae8661ccab2
BLAKE2b-256 checksum
How to use checksums
f2004cf3bdfff9c1c5034d7ad0664d5db4298d344e4f2f857085a1ad258e541a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 29, 2026.

Transparency log

Release files / rustigc_py-0.2.0rc3-cp312-abi3-macosx_11_0_arm64.whl

Download URL rustigc_py-0.2.0rc3-cp312-abi3-macosx_11_0_arm64.whl
Size 397.1 kB
Tags CPython 3.12 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
986e2c50e09506de0ef4915f3ce991062bb33ee1ca25dac6d10c7d6113f6b5ec
BLAKE2b-256 checksum
How to use checksums
dbd9228ba03520cc384558ada83dc7b040c7377a9cf10c53e9ed935c396b8d7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 29, 2026.

Transparency log

Security for rustigc-py 0.2.0rc3

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 5 files in this release have been uploaded with provenance metadata.

Select from 5 files

Attestation for rustigc_py-0.2.0rc3.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 Oct 29, 2026.

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