Skip to main content

linkedin-post-craft

PyPI version License: MIT Downloads LinkedIn

linkedin-post-craft is a lightweight Python package that generates professional LinkedIn posts from simple user‑provided text.
Pick one of five tones (professional, casual, inspirational, analytical, humorous) and let the package craft a LinkedIn‑ready post that follows best practices for engagement and visibility.

Installation

pip install linkedin_post_craft

Quick Start

from linkedin_post_craft import linkedin_post_craft

# Simple call – uses the default ChatLLM7 model
post = linkedin_post_craft(
    user_input="Just completed a successful product launch that increased revenue by 30%."
)

print(post)   # → list of generated LinkedIn post strings

Parameters

Name Type Description
user_input str The raw text containing key points, achievements, or ideas you want to turn into a LinkedIn post.
llm Optional[BaseChatModel] A LangChain chat model instance. If omitted, the package creates a ChatLLM7 instance automatically.
api_key Optional[str] API key for LLM7. If omitted, the package reads LLM7_API_KEY from the environment or falls back to an unauthenticated request (subject to rate limits).

Using a Custom LLM

You can pass any LangChain‑compatible chat model (OpenAI, Anthropic, Google, etc.):

OpenAI

from langchain_openai import ChatOpenAI
from linkedin_post_craft import linkedin_post_craft

llm = ChatOpenAI(model="gpt-4o-mini")
post = linkedin_post_craft(user_input="My team just earned a industry award.", llm=llm)

Anthropic

from langchain_anthropic import ChatAnthropic
from linkedin_post_craft import linkedin_post_craft

llm = ChatAnthropic(model="claude-3-haiku-20240307")
post = linkedin_post_craft(user_input="Celebrating 5 years at my company!", llm=llm)

Google GenAI

from langchain_google_genai import ChatGoogleGenerativeAI
from linkedin_post_craft import linkedin_post_craft

llm = ChatGoogleGenerativeAI(model="gemini-1.5-flash")
post = linkedin_post_craft(user_input="Excited to share my new certification.", llm=llm)

Default LLM (LLM7)

If you don’t provide your own model, linkedin-post-craft uses ChatLLM7 from the langchain_llm7 package:

from linkedin_post_craft import linkedin_post_craft

post = linkedin_post_craft(
    user_input="Announcing a partnership with XYZ Corp.",
    api_key="your_llm7_api_key"   # optional; otherwise reads LLM7_API_KEY env var
)

You can obtain a free LLM7 API key by registering at https://token.llm7.io/.

The free tier’s rate limits are sufficient for most typical usage. For higher throughput, supply a paid API key via the api_key argument or the LLM7_API_KEY environment variable.

Output

The function returns a List[str] containing one or more generated LinkedIn posts that match the chosen tone and adhere to LinkedIn’s style guidelines.

Development & Issues

If you encounter bugs, have feature requests, or want to contribute, please open an issue on GitHub:

https://github.com/chigwell/linkedin-post-craft/issues

License

This project is licensed under the MIT License.

Author

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

Metadata

Release files for linkedin-post-craft 2025.12.21172241

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

Source distribution (sdist)

Source distribution for linkedin-post-craft 2025.12.21172241
File Size Uploaded
linkedin_post_craft-2025.12.21172241.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for linkedin-post-craft 2025.12.21172241
File Interpreter ABI Platform
linkedin_post_craft-2025.12.21172241-py3-none-any.whl Python 3 none any Details

Total release size: 9.4 kB

Release files / linkedin_post_craft-2025.12.21172241.tar.gz

Download URL linkedin_post_craft-2025.12.21172241.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3bf24ca85ca3fca8947596eada5e354cba19d2a35ea9bd71367d5cee9dfb3afa
BLAKE2b-256 checksum
How to use checksums
1b61831ece2dc16c517e24ee9b48f221b2924c7ce8056ba0ed6755116e0e5e50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.1

Release files / linkedin_post_craft-2025.12.21172241-py3-none-any.whl

Download URL linkedin_post_craft-2025.12.21172241-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ebf87eeb742bc56ba7819af395352c9a70f39e84210f1891fda95a3a86c19075
BLAKE2b-256 checksum
How to use checksums
cd7fb91a4e75f6c47675eac6f591ed004d71ca6c9a32de7b412a4ca073c3ea9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.1

Release history Release notifications | RSS feed

This release

2025.12.21172241 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