Skip to main content

Fediverse CLI — celestial messenger for the federation.

Project description

taibai

Fediverse CLI tool — celestial messenger for the federation.

Taibai (太白金星, Tàibái Jīnxīng — "Gold Star of Venus") is the celestial herald in Chinese mythology, tasked with carrying messages between heaven and earth. The name fits a tool that sends and receives communications across a federated network, and continues the Chinese mythology theme of its companion library longwei (龙威).

Built on longwei.

Documentation: https://marvinsmastodontools.codeberg.page/taibai/latest/

Install

uv tool install taibai

Usage

taibai init                               # authenticate with a Fediverse instance
taibai init --instance URL --token TOKEN  # headless / non-interactive setup
taibai whoami                        # display current account
taibai token                         # print stored access token (for CI/CD secrets)
taibai post "Hello, world!"          # publish a status
taibai post "Reply!" --reply-to ID   # reply to a status (chain with --json | jq for threads)
taibai notifications                 # show new notifications
taibai timeline                      # home timeline (public/tag/list also supported)
taibai view 123456789012345678        # view a status or thread (--context for full thread)

taibai fav ID                        # favourite a status
taibai boost ID                      # boost a status
taibai bookmark ID                   # bookmark a status
taibai pin ID                        # pin a status to your profile
taibai delete ID                     # delete a status
taibai edit ID "New text."           # edit a status

taibai bookmarks                     # list your bookmarks
taibai favourites                    # list your favourites

taibai follow user@instance.social   # follow an account
taibai unfollow user@instance.social
taibai mute user@instance.social     # mute (optional --duration SECS, --no-notifications)
taibai unmute user@instance.social
taibai block user@instance.social
taibai unblock user@instance.social
taibai profile user@instance.social  # view profile + recent posts
taibai search "climate change"       # search statuses, accounts, and hashtags
taibai search python --type accounts --resolve

taibai thread my-thread.md           # post a thread from a file
taibai thread-download URL           # download a thread to stdout (--format thread|json|markdown)

taibai completions bash              # print bash completion script (eval or source)

All data-returning commands accept --json to dump output as JSON instead of a Rich table or panel.

Use --profile / -p (or TAIBAI_PROFILE env var) to manage multiple accounts.

License

AGPL-3.0-or-later

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

taibai-0.10.1.tar.gz (26.0 kB view details)

Uploaded Source

Built Distribution

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

taibai-0.10.1-py3-none-any.whl (42.0 kB view details)

Uploaded Python 3

File details

Details for the file taibai-0.10.1.tar.gz.

File metadata

  • Download URL: taibai-0.10.1.tar.gz
  • Upload date:
  • Size: 26.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for taibai-0.10.1.tar.gz
Algorithm Hash digest
SHA256 5313612a33c4cd45adf76e8d2f7508233f67858901fccd930a2accbf9c93c9fe
MD5 84495bba12d1a0622c53d903c3f9e91c
BLAKE2b-256 824c1ee2612defbd61d6b6bee5d4120fb65d54a01ea88ea54c4ff2be2965063a

See more details on using hashes here.

File details

Details for the file taibai-0.10.1-py3-none-any.whl.

File metadata

  • Download URL: taibai-0.10.1-py3-none-any.whl
  • Upload date:
  • Size: 42.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for taibai-0.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 91e90a9aac8f816d06e1674cb836dc1aab4271e527fcab93d8d871eb1653688e
MD5 b444e552c1878be3dcca58be51c6bfcf
BLAKE2b-256 314e8dfc2a069e443484a6f048dd2bb508690c3859ebc09fc0b4503e75ebeebb

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