text-theme-scribe extracts recurring themes from text and returns a structured list of key concepts via LLM, ensuring consistent formatting.
Project description
text_theme_scribe
A package that analyzes user-provided text to identify and extract recurring themes or topics, then summarizes them into a structured list of key concepts.
Installation
To install the package, use pip:
pip install text-theme_scribe
Usage
To use the package, import the text_theme_scribe function and call it with a string input:
from text_theme_scribe import text_theme_scribe
user_input = "This is a sample text with multiple themes..."
response = text_theme_scribe(user_input)
print(response)
Parameters
user_input: str, the user input text to processllm: Optional[BaseChatModel], the langchain LLM instance to use (default: ChatLLM7 from langchain_llm7 https://pypi.org/project/langchain_llm7/)api_key: Optional[str], the API key for llm7 (default: environment variable LLM7_API_KEY)
You can pass a custom LLM instance by passing it as the llm parameter. For example:
from text_theme_scribe import text_theme_scribe
from langchain_openai import ChatOpenAI
llm = ChatOpenAI()
response = text_theme_scribe(user_input, llm=llm)
You can also pass a custom API key by setting the LLM7_API_KEY environment variable or by passing it directly:
import os
os.environ["LLM7_API_KEY"] = "your_api_key"
response = text_theme_scribe(user_input)
If you want to use a different LLM, you can use a different API key:
response = text_theme_scribe(user_input, api_key="your_api_key")
Default LLM and API Key
By default, the package uses the ChatLLM7 from langchain_llm7 https://pypi.org/project/langchain_llm7/ and the free tier API key. If you want to use a different LLM or has higher rate limits, you can pass a custom LLM instance or API key.
Rate Limits
The default rate limits for LLM7 free tier are sufficient for most use cases of this package. If you need higher rate limits, you can pass your own API key via environment variable LLM7_API_KEY or by passing it directly.
Author
Eugene Evstafev
You can get a free API key by registering at https://token.llm7.io/
GitHub Issues
If you find any issues or have any questions, please open an issue on our GitHub repository: https://github.com/chigwell/text-theme_scribe
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 text_theme_scribe-2025.12.21184024.tar.gz.
File metadata
- Download URL: text_theme_scribe-2025.12.21184024.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0fea946104a7da8a61346180d733b7f3670954241c08d00f547eb7efceb4f22a
|
|
| MD5 |
e6c6ca77e566c339d1fc68943fbb0e69
|
|
| BLAKE2b-256 |
3173ba8644fc200f4d168efd6400a322f89cceadbe9df4a04ec87c08aeb09d35
|
File details
Details for the file text_theme_scribe-2025.12.21184024-py3-none-any.whl.
File metadata
- Download URL: text_theme_scribe-2025.12.21184024-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3677a195e01970ee72c3a16e5c49f69d4ea8937ac39db74226ffb65c962e0aa4
|
|
| MD5 |
49a0a7c2c1679b78bf259a3b29e374ca
|
|
| BLAKE2b-256 |
a3c5a12269b0493799a1a2684986758714f079c2e91d38d780ac53f8b422246a
|