A new package that receives a short textual description of a phone company that deliberately avoids collecting personal data and returns a structured, machine‑readable summary (e.g., JSON) of the serv
Project description
Privacy Phone Summarizer
Overview
The privacy_phone_summarizer package is designed to receive a short textual description of a phone company that deliberately avoids collecting personal data. It returns a structured, machine-readable summary (e.g., JSON) of the service. The package uses llmatch-messages to enforce a predefined response format, extracting fields such as "company_name," "privacy_policy," "key_features," and "usage_guidelines." By handling only pre-extracted text (no raw audio, video, URLs), it ensures consistent, privacy-focused output that can be easily integrated into downstream applications or dashboards.
Installation
You can install the package using pip:
pip install privacy_phone_summarizer
Usage
Here is an example of how to use the privacy-phone-summarizer package:
from privacy_phone_summarizer import privacy_phone_summarizer
# Example user input
user_input = "Company XYZ offers a privacy-focused phone service with no data collection."
# Call the summarizer function
response = privacy_phone_summarizer(user_input)
# Print the response
print(response)
Input Parameters
user_input(str): The user input text to process.llm(Optional[BaseChatModel]): The LangChain LLM instance to use. If not provided, the defaultChatLLM7will be used.api_key(Optional[str]): The API key for LLM7. If not provided, the default API key will be used.
Using a Custom LLM
You can pass your own LLM instance if you want to use a different LLM. For example, to use OpenAI:
from langchain_openai import ChatOpenAI
from privacy_phone_summarizer import privacy_phone_summarizer
# Initialize the custom LLM
llm = ChatOpenAI()
# Call the summarizer function with the custom LLM
response = privacy_phone_summarizer(user_input, llm=llm)
# Print the response
print(response)
Similarly, you can use other LLMs like Anthropic or Google:
from langchain_anthropic import ChatAnthropic
from privacy_phone_summarizer import privacy_phone_summarizer
# Initialize the custom LLM
llm = ChatAnthropic()
# Call the summarizer function with the custom LLM
response = privacy_phone_summarizer(user_input, llm=llm)
# Print the response
print(response)
from langchain_google_genai import ChatGoogleGenerativeAI
from privacy_phone_summarizer import privacy_phone_summarizer
# Initialize the custom LLM
llm = ChatGoogleGenerativeAI()
# Call the summarizer function with the custom LLM
response = privacy_phone_summarizer(user_input, llm=llm)
# Print the response
print(response)
API Key
The default rate limits for LLM7 free tier are sufficient for most use cases of this package. If you need higher rate limits for LLM7, you can pass your own API key via the environment variable LLM7_API_KEY or directly:
response = privacy_phone_summarizer(user_input, api_key="your_api_key")
You can get a free API key by registering at LLM7 Token.
Contributing
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
License
This project is licensed under the MIT License.
Author
- Eugene Evstafev
- Email: hi@euegne.plus
- GitHub: chigwell
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 privacy_phone_summarizer-2025.12.21084113.tar.gz.
File metadata
- Download URL: privacy_phone_summarizer-2025.12.21084113.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f6028619750debe34759d5549dd3f39f3f2307f32362875c00e303600b864a3
|
|
| MD5 |
d1a0654ef69139c4ddbf50472a11144c
|
|
| BLAKE2b-256 |
43f707aff3123b96bbaeedc48b483040b7f99d6e49ee2a13fd0c3fecf596f240
|
File details
Details for the file privacy_phone_summarizer-2025.12.21084113-py3-none-any.whl.
File metadata
- Download URL: privacy_phone_summarizer-2025.12.21084113-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6ee355e54316d8df0b3e987b4f46a523ce753b45c781eb931d5209447356143
|
|
| MD5 |
8456f853542e566794bc28d71e2e365c
|
|
| BLAKE2b-256 |
6c7c7494251684bbc15ac2791770804bea065bf96d0cdbef228336b19bf7d20b
|