Skip to main content

A Python CLI wrapper around the atproto package

Project description

atpcli

A Python CLI wrapper around the atproto package for interacting with Bluesky.

Documentation

Full documentation is available at docs/:

Or serve the docs locally:

make docs-serve

Quick Start

Installation

Install globally using uv:

uv tool install atpcli

This installs atpcli as a global tool, making it available from anywhere in your terminal.

Or for development:

git clone https://github.com/phalt/atpcli.git
cd atpcli
make install

Usage

Login

⚠️ Security Note: Use Bluesky app passwords, not your main password! See the Quick Start Guide for instructions on creating an app password.

Login to your Bluesky account and save the session:

atpcli bsky login

You'll be prompted for your handle and password. The session will be saved to ~/.config/atpcli/config.json.

View Timeline

View your timeline:

atpcli bsky timeline

Options:

  • --limit N - Show N posts (default: 10)
  • --p N - Show page N (default: 1)

Example:

atpcli bsky timeline --limit 20
atpcli bsky timeline --p 2

Post Messages

Create a post on Bluesky:

atpcli bsky post --message 'Hello, Bluesky!'

Note: When using special characters like !, use single quotes to avoid shell expansion issues. See the Post Command documentation for more details.

Development

Setup

make install

Run tests

make test

Build documentation

make docs-build

Serve documentation locally

make docs-serve

Format code

make format

Clean build artifacts

make clean

Requirements

  • Python 3.10+
  • uv package manager

License

MIT

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

atpcli-0.3.0.tar.gz (117.4 kB view details)

Uploaded Source

Built Distribution

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

atpcli-0.3.0-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file atpcli-0.3.0.tar.gz.

File metadata

  • Download URL: atpcli-0.3.0.tar.gz
  • Upload date:
  • Size: 117.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.6

File hashes

Hashes for atpcli-0.3.0.tar.gz
Algorithm Hash digest
SHA256 7a86076f150dbc35b95f7147b437ba4d615f89bebd9a1117cc4ace3ba0f70e80
MD5 672548e1baeea37e753de42b9a07ff71
BLAKE2b-256 e4c8b0f7321064d5dbcfa8fdf2f5c504acec25ebdcb664bdd1e9971a50319f4b

See more details on using hashes here.

File details

Details for the file atpcli-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: atpcli-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.6

File hashes

Hashes for atpcli-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 34458ccb579d7c37f604fdeb9fb4223434ed9904e9c26684dcbc5f7404beca91
MD5 b7a0ca652ded86a49481d106b86ffa21
BLAKE2b-256 3c8511eb5cbb5e4ba71b099a5d67e8b39de725610221f789b0138f5ae3737b9e

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