Skip to main content

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

Metadata

Release files for privacy-phone-summarizer 2025.12.21084113

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for privacy-phone-summarizer 2025.12.21084113
File Size Uploaded Provenance Actions
privacy_phone_summarizer-2025.12.21084113.tar.gz 4.4 kB Without provenance Details for privacy_phone_summarizer-2025.12.21084113.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for privacy-phone-summarizer 2025.12.21084113
File Interpreter ABI Platform Actions
privacy_phone_summarizer-2025.12.21084113-py3-none-any.whl Python 3 none any Details for privacy_phone_summarizer-2025.12.21084113-py3-none-any.whl

Total release size: 9.6 kB

Release files / privacy_phone_summarizer-2025.12.21084113.tar.gz

Download URL privacy_phone_summarizer-2025.12.21084113.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1f6028619750debe34759d5549dd3f39f3f2307f32362875c00e303600b864a3
BLAKE2b-256 checksum
How to use checksums
43f707aff3123b96bbaeedc48b483040b7f99d6e49ee2a13fd0c3fecf596f240
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.11

Release files / privacy_phone_summarizer-2025.12.21084113-py3-none-any.whl

Download URL privacy_phone_summarizer-2025.12.21084113-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d6ee355e54316d8df0b3e987b4f46a523ce753b45c781eb931d5209447356143
BLAKE2b-256 checksum
How to use checksums
6c7c7494251684bbc15ac2791770804bea065bf96d0cdbef228336b19bf7d20b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.11

Security for privacy-phone-summarizer 2025.12.21084113

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.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page