Skip to main content

vidconcept-sum

PyPI version License: MIT Downloads LinkedIn

vidconcept-sum is a lightweight Python package that turns a video title or short text description into a structured, factual summary of the scientific or educational concept being presented. It leverages an LLM (by default ChatLLM7) to interpret the topic and returns a concise explanation, key terms, and contextual information, all formatted according to a strict regex pattern.


Features

  • One‑line API – just pass a string, get a list of structured summary elements.
  • LLM‑agnostic – works out‑of‑the‑box with ChatLLM7, but you can plug any LangChain‑compatible chat model.
  • Safety‑first – the prompt enforces factual, non‑speculative answers and validates output against a regular expression.
  • Easy installation – available on PyPI.

Installation

pip install vidconcept_sum

Quick Start

from vidconcept_sum import vidconcept_sum

# Simple call using the default ChatLLM7 model (requires an API key)
summary = vidconcept_sum(
    user_input="A short intro to quantum entanglement in YouTube video titles."
)

print(summary)

Parameters

Name Type Description
user_input str The video title or short description to be summarised.
llm (optional) BaseChatModel Any LangChain chat model instance. If omitted, the default ChatLLM7 will be instantiated.
api_key (optional) str API key for LLM7. If not supplied, the function looks for the environment variable LLM7_API_KEY.

The function returns a List[str] containing the extracted summary data.


Using a Custom LLM

You can replace the default ChatLLM7 with any LangChain‑compatible chat model. Below are examples for OpenAI, Anthropic, and Google Generative AI.

OpenAI

from langchain_openai import ChatOpenAI
from vidconcept_sum import vidconcept_sum

llm = ChatOpenAI(model="gpt-4o-mini")
response = vidconcept_sum(
    user_input="Explaining the basics of photosynthesis.",
    llm=llm
)
print(response)

Anthropic

from langchain_anthropic import ChatAnthropic
from vidconcept_sum import vidconcept_sum

llm = ChatAnthropic(model="claude-3-haiku-20240307")
response = vidconcept_sum(
    user_input="A video about black holes and event horizons.",
    llm=llm
)
print(response)

Google Generative AI

from langchain_google_genai import ChatGoogleGenerativeAI
from vidconcept_sum import vidconcept_sum

llm = ChatGoogleGenerativeAI(model="gemini-1.5-flash")
response = vidconcept_sum(
    user_input="Understanding the theory of relativity in simple terms.",
    llm=llm
)
print(response)

API Key & Rate Limits

  • LLM7 free tier provides generous rate limits that cover typical usage of this package.
  • If you need higher limits, supply your own API key:
    • Via environment variable: export LLM7_API_KEY="your_key_here"
    • Or directly in the call: vidconcept_sum(..., api_key="your_key_here")
  • Obtain a free API key by registering at https://token.llm7.io/.

Contributing & Support

If you encounter any issues or have feature requests, please open an issue on GitHub:

https://github.com/chigwell/vidconcept-sum/issues


License

This project is licensed under the MIT License.


Author

Eugene Evstafev
Email: hi@euegne.plus
GitHub: chigwell


Enjoy using vidconcept-sum to instantly extract clear, educational concepts from video titles!

Metadata

Release files for vidconcept-sum 2025.12.21193338

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vidconcept-sum 2025.12.21193338
File Size Uploaded Provenance Actions
vidconcept_sum-2025.12.21193338.tar.gz 4.3 kB Without provenance Details for vidconcept_sum-2025.12.21193338.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vidconcept-sum 2025.12.21193338
File Interpreter ABI Platform Actions
vidconcept_sum-2025.12.21193338-py3-none-any.whl Python 3 none any Details for vidconcept_sum-2025.12.21193338-py3-none-any.whl

Total release size: 9.3 kB

Release files / vidconcept_sum-2025.12.21193338.tar.gz

Download URL vidconcept_sum-2025.12.21193338.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1db0a8f6eca4b679aea2a6c6d6b1358ea284fdaec90b1c3a1f4b30d56b29edbc
BLAKE2b-256 checksum
How to use checksums
070a1a817823eb79635ae836426dd1bf17b0c61f8ace46493ecba6e6e2226715
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.1

Release files / vidconcept_sum-2025.12.21193338-py3-none-any.whl

Download URL vidconcept_sum-2025.12.21193338-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bcafed169e19ecac2edc21a0e1b21b9e49b367a5c23864aecad4bfcc725679dd
BLAKE2b-256 checksum
How to use checksums
423dfd55763b080493a46344bfb2009c49b0bd54fc0147b6849aee9e641f1618
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.1

Security for vidconcept-sum 2025.12.21193338

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page