Minimal CLI to tweet via Twitter API.
Project description
twtr
Setup
- 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
- Add these lines to your
~/.zshrcor~/.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.7.tar.gz
(78.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
twtr-0.0.7-py3-none-any.whl
(2.2 kB
view details)
File details
Details for the file twtr-0.0.7.tar.gz.
File metadata
- Download URL: twtr-0.0.7.tar.gz
- Upload date:
- Size: 78.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.7.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6cf94f323fde01782955a3fc35bf93c765802aa7e0ad4641c0cd407f53c188f1
|
|
| MD5 |
50538f5c5869d336054538db9302905c
|
|
| BLAKE2b-256 |
759417af62096000bd1a326b7f4c4e6bdc2d55b27c256b1eb326877fb671df6d
|
File details
Details for the file twtr-0.0.7-py3-none-any.whl.
File metadata
- Download URL: twtr-0.0.7-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0eb8d57c8029bf649e172be9f9d08b5156262cb5fb592fd6225a0160e5bbbc5c
|
|
| MD5 |
02ae4a6e9054c5f3cf1cc0433a6ad991
|
|
| BLAKE2b-256 |
0428e037ba5932b4d33905927c9db9936c368ba7661ea7d8613f9cd82ee3cd21
|