Skip to main content

asterope for Python

Find where a camera points from the stars in its image.

import asterope

tracker = asterope.StarTracker(1024, 1024, fov_deg=14.0)
fix = tracker.solve(frame)            # frame: 2-D numpy array of uint16
if fix.locked:
    print(fix.quaternion)             # (x, y, z, w), ICRS to sensor
    print(fix.ra_deg, fix.dec_deg, fix.roll_deg)
    print([match.star for match in fix.matches])

tracker.update(frame, dt) follows a sequence of frames, tracking from the last solution. asterope.solve_image(frame) solves a photograph whose field of view is not known and returns the lens it found. asterope.simulate(...) renders a frame to try things on. With a rate gyro, enable_gyro, gyro and update_aided carry the attitude through frames without stars.

A frame is a C-contiguous uint16 array, top row first. The quaternion turns ICRS vectors into the sensor frame, whose +Z is the boresight, +X image right and +Y image down. The catalog built in holds the Hipparcos stars to V 6.5; pass the bytes of another .astc file as catalog= for a deeper one.

docs/python.md in the repository describes every call.

Build from the repository root with maturin:

pip install maturin
maturin build --release -m crates/asterope-py/Cargo.toml
pip install target/wheels/asterope-*.whl
pytest crates/asterope-py/tests

Metadata

Release files for asterope 0.1.0

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

Built distributions (wheels)

Table of built distributions (wheels) for asterope 0.1.0
File Actions
asterope-0.1.0-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details for asterope-0.1.0-cp39-abi3-win_amd64.whl
asterope-0.1.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details for asterope-0.1.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
asterope-0.1.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details for asterope-0.1.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
asterope-0.1.0-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details for asterope-0.1.0-cp39-abi3-macosx_11_0_arm64.whl
asterope-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl CPython 3.9 abi3 macOS 10.12+ x86-64 Details for asterope-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl

Total release size: 2.7 MB

Release files / asterope-0.1.0-cp39-abi3-win_amd64.whl

Download URL asterope-0.1.0-cp39-abi3-win_amd64.whl
Size 460.6 kB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
4838aa92cc720345ed76cc83d6f55dc83b4764b9cf50caa9084a91eaea53dbac
BLAKE2b-256 checksum
How to use checksums
844486bc041bfa9e282d20863f30f000b896dae96ee3db01eff7af733e27f052
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 Nov 23, 2026.

Transparency log

Release files / asterope-0.1.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL asterope-0.1.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 582.5 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
7839b0d74e8b66b11b5e3dc31005183ae7a5c97feee918de73110bec299f3060
BLAKE2b-256 checksum
How to use checksums
a2c10a8ef0b1abf329713e8807cdd54516d0fcd8af36f88ad458feb00e80e80d
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 Nov 23, 2026.

Transparency log

Release files / asterope-0.1.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL asterope-0.1.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 564.2 kB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
d04d93e0b99ae1d7eaa3b434c4ed0b15273bb31f4688b91ede43a7ba76e1eed9
BLAKE2b-256 checksum
How to use checksums
70295215a2587606f89a57b3248e33df96fc6d3005f93ee9d7ab0aa68db5287c
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 Nov 23, 2026.

Transparency log

Release files / asterope-0.1.0-cp39-abi3-macosx_11_0_arm64.whl

Download URL asterope-0.1.0-cp39-abi3-macosx_11_0_arm64.whl
Size 542.1 kB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
02412ded93206abf32cde4a0e376a854aa6092e9c5e81db98e20d7a7529c6db1
BLAKE2b-256 checksum
How to use checksums
aa3baebe3c811fb204bc19eb63c9edcec8928107ae73449c7f479665e7dc6c49
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 Nov 23, 2026.

Transparency log

Release files / asterope-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl

Download URL asterope-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl
Size 565.9 kB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
2cc4b8a2bf1e3b9c9fd815cfedb3afb17753916f90988e4bc9317fee71911c0c
BLAKE2b-256 checksum
How to use checksums
6b221818cadcb9794943162109bae542ac0a293e568005d86a527167ff100345
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 Nov 23, 2026.

Transparency log

Security for asterope 0.1.0

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 asterope-0.1.0-cp39-abi3-win_amd64.whl

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 23, 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

5 release files Full 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