Satellite Insight Extractor
A Python package designed to extract structured insights from brief, domain-specific reports about satellite incidents and other aerospace events. It provides a concise, structured summary highlighting key aspects like event type, involved entities, and immediate implications.
📦 Installation
Install the package via pip:
pip install satellite_insight_extractor
🚀 Features
- Extracts structured insights from short text reports
- Supports customizable LLM backends (LLM7 by default)
- Regex-validated output for consistent formatting
- Lightweight and efficient for aerospace/satellite monitoring
🔧 Usage
Basic Usage (Default LLM7)
from satellite_insight_extractor import satellite_insight_extractor
# Example input: A short report about a satellite incident
user_input = """
Satellite X-912 experienced a partial solar array failure during orbital maneuver.
Ground control is investigating potential debris impact.
"""
# Extract insights (uses default LLM7)
response = satellite_insight_extractor(user_input)
print(response)
Custom LLM Integration
You can replace the default LLM7 with any LangChain-compatible model:
Using OpenAI
from langchain_openai import ChatOpenAI
from satellite_insight_extractor import satellite_insight_extractor
llm = ChatOpenAI()
response = satellite_insight_extractor(
user_input="Your satellite report here...",
llm=llm
)
Using Anthropic
from langchain_anthropic import ChatAnthropic
from satellite_insight_extractor import satellite_insight_extractor
llm = ChatAnthropic()
response = satellite_insight_extractor(
user_input="Your satellite report here...",
llm=llm
)
Using Google Vertex AI
from langchain_google_genai import ChatGoogleGenerativeAI
from satellite_insight_extractor import satellite_insight_extractor
llm = ChatGoogleGenerativeAI()
response = satellite_insight_extractor(
user_input="Your satellite report here...",
llm=llm
)
🔑 API Key Configuration
The package uses LLM7 as the default LLM provider. You can configure it in two ways:
-
Environment Variable (recommended for security):
export LLM7_API_KEY="your_api_key_here"
-
Direct Parameter:
from satellite_insight_extractor import satellite_insight_extractor response = satellite_insight_extractor( user_input="Your report...", api_key="your_api_key_here" )
Get a Free LLM7 API Key
Register at https://token.llm7.io/ for your free API key.
📝 Function Signature
satellite_insight_extractor(
user_input: str,
api_key: Optional[str] = None,
llm: Optional[BaseChatModel] = None
) -> List[str]
Parameters:
user_input(str): The input text describing satellite/aerospace events.api_key(Optional[str]): LLM7 API key (default:os.getenv("LLM7_API_KEY")).llm(Optional[BaseChatModel]): Custom LangChain LLM instance (default:ChatLLM7).
Returns:
- List[str]: Structured insights matching the predefined regex pattern.
📌 Output Format
The output is a regex-validated list of structured insights, typically including:
- Event type (e.g., "solar array failure")
- Involved entities (e.g., "Satellite X-912")
- Immediate implications (e.g., "orbital maneuver disrupted")
Example output:
[
"Event: Solar Array Failure",
"Entity: Satellite X-912",
"Location: Low Earth Orbit",
"Status: Under Investigation"
]
🔄 Default LLM7 Rate Limits
The free tier of LLM7 is sufficient for most use cases. For higher rate limits, upgrade your plan or use a custom LLM.
📖 Documentation & Support
- GitHub Issues: https://github.com/chigwell/satellite-insight-extractor/issues
- Author: Eugene Evstafev (LinkedIn)
- Email: hi@euegne.plus
📜 License
This project is licensed under the MIT License.
Metadata
Release files for satellite-insight-extractor 2025.12.21080509
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| satellite_insight_extractor-2025.12.21080509.tar.gz | 4.5 kB | Without provenance | Details for satellite_insight_extractor-2025.12.21080509.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| satellite_insight_extractor-2025.12.21080509-py3-none-any.whl | Python 3 | none | any | Details for satellite_insight_extractor-2025.12.21080509-py3-none-any.whl |
Total release size: 9.8 kB
Release files / satellite_insight_extractor-2025.12.21080509.tar.gz
| Download URL | satellite_insight_extractor-2025.12.21080509.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6a7ee3673e09dff08428ae3f5297e123c4c959f33c2eda5dc208c69d0056d0c4
|
|
BLAKE2b-256 checksum How to use checksums |
cbd278f2efeb73162d8c2a9256b47b8aaae576c23bd505d1576240b1c7d0a153
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.11
|
Release files / satellite_insight_extractor-2025.12.21080509-py3-none-any.whl
| Download URL | satellite_insight_extractor-2025.12.21080509-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0c8515805e5f887888f7b351d9867bcf5a922e3a5a2211a062055436cc9e645b
|
|
BLAKE2b-256 checksum How to use checksums |
79b1747553499dc73fa104ad853a17eac071fc246def713a6191e58e26a4a2d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.11
|
Security for satellite-insight-extractor 2025.12.21080509
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.