A new package processes textual descriptions of drone designs to extract structured summaries of their operational capabilities. It focuses on identifying and categorizing key features such as locomot
Project description
Drone Capability Parser
drone-capability-parser is a lightweight Python package that extracts structured summaries of a drone’s operational capabilities from free‑form textual descriptions.
It automatically identifies locomotion methods (e.g., wheeled movement, flight) and unified actuation systems, delivering a clean, standardized output for engineers and designers.
Installation
pip install drone_capability_parser
Quick Start
from drone_capability_parser import drone_capability_parser
# Basic usage – let the library create the default LLM7 client for you
text = """
The new Explorer drone can roll on its six wheeled chassis at up to 15 km/h,
while its rotors enable vertical take‑off and hover for 30 minutes.
All motion is coordinated through a unified actuation controller.
"""
caps = drone_capability_parser(user_input=text)
print(caps)
# -> ['locomotion: wheeled, speed: 15 km/h', 'locomotion: flight, hover_time: 30 min', ...]
Function signature
drone_capability_parser(
user_input: str,
llm: Optional[BaseChatModel] = None,
api_key: Optional[str] = None,
) -> List[str]
| Parameter | Type | Description |
|---|---|---|
user_input |
str |
The free‑form description of the drone design you want to parse. |
llm |
Optional[BaseChatModel] |
A LangChain LLM instance. If omitted, the function creates a ChatLLM7 client automatically. |
api_key |
Optional[str] |
API key for the LLM7 service. If omitted, the function reads the LLM7_API_KEY environment variable, or falls back to a placeholder "None" (which triggers the default free‑tier limits). |
Using a Custom LLM
You can plug any LangChain‑compatible chat model that inherits from BaseChatModel.
Below are a few examples:
OpenAI (langchain-openai)
from langchain_openai import ChatOpenAI
from drone_capability_parser import drone_capability_parser
llm = ChatOpenAI(model="gpt-4o-mini")
response = drone_capability_parser(user_input=text, llm=llm)
Anthropic (langchain-anthropic)
from langchain_anthropic import ChatAnthropic
from drone_capability_parser import drone_capability_parser
llm = ChatAnthropic(model="claude-3-haiku-20240307")
response = drone_capability_parser(user_input=text, llm=llm)
Google Generative AI (langchain-google-genai)
from langchain_google_genai import ChatGoogleGenerativeAI
from drone_capability_parser import drone_capability_parser
llm = ChatGoogleGenerativeAI(model="gemini-1.5-flash")
response = drone_capability_parser(user_input=text, llm=llm)
Default LLM – ChatLLM7
If you do not provide an llm instance, drone_capability_parser uses ChatLLM7 from the langchain_llm7 package:
https://pypi.org/project/langchain-llm7/
The free tier of LLM7 offers generous rate limits that satisfy most development and testing scenarios.
To increase limits, supply a personal API key:
export LLM7_API_KEY="your_api_key_here"
or directly:
response = drone_capability_parser(user_input=text, api_key="your_api_key_here")
You can obtain a free API key by registering at:
https://token.llm7.io/
Contributing & Support
- Issues: Please open any bugs or feature requests on the GitHub issue tracker:
https://github.... - Author: Eugene Evstafev – hi@euegne.plus
- GitHub: chigwell
License
This project is licensed under the MIT License. See the LICENSE file for details.
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 drone_capability_parser-2025.12.21140812.tar.gz.
File metadata
- Download URL: drone_capability_parser-2025.12.21140812.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5831cfebd3e880becc50eb34710583e54bfbe3a8e502ce4faac78cac2b49f509
|
|
| MD5 |
9cc1002a040923ed8ecc95ee70c5a8ba
|
|
| BLAKE2b-256 |
66106f96133f3d452ef36922ad837d5191fd2d8f7fb72aa564ac36cf408a6a50
|
File details
Details for the file drone_capability_parser-2025.12.21140812-py3-none-any.whl.
File metadata
- Download URL: drone_capability_parser-2025.12.21140812-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6d26505f974b34869a25def9a176d93dc6f9481c97a2b4ba1c88db88bc8f937
|
|
| MD5 |
0e1da276c3739c7087df1e49d79d601c
|
|
| BLAKE2b-256 |
e782482b328200d3cb035f0d5e1078526dda634e27cdcbe5af9d64064874a3eb
|