Skip to main content

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

PyPI version License: MIT Downloads LinkedIn

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 default ChatLLM7 will 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

privacy_phone_summarizer-2025.12.21084113.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file privacy_phone_summarizer-2025.12.21084113.tar.gz.

File metadata

File hashes

Hashes for privacy_phone_summarizer-2025.12.21084113.tar.gz
Algorithm Hash digest
SHA256 1f6028619750debe34759d5549dd3f39f3f2307f32362875c00e303600b864a3
MD5 d1a0654ef69139c4ddbf50472a11144c
BLAKE2b-256 43f707aff3123b96bbaeedc48b483040b7f99d6e49ee2a13fd0c3fecf596f240

See more details on using hashes here.

File details

Details for the file privacy_phone_summarizer-2025.12.21084113-py3-none-any.whl.

File metadata

File hashes

Hashes for privacy_phone_summarizer-2025.12.21084113-py3-none-any.whl
Algorithm Hash digest
SHA256 d6ee355e54316d8df0b3e987b4f46a523ce753b45c781eb931d5209447356143
MD5 8456f853542e566794bc28d71e2e365c
BLAKE2b-256 6c7c7494251684bbc15ac2791770804bea065bf96d0cdbef228336b19bf7d20b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page