Skip to main content

Minimal CLI to tweet via Twitter API.

Project description

twtr

Setup

  1. Make a free account and project at developer.x.com and get the following keys:
  • Bearer Token
  • Consumer Key
  • Consumer Secret
  • Access Token
  • Access Token Secret

  1. Add these lines to your ~/.zshrc or ~/.bashrc:
export TWEEPY_BEARER_TOKEN="<your_bearer_token>"
export TWEEPY_CONSUMER_KEY="<your_consumer_key>"
export TWEEPY_CONSUMER_SECRET="<your_consumer_secret>"
export TWEEPY_ACCESS_TOKEN="<your_access_token>"
export TWEEPY_ACCESS_TOKEN_SECRET="<your_access_token_secret>"

Then reload your config:

source ~/.zshrc

or

source ~/.bashrc

Usage

Install from PyPI with uv:

uv tool install twtr

Then tweet from the CLI:

twtr "your tweet here"

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

twtr-0.0.9.tar.gz (78.8 kB view details)

Uploaded Source

Built Distribution

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

twtr-0.0.9-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file twtr-0.0.9.tar.gz.

File metadata

  • Download URL: twtr-0.0.9.tar.gz
  • Upload date:
  • Size: 78.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.20

File hashes

Hashes for twtr-0.0.9.tar.gz
Algorithm Hash digest
SHA256 7596651a080f31a6b56fe1c1f74b7bb3d69768bf4c65ce9216d6dc2bb6379c40
MD5 1c56e10bbe8e0e597b575e7bb9155304
BLAKE2b-256 0cbff53ee5783c04c4d2261301ce1bab5bee0bf1ca29d16409233354f1aaf484

See more details on using hashes here.

File details

Details for the file twtr-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: twtr-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.20

File hashes

Hashes for twtr-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 e28bffe870448299e6b52a5817f8c50234884edba1ac35d4587e875ed51db341
MD5 805deae982eb885362b4fb5622f91710
BLAKE2b-256 0fc56df18bbe37dca4976f0bb84540d5b2b06107d86a0e8530f30c646d717275

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