A new package that generates professional LinkedIn posts from user-provided text input. Users can input their key points, achievements, or ideas, and the package will return a well-structured LinkedIn
Project description
linkedin-post-craft
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
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 linkedin_post_craft-2025.12.21172241.tar.gz.
File metadata
- Download URL: linkedin_post_craft-2025.12.21172241.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3bf24ca85ca3fca8947596eada5e354cba19d2a35ea9bd71367d5cee9dfb3afa
|
|
| MD5 |
4f0547fbd4c669931997cfc849e0e169
|
|
| BLAKE2b-256 |
1b61831ece2dc16c517e24ee9b48f221b2924c7ce8056ba0ed6755116e0e5e50
|
File details
Details for the file linkedin_post_craft-2025.12.21172241-py3-none-any.whl.
File metadata
- Download URL: linkedin_post_craft-2025.12.21172241-py3-none-any.whl
- Upload date:
- Size: 5.1 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 |
ebf87eeb742bc56ba7819af395352c9a70f39e84210f1891fda95a3a86c19075
|
|
| MD5 |
e2bc48c08c76cfaee534a29153d89ebf
|
|
| BLAKE2b-256 |
cd7fb91a4e75f6c47675eac6f591ed004d71ca6c9a32de7b412a4ca073c3ea9a
|