A new package that processes text input related to early Unix history (pre-V7) and returns structured, verified summaries using pattern matching and LLM interactions. It takes user-provided text (e.g.
Project description
pre‑v7‑unix‑summarizer
A lightweight Python package that processes text about early Unix history (pre‑V7) and returns concise, structured summaries. The summaries are generated via a language model and are forced to match a predefined XML‑like pattern, making them easy to parse and validate.
Installation
pip install pre_v7_unix_summarizer
Quick Start
from pre_v7_unix_summarizer import pre_v7_unix_summarizer
# Simple call – the default ChatLLM7 will be used
summary = pre_v7_unix_summarizer(
user_input="The early days of Unix started at AT&T Bell Labs in the late 1960s..."
)
print(summary) # -> List of strings that match the output pattern
Parameters
| Name | Type | Description |
|---|---|---|
| user_input | str |
Raw text containing historical Unix information that you want to summarize. |
| llm | Optional[BaseChatModel] |
A LangChain LLM instance. If omitted, the package creates a default ChatLLM7 instance. |
| api_key | Optional[str] |
API key for the LLM7 service. If not supplied, the function looks for the environment variable LLM7_API_KEY. If that is also missing, a placeholder key "None" is used. |
Under the Hood
- Default LLM –
ChatLLM7from thelangchain_llm7package (see https://pypi.org/project/langchain-llm7/). - Pattern Matching – The response is validated against a regular expression defined in
prompts.patternusingllmatch. Only data that matches the pattern is returned.
Using a Custom LLM
You can provide any LangChain‑compatible chat model. Below are a few examples.
OpenAI
from langchain_openai import ChatOpenAI
from pre_v7_unix_summarizer import pre_v7_unix_summarizer
llm = ChatOpenAI()
summary = pre_v7_unix_summarizer(
user_input="Your Unix text here...",
llm=llm
)
Anthropic
from langchain_anthropic import ChatAnthropic
from pre_v7_unix_summarizer import pre_v7_unix_summarizer
llm = ChatAnthropic()
summary = pre_v7_unix_summarizer(
user_input="Your Unix text here...",
llm=llm
)
Google Generative AI
from langchain_google_genai import ChatGoogleGenerativeAI
from pre_v7_unix_summarizer import pre_v7_unix_summarizer
llm = ChatGoogleGenerativeAI()
summary = pre_v7_unix_summarizer(
user_input="Your Unix text here...",
llm=llm
)
API Key & Rate Limits
- LLM7 Free Tier – The default rate limits are sufficient for most research and hobbyist use cases.
- Higher Limits – Provide your own API key either through the
LLM7_API_KEYenvironment variable or by passingapi_key="YOUR_KEY"directly to the function. - Get a Free Key – Register at https://token.llm7.io/ to obtain an API key.
Contributing & Support
If you encounter any issues or have feature requests, please open an issue on GitHub:
https://github....
We welcome contributions, bug reports, and suggestions.
License
This project is licensed under the MIT License.
Author
Eugene Evstafev – hi@euegne.plus
GitHub: chigwell
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 pre_v7_unix_summarizer-2025.12.21164816.tar.gz.
File metadata
- Download URL: pre_v7_unix_summarizer-2025.12.21164816.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e014e5d40e876a939c8071c6db05abfb99e61353f958e09aa7ffe31b6c3d73bd
|
|
| MD5 |
814715d63c1728bc42c4da379688c7f3
|
|
| BLAKE2b-256 |
7407dcb08372cd49af87a87e4f5739f303d3e24586a4754a8d3e19eb2d9d2c82
|
File details
Details for the file pre_v7_unix_summarizer-2025.12.21164816-py3-none-any.whl.
File metadata
- Download URL: pre_v7_unix_summarizer-2025.12.21164816-py3-none-any.whl
- Upload date:
- Size: 5.9 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 |
9875ed1f418a31abec3d19b4db57bdc9cf5a199e8740f6489495557f6d9a66ba
|
|
| MD5 |
c21ea8a88f1593bd8da2987abfd57c47
|
|
| BLAKE2b-256 |
c156aa1232b75fb4337d78dcb2b2ae410fcfc079cecaa17b943acb8c12196068
|