Skip to main content

social-insight-summarizer

PyPI version License: MIT Downloads LinkedIn

A package designed to analyze social media activity within an organization based on user-provided descriptions. It generates a structured summary highlighting key trends, comparisons, and insights about platform engagement levels, especially focusing on recent activity patterns versus other networks. The package leverages language models to produce clear, organized reports suitable for social media management and strategic planning.

Installation

Install the package via pip:

pip install social_insight_summarizer

Usage

Import the main function and invoke it with your input text. You can specify your own language model instance if desired, or use the default ChatLLM7 provided by the package.

from social_insight_summarizer import social_insight_summarizer

# Example usage:
response = social_insight_summarizer(
    user_input="Provide a brief description of recent social media activities across platforms.",
    api_key="your_llm7_api_key"  # Optional if API key is set in environment variables
)
print(response)

Parameters

  • user_input (str): The descriptive text about social media activity to analyze.
  • llm (Optional[BaseChatModel]): An optional custom language model instance from langchain. If not provided, the function defaults to using ChatLLM7.
  • api_key (Optional[str]): API key for LLM7. If not supplied, the code will attempt to read from the environment variable LLM7_API_KEY. If absent, it defaults to "None".

Additional Details

This package uses ChatLLM7 from the langchain_llm7 library. The default setup relies on its free tier, which provides sufficient rate limits for most use cases.

Dev can seamlessly integrate other language models, such as OpenAI, Anthropic, or Google Generative AI, by passing their respective instances:

from langchain_openai import ChatOpenAI
from social_insight_summarizer import social_insight_summarizer

llm = ChatOpenAI()
response = social_insight_summarizer(
    user_input="Describe recent social media activity.",
    llm=llm
)

Similarly, for Anthropic:

from langchain_anthropic import ChatAnthropic
from social_insight_summarizer import social_insight_summarizer

llm = ChatAnthropic()
response = social_insight_summarizer(
    user_input="Describe recent social media activity.",
    llm=llm
)

Or Google Generative AI:

from langchain_google_genai import ChatGoogleGenerativeAI
from social_insight_summarizer import social_insight_summarizer

llm = ChatGoogleGenerativeAI()
response = social_insight_summarizer(
    user_input="Describe recent social media activity.",
    llm=llm
)

Support and Issues

For questions or to report issues, please visit the repository issues page:

https://github.com/yourusername/social-insight-summarizer/issues

Author

Eugene Evstafev
Email: hi@euegne.plus

GitHub: chigwell

Metadata

Release files for social-insight-summarizer 2025.12.21113835

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

Source distribution (sdist)

Source distribution for social-insight-summarizer 2025.12.21113835
File Size Uploaded
social_insight_summarizer-2025.12.21113835.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for social-insight-summarizer 2025.12.21113835
File Interpreter ABI Platform
social_insight_summarizer-2025.12.21113835-py3-none-any.whl Python 3 none any Details

Total release size: 11.0 kB

Release files / social_insight_summarizer-2025.12.21113835.tar.gz

Download URL social_insight_summarizer-2025.12.21113835.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8bb8aca304b726cc1adf251d3bfafdac12fa2ae8d066743124117bcd343e349e
BLAKE2b-256 checksum
How to use checksums
3cbf56c8fd105aad2099fb633ab6a93e5583ad674a085b9eddea83614fe45cb9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.11

Release files / social_insight_summarizer-2025.12.21113835-py3-none-any.whl

Download URL social_insight_summarizer-2025.12.21113835-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a0f96f34129a84b0345b571199ebecf65a18078df6e731b364297b298bd40644
BLAKE2b-256 checksum
How to use checksums
88065f38f5f96236ca8cf6414773c7dc7d1dbf013383023678fe98cc8a93d145
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.11

Release history Release notifications | RSS feed

This release

2025.12.21113835 This release

2 release files

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