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
private_concept
A Python package for processing and structuring innovative, privacy-focused service ideas into clear, concise summaries using pattern matching and large language models (LLMs).
📌 Overview
private_concept helps users document privacy-focused concepts (e.g., a phone service that doesn’t collect personal data) by converting raw text inputs into structured, well-formatted summaries. It leverages LLM7 (by default) or any LangChain-compatible LLM to extract and refine key details, ensuring clarity and consistency.
🚀 Installation
Install via pip:
pip install private_concept
🔧 Usage
Basic Usage (Default LLM: LLM7)
from private_concept import private_concept
response = private_concept(
user_input="A phone company that never collects user data, ensuring full privacy."
)
print(response)
Custom LLM Integration
You can replace the default LLM with any LangChain-compatible model (e.g., OpenAI, Anthropic, Google Generative AI):
Using OpenAI
from langchain_openai import ChatOpenAI
from private_concept import private_concept
llm = ChatOpenAI()
response = private_concept(user_input="My privacy-first app idea...", llm=llm)
Using Anthropic
from langchain_anthropic import ChatAnthropic
from private_concept import private_concept
llm = ChatAnthropic()
response = private_concept(user_input="A service that anonymizes all user interactions.", llm=llm)
Using Google Generative AI
from langchain_google_genai import ChatGoogleGenerativeAI
from private_concept import private_concept
llm = ChatGoogleGenerativeAI()
response = private_concept(user_input="A decentralized messaging platform.", llm=llm)
🔑 API Key Configuration
- Default: Uses
LLM7_API_KEYfrom environment variables. - Manual Override: Pass the key directly:
from private_concept import private_concept response = private_concept(user_input="...", api_key="your_llm7_api_key")
- Get a Free Key: Register at LLM7
📝 Parameters
| Parameter | Type | Description |
|---|---|---|
user_input |
str |
Raw text describing the privacy-focused concept. |
api_key |
Optional[str] |
LLM7 API key (defaults to LLM7_API_KEY env var). |
llm |
Optional[BaseChatModel] |
Custom LangChain LLM (e.g., ChatOpenAI, ChatAnthropic). |
📊 Default LLM: LLM7
The package defaults to LLM7 (via langchain_llm7), a lightweight and efficient LLM. Free-tier rate limits are sufficient for most use cases. For higher limits, use your own API key.
🔄 Pattern Matching
The package enforces structured output via regex patterns, ensuring responses are consistent and easy to parse.
📜 License
MIT License. See LICENSE for details.
📢 Support & Issues
For bugs or feature requests, open an issue on GitHub.
👤 Author
Eugene Evstafev (LinkedIn) | hi@euegne.plus
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 private_concept-2025.12.21082713.tar.gz.
File metadata
- Download URL: private_concept-2025.12.21082713.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 |
351b57740f2dc81581f8378149498c6424836ae657cbe63f5f21e99214bff6ca
|
|
| MD5 |
7b11de050e69396676d2d79beaacbe5b
|
|
| BLAKE2b-256 |
7583137909a41522dda0a8bddff3d40d2e6032e2dbeae3c7151ac36e97d9d95d
|
File details
Details for the file private_concept-2025.12.21082713-py3-none-any.whl.
File metadata
- Download URL: private_concept-2025.12.21082713-py3-none-any.whl
- Upload date:
- Size: 5.0 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 |
20a1a04f9faea33ed498e288bb5d040183d450ab206e59196a505ba3811b5371
|
|
| MD5 |
4a997436af71a5e4dea1f6e182dda2ab
|
|
| BLAKE2b-256 |
bacd27aedd6b388962d705fd712d5502956dfab708784958cbff51b9a955bf0c
|