Fetch TLE data for given NORAD IDs from public sources.
Project description
rTLE
rTLE is a lightweight Python package designed to quickly fetch Two-Line Element (TLE) data for one or more NORAD IDs from public sources. The goal is to provide a simple, fast way to retrieve satellite orbital data without dealing with complex APIs or parsing.
⚡ Features
- Fetch TLE data for a single NORAD ID or multiple IDs at once.
- Automatically parse TLE lines into a usable format
(line1, line2). - Simple configuration to set the TLE source URL.
- Raises clear errors if no NORAD is provided or TLE cannot be fetched.
- Ideal for rapid prototyping, simulations, or orbital calculations.
🛠 Installation
pip install rTLE
📖 Usage
Basic Example
from rtle import fetch_tle
# NORAD ID for ISS
norads = [25544]
tle_data = fetch_tle(norads)
for norad, (line1, line2) in tle_data.items():
print(f"NORAD {norad}:")
print(line1)
print(line2)
Configuring a custom TLE source
from rtle import set_data_source_url
# Example: use CelesTrak public source
set_data_source_url("https://celestrak.org/NORAD/elements/gp.php?CATNR=")
⚠️ Errors
-
NoNoradProvidedError: Raised if you provide an empty list of NORAD IDs. -
TLEFetchError: Raised if the TLE cannot be retrieved or parsed. -
RTLEError: Base exception class for all rTLE errors.
📦 Supported Sources
By default, rTLE uses CelesTrak for TLE data:
https://celestrak.org/NORAD/elements/gp.php?CATNR=<NORAD>&FORMAT=TLE
🔧 Contributing
Contributions are welcome! Please open issues or pull requests for:
-
Adding support for more TLE sources
-
Improving error handling
-
Adding tests or documentation improvements
📄 License
MIT License © 2025 Edilson Filho
🔗 References
CelesTrak – Public satellite tracking and TLE data.
NORAD – North American Aerospace Defense Command satellite catalog.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rtle-0.1.0.tar.gz.
File metadata
- Download URL: rtle-0.1.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a92d4adafbbc04a7195856dccae4742a8762144f3a01375fed6961baccb93993
|
|
| MD5 |
782732a0b115a1da2b4980a0f9fc3f4e
|
|
| BLAKE2b-256 |
91a0f7c3e6b919f95f742b2a523a14ff03524b3f92ea5e7bebfed4e64f50dad1
|
File details
Details for the file rtle-0.1.0-py3-none-any.whl.
File metadata
- Download URL: rtle-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b44c833a76233132a1a9eb756d651bca2199fabe2aaa48b60e00d3a2cd18a237
|
|
| MD5 |
fb77be807c4850f0b3eb6b01635a78b3
|
|
| BLAKE2b-256 |
713ef6b3009e9fc54e72d45962a8fd41bb7aea57b7511ef734003e534502d94b
|