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
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 defaultChatLLM7will be used.api_key(Optional[str]): The API key for LLM7. If not provided, the environment variableLLM7_API_KEYwill 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)
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
- Eugene Evstafev
- Email: hi@eugene.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 privacy_idea_struct-2025.12.21083159.tar.gz.
File metadata
- Download URL: privacy_idea_struct-2025.12.21083159.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36e91d67940b389c6b2dd2b4c42c1038627219760cdb98a42831c5a5935a8340
|
|
| MD5 |
5629d0644125a281dc31ba795beb2059
|
|
| BLAKE2b-256 |
ddd4e797856435f19215a956f00da0f73caa6a1d9992f6df7a569df00a370640
|
File details
Details for the file privacy_idea_struct-2025.12.21083159-py3-none-any.whl.
File metadata
- Download URL: privacy_idea_struct-2025.12.21083159-py3-none-any.whl
- Upload date:
- Size: 4.8 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 |
c495195c981584ee96a36ff793d7db30d221c492277ba956da0b259fef1479d9
|
|
| MD5 |
c9f25e924ca49c34ab302ab15c312e6a
|
|
| BLAKE2b-256 |
232300c3ea70a013c42c0f2b8af592dcb21cb4bf687358f84026d283679d5b10
|