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

private_concept

PyPI version License: MIT Downloads LinkedIn

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_KEY from 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


Download files

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

Source Distribution

private_concept-2025.12.21082713.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.

private_concept-2025.12.21082713-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file private_concept-2025.12.21082713.tar.gz.

File metadata

File hashes

Hashes for private_concept-2025.12.21082713.tar.gz
Algorithm Hash digest
SHA256 351b57740f2dc81581f8378149498c6424836ae657cbe63f5f21e99214bff6ca
MD5 7b11de050e69396676d2d79beaacbe5b
BLAKE2b-256 7583137909a41522dda0a8bddff3d40d2e6032e2dbeae3c7151ac36e97d9d95d

See more details on using hashes here.

File details

Details for the file private_concept-2025.12.21082713-py3-none-any.whl.

File metadata

File hashes

Hashes for private_concept-2025.12.21082713-py3-none-any.whl
Algorithm Hash digest
SHA256 20a1a04f9faea33ed498e288bb5d040183d450ab206e59196a505ba3811b5371
MD5 4a997436af71a5e4dea1f6e182dda2ab
BLAKE2b-256 bacd27aedd6b388962d705fd712d5502956dfab708784958cbff51b9a955bf0c

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