Skip to main content

SocialPublishKit

One video. Four destinations. Python, JavaScript, Rust.

Publish MP4 videos through official platform APIs. The Python SDK includes the adapters and a local gateway. JavaScript/TypeScript and Rust connect to that gateway. No publishing subscription or Algovid installation required. Bring your own developer apps, accounts and approved permissions.

Destination Support
Facebook Pages Video Reels. Personal profiles unsupported
Instagram professional accounts Reels through Instagram Unified Login
TikTok Draft uploads. Direct posting subject to app approval and user consent
YouTube Video uploads. Visibility and Shorts eligibility remain platform-controlled

Version 0.1.1. See release notes and downloads for registry availability and verified package archives.

Install

Registry package name: socialpublishkit in all three ecosystems. Once the release is available:

pip install socialpublishkit
npm install socialpublishkit
cargo add socialpublishkit

JavaScript and Rust require the Python gateway running on your host. Provider credentials and app approval are still required. Downloadable archives can also be installed locally with pip, npm, or a Cargo path dependency.

Get started from source

git clone https://github.com/caporalCoder/socialpublishkit.git
cd socialpublishkit
python3 -m venv .venv
source .venv/bin/activate
pip install .
cp examples/gateway.json gateway.local.json

Configure your account in gateway.local.json, set its credential environment variables, then start the gateway. Setup, token refresh and OAuth →

export SOCIALPUBLISHKIT_TOKEN="$(python3 -c 'import secrets; print(secrets.token_urlsafe(32))')"
python -m socialpublishkit --config gateway.local.json

Python client:

import os
from socialpublishkit import GatewayClient

client = GatewayClient(os.environ["SOCIALPUBLISHKIT_TOKEN"])
print(client.accounts())

JavaScript client (install with npm install /path/to/socialpublishkit/sdks/javascript):

import { SocialClient } from 'socialpublishkit';
const client = new SocialClient({ token: process.env.SOCIALPUBLISHKIT_TOKEN });
console.log(await client.accounts());

Rust dependency:

socialpublishkit = { git = "https://github.com/caporalCoder/socialpublishkit.git", tag = "v0.1.1" }

Publishing examples in all three languages →

Behavior

  • Durable job receipts and duplicate protection for identical publication IDs.
  • No automatic repost after an ambiguous result. Query the receipt and check the destination.
  • Credentials stay in the Python host. Clients receive account IDs and publication status.
  • The gateway binds to localhost, requires authentication and accepts videos up to 32 MiB.
  • No hosted service, scheduler or platform-review bypass. See limits.

Python 3.10+, Node.js 20+, Rust 1.98.0 tested. The gateway supports macOS/Linux. Tests use fake providers. Passing tests does not certify app approval or live platform behavior.

License

MIT. Free to use, modify and redistribute, including commercially, with the copyright and license notices preserved. Dependencies retain their own licenses.

Contributing · Security

Metadata

Release files for socialpublishkit 0.1.1

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

Source distribution (sdist)

Source distribution for socialpublishkit 0.1.1
File Size Uploaded Provenance Actions
socialpublishkit-0.1.1.tar.gz 36.2 kB With provenance Details for socialpublishkit-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for socialpublishkit 0.1.1
File Interpreter ABI Platform Actions
socialpublishkit-0.1.1-py3-none-any.whl Python 3 none any Details for socialpublishkit-0.1.1-py3-none-any.whl

Total release size: 62.4 kB

Release files / socialpublishkit-0.1.1.tar.gz

Download URL socialpublishkit-0.1.1.tar.gz
Size 36.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b63d83f35af138af6e01341621526d6ea7e9fb2b4619665b9d92313e72a6a19e
BLAKE2b-256 checksum
How to use checksums
da49e1a454ecf6839ad22a585e6c86760ee34e7f04223fbc372c2ce4fa672ca0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Release files / socialpublishkit-0.1.1-py3-none-any.whl

Download URL socialpublishkit-0.1.1-py3-none-any.whl
Size 26.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2b6427d56c4f7161fcb30ef2ecff09f16d41936ca81a20ab4697e450c7f0f810
BLAKE2b-256 checksum
How to use checksums
8f5b24f838d627ad1f9fb905798cbc578386ee08d724a4538107cd1b48965879
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Security for socialpublishkit 0.1.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for socialpublishkit-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

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

0.1.1 This release

2 release files Full provenance

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