Skip to main content

Bluesky comments support for MarkPub websites

Project description

Bluesky Comment support for MarkPub and MassiveWiki websites

Python package to
(1) post a MarkPub or MassiveWiki webpage link to Bluesky, and
(2) display any comments and likes made to that Bluesky post on the referenced website page.

Tested with Python 3.12.

This code is an excerpt of the code described in the blog post "Posting via the Bluesky API".

Gratitude to Emily Liu and Cory Zue


To install:

pip install markpub_bskypost

Note: this package will be transferred from this test index to pypi.org .

For a list of options and arguments:

markpub_bskypost -h

Some configuration notes and suggestions

Bluesky and GitHub credentials are needed to post to Bluesky and to update pages in a GitHub repository. These can be provided as arguments on the command line, or as local shell environment variables.

Environment Variables:

Create a .env file in your project root with the following variables:

ATP_PDS_HOST=your_bluesky_host_here
ATP_AUTH_HANDLE=your_bluesky_handle_here
ATP_AUTH_PASSWORD=your_bluesky_password_here
GH_TOKEN=your_GitHub_token_here

If ATP_PDS_HOST is not specified “https://bsky.social” is the default.

N.B.: Never commit your .env file to version control. Add it to your .gitignore file.

Website host and Git repository:

The host on which the website is deployed, and the repository holding the Markdown files can be specified on the command line, or in a file in the working directory named bskypost.yaml . Here is an example file:

deploy_site: socialpraxis.netlify.app
repo_name: band/technosocial-praxis

Use example:

This program is run in a terminal application and from the .markpub directory of your repository.

Running markpub_bskypost yields

Enter the Markdown file name: 

One can enter a full-path, or a relative path, to a Markdown file in the repository, or an Obsidian URL (copied from the Obsidian file browser;
for example: `obsidian://open?vault=technosocial-praxis&file=notas%2F20250325-testnote)

markpub_bksypost generates the webpage URL to embed in the post and then prompts for the content of the Bluesky post (showing how many characters are available for the post text).

Enter bluesky post text (238 characters available): 

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

markpub_bskypost-0.9.4.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

markpub_bskypost-0.9.4-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file markpub_bskypost-0.9.4.tar.gz.

File metadata

  • Download URL: markpub_bskypost-0.9.4.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.2 Darwin/24.3.0

File hashes

Hashes for markpub_bskypost-0.9.4.tar.gz
Algorithm Hash digest
SHA256 3d48da1004817b688e09a7bed32ffd223396a2b04d4fbaf61da03418e3c8dce3
MD5 e9a496012143f217f62ff187844224a9
BLAKE2b-256 5d42ecfe268a0ea1232876dfc5d363bf106bcd6df98c1b44bc42023f5a465470

See more details on using hashes here.

File details

Details for the file markpub_bskypost-0.9.4-py3-none-any.whl.

File metadata

  • Download URL: markpub_bskypost-0.9.4-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.2 Darwin/24.3.0

File hashes

Hashes for markpub_bskypost-0.9.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c6ca9e1d5b6fd4016067db92fc40b99e8d9da51dac015935c1663ed7a2eb5e1e
MD5 79de1bae1087e6b60dc57a3c8d9f3a9b
BLAKE2b-256 f91dcb986202d4812daef75967fda93ce4cdcf5b7685fe706fe2d93f1d6def71

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page