Skip to main content

CitraSense

Pytest Publish Python Package PyPI version PyPI - Downloads License

Documentation | Citra.space | PyPI | CitraSense-Pi

Photograph satellites from your backyard telescope.

CitraSense turns your astrophotography rig into an autonomous satellite observation station. It connects to Citra.space, picks up tasks for specific satellites, slews your telescope, captures images, and processes everything on the edge — plate solving, source extraction, photometry, and satellite matching — before delivering calibrated results back to the platform.

CitraSense Web UI

Use Citra.space to search for satellites, schedule observation windows, and task your telescope — CitraSense handles the rest. If you already have a mount, a camera, and software like N.I.N.A. or KStars/Ekos, CitraSense plugs right in. Install it, select your hardware adapter, and you're one click away from photographing the ISS.

Supported Hardware

Adapter Platform Connects to
Direct Any Composable device adapters (USB cameras, Ximea, Raspberry Pi Camera)
NINA Windows N.I.N.A. via Advanced HTTP API
KStars Linux, macOS KStars/Ekos via D-Bus
INDI Linux Any INDI-compatible device

Quick Start

Requires Python 3.10+. We recommend uv for installation.

# Install and run
uv tool install citrasense
citrasense

Or with pip:

pip install citrasense
citrasense

Open http://localhost:24872 in your browser to configure your hardware adapter, connect to Citra.space, and start accepting tasks.

Raspberry Pi? Check out citrasense-pi for a ready-to-flash SD card image with CitraSense pre-installed.

Optional Extras

uv tool install citrasense --with citrasense[indi]        # INDI protocol support
uv tool install citrasense --with citrasense[kstars]      # KStars/Ekos via D-Bus
uv tool install citrasense --with citrasense[usb-camera]  # USB cameras via OpenCV
uv tool install citrasense --with citrasense[rpi]         # Raspberry Pi Camera Module
uv tool install citrasense --with citrasense[all]         # INDI + KStars
pip equivalents
pip install citrasense[indi]
pip install citrasense[kstars]
pip install citrasense[usb-camera]
pip install citrasense[rpi]
pip install citrasense[all]

CLI Options

citrasense --help
citrasense --web-port 8080    # Custom web UI port (default: 24872)

Documentation

Full documentation is available at docs.citra.space/citrasense. Documentation source is maintained in the citra-space/docs repository.

Developer Setup

uv sync --extra dev
uv run pre-commit install

Dev Container (INDI on macOS/Windows)

If you need to work with the INDI adapter on a non-Linux host, the project includes a VS Code Dev Container that provides a Linux environment with pyindi-client and its system dependencies pre-installed. Open the project in VS Code and choose Reopen in Container.

Running Tests

uv run pytest                          # Unit tests (fast, skips slow tests)
uv run pytest -m "not integration"     # Same as above, explicit
uv run pytest --override-ini="addopts=" -m "not integration"  # Include slow tests locally

Tests use pytest markers to separate fast unit tests from expensive ones:

Marker What it covers Runs locally Runs in CI
(none) Unit tests Yes Yes
@pytest.mark.slow Real FITS processing, plate solving No Yes
@pytest.mark.integration Live hardware or services No Opt-in

Pre-commit Hooks

The project uses pre-commit with Ruff (linting + import sorting), Black (formatting), and Pyright (type checking).

uv run pre-commit run --all-files    # Run all checks manually

VS Code Launch Configs

The .vscode/launch.json includes pre-configured debug configurations:

  • Python: citrasense — Runs the daemon with default settings
  • Python: citrasense (custom port) — Runs with web interface on port 8080

Releasing

bump-my-version bump patch    # 0.1.3 → 0.1.4
bump-my-version bump minor    # 0.1.3 → 0.2.0
bump-my-version bump major    # 0.1.3 → 1.0.0
git push && git push --tags

Tagging triggers create-release.yml which creates a GitHub release, which in turn triggers pypi-publish.yml.

License

MIT

Metadata

Release files for citrasense 1.0.1

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

Source distribution (sdist)

Source distribution for citrasense 1.0.1
File Size Uploaded Provenance Actions
citrasense-1.0.1.tar.gz 33.1 MB Without provenance Details for citrasense-1.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 33.7 MB

Release files / citrasense-1.0.1.tar.gz

Download URL citrasense-1.0.1.tar.gz
Size 33.1 MB
Tags Source
SHA-256 checksum
How to use checksums
f4c41aae730609e2976ee97832208c45f92b0c65708c92a939ce44dc874460e1
BLAKE2b-256 checksum
How to use checksums
55117c518ab2e957fedb7a2ec9c792898baaf1164cb770b3f0e3e89da3091198
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / citrasense-1.0.1-py3-none-any.whl

Download URL citrasense-1.0.1-py3-none-any.whl
Size 580.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6715fb994ed57ea314c1a192cef6da453f26a5b0230cd1697ba545bd366f94f1
BLAKE2b-256 checksum
How to use checksums
e83aae680dee898535dbfb2b786128b4aed6c4dff0c2f6fd804f31d398dcb3f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for citrasense 1.0.1

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

1.0.1 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