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

keys

  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.5.tar.gz (78.7 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.5-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for twtr-0.0.5.tar.gz
Algorithm Hash digest
SHA256 c6c930578193561801864846003932e03ff60795ffc0d0adaa7f8f5a8e8728bf
MD5 6ec80c8ba7e3572fe5bbc1c5de1a6b48
BLAKE2b-256 190250b66792d705883f0d5e9efc7d77c054b00e05079acb5e8d48da96aeb8d5

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for twtr-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 32e636e0c53287fc2364c5f69c9c1a1489bc56c7807717448690603a95d8f2ae
MD5 f04c049cccedc51949f21375c7123da3
BLAKE2b-256 6a447ad8fcc806296388e35e2f0ac4b70c34b7d6d8501dc5ae52cab4a0c16ffc

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