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.6.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.6-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: twtr-0.0.6.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.6.tar.gz
Algorithm Hash digest
SHA256 45ce0e5c20553b4df7f1e2c837041e4ebce8edd615f38d8b65c6e7d47b0d1a05
MD5 ad1cbcc88ac9eba73decce8c29690158
BLAKE2b-256 f2a092a5c7902ce5f8896673aff71b12a53eabc01290a9527c0c38ef5a1819db

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for twtr-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d985fd95683275596a29fff83f93e3386437977758a7df082fa3f4db45d10bad
MD5 56559c137aa24e6adaeb3c181342be91
BLAKE2b-256 045e288587c24ad230c1ccc1dd7ca33559d4ba76d1011e7d94e50777da3146cf

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