A tool for downloading and processing TLE data from CelesTrak
Project description
Charon
A Python tool for downloading and processing TLE (Two-Line Element) data from CelesTrak.
Features
- Download TLE data from CelesTrak for various satellite constellations
- Extract catalog IDs from TLE data
- Filter satellites with DTC (Direct to Cell) capability
- Filter TLE data by specific catalog IDs
- Support for custom URLs
- Command-line interface and Python API
Installation
pip install charon_tle
Quick Start
Python API Usage
from charon import CharonTLE
# Initialize
charon = CharonTLE()
# Download TLE data
tle_content = charon.download_tle('starlink')
# Extract all catalog IDs
cat_ids = charon.extract_catid(tle_content)
print(f"Found {len(cat_ids)} satellites")
# Extract DTC catalog IDs
dtc_ids = charon.extract_catid(tle_content, keyword='DTC')
print(f"Found {len(dtc_ids)} DTC satellites")
# Filter by catalog IDs
filtered_tle = charon.filter_tle_by_catid(tle_content, ['58705', '58706'])
# Save to file
charon.save_tle(filtered_tle, 'filtered.tle')
# Use custom URL
custom_tle = charon.download_tle('custom',
custom_url='https://celestrak.org/NORAD/elements/gp.php?GROUP=oneweb&FORMAT=tle')
print(custom_tle)
dev
uv add --dev pytest pytest-cov black isort flake8
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
charon_tle-0.2.0.tar.gz
(43.0 kB
view details)
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 charon_tle-0.2.0.tar.gz.
File metadata
- Download URL: charon_tle-0.2.0.tar.gz
- Upload date:
- Size: 43.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84575af98bc480a0f17177e42aacf785b5f6633f93d466faf31f0473fd284099
|
|
| MD5 |
74b5db9d8f484fdd775e14746a24691f
|
|
| BLAKE2b-256 |
7df8b6bc0a7a2c35d04db45887fad849bb99b8f7b914d604fbf1646fca11545f
|
File details
Details for the file charon_tle-0.2.0-py3-none-any.whl.
File metadata
- Download URL: charon_tle-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
740d23e88306d318cd3c95f46415550ec71fd4962bc705be5006315901bf7e81
|
|
| MD5 |
006c799642c928d8876131be85edc7f8
|
|
| BLAKE2b-256 |
c4301ee45ab24e039376b4c94c026a8dca47a9f6bf464b2e839bb920549ddd27
|