Skip to main content

A new package that enables users to provide simple text inputs about innovative, privacy-focused services—such as a phone company that doesn't collect personal data—and receive structured summaries or

Project description

Privacy Idea Struct

PyPI version License: MIT Downloads LinkedIn

A Python package that enables users to provide simple text inputs about innovative, privacy-focused services and receive structured summaries or descriptions of their ideas.

Installation

pip install privacy_idea_struct

Usage

from privacy_idea_struct import privacy_idea_struct

response = privacy_idea_struct(
    user_input="A phone company that doesn't collect personal data.",
    api_key="your_api_key_here"
)
print(response)

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 environment variable LLM7_API_KEY will be used.

Using Different LLMs

You can safely pass your own LLM instance if you want to use another LLM. Here are examples for different LLMs:

OpenAI

from langchain_openai import ChatOpenAI
from privacy_idea_struct import privacy_idea_struct

llm = ChatOpenAI()
response = privacy_idea_struct(
    user_input="A phone company that doesn't collect personal data.",
    llm=llm
)
print(response)

Anthropic

from langchain_anthropic import ChatAnthropic
from privacy_idea_struct import privacy_idea_struct

llm = ChatAnthropic()
response = privacy_idea_struct(
    user_input="A phone company that doesn't collect personal data.",
    llm=llm
)
print(response)

Google

from langchain_google_genai import ChatGoogleGenerativeAI
from privacy_idea_struct import privacy_idea_struct

llm = ChatGoogleGenerativeAI()
response = privacy_idea_struct(
    user_input="A phone company that doesn't collect personal data.",
    llm=llm
)
print(response)

Rate Limits

The default rate limits for LLM7 free tier are sufficient for most use cases of this package. If you want higher rate limits for LLM7, you can pass your own API key via the environment variable LLM7_API_KEY or directly via the api_key parameter. You can get a free API key by registering at LLM7.

Issues

If you encounter any issues, please report them on the GitHub issues page.

Author

License

This project is licensed under the MIT License - see the LICENSE file for details.

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_idea_struct-2025.12.21083159.tar.gz (4.1 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_idea_struct-2025.12.21083159.tar.gz.

File metadata

File hashes

Hashes for privacy_idea_struct-2025.12.21083159.tar.gz
Algorithm Hash digest
SHA256 36e91d67940b389c6b2dd2b4c42c1038627219760cdb98a42831c5a5935a8340
MD5 5629d0644125a281dc31ba795beb2059
BLAKE2b-256 ddd4e797856435f19215a956f00da0f73caa6a1d9992f6df7a569df00a370640

See more details on using hashes here.

File details

Details for the file privacy_idea_struct-2025.12.21083159-py3-none-any.whl.

File metadata

File hashes

Hashes for privacy_idea_struct-2025.12.21083159-py3-none-any.whl
Algorithm Hash digest
SHA256 c495195c981584ee96a36ff793d7db30d221c492277ba956da0b259fef1479d9
MD5 c9f25e924ca49c34ab302ab15c312e6a
BLAKE2b-256 232300c3ea70a013c42c0f2b8af592dcb21cb4bf687358f84026d283679d5b10

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