Tiny CLI to post simultaneously to Mastodon and Bluesky
Project description
Not my ex
Tiny CLI to post simultaneously to Mastodon and Bluesky.
Obviously, based on cuducos/from-my-ex
.
It supports:
- Post status updates to both networks with a simple CLI command
- Posting with images
- Including alt text for images
- Setting post language
It does not support:
- Tagging other users (they would have different IDs and servers in each platform)
Getting started
Requirements
- Python 3.9 or newer
- Poetry
Environment variables
To repost in Bluesky
Name | Description | Example | Default value |
---|---|---|---|
NOT_MY_EX_BSKY_AGENT |
Bluesky instance | "https://bsky.social" |
"https://bsky.social" |
NOT_MY_EX_BSKY_EMAIL |
Email used in Bluesky | "cuducos@mailinator.com" |
None |
NOT_MY_EX_BSKY_PASSWORD |
Password used in Bluesky | As created in App Passwords. | None |
Not setting NOT_MY_EX_BSKY_EMAIL
or NOT_MY_EX_BSKY_PASSWORD
disables Bluesky reposting.
To repost in Mastodon
Name | Description | Example | Default value |
---|---|---|---|
NOT_MY_EX_MASTODON_INSTANCE |
Mastodon instance | "https://tech.lgbt" |
"https://mastodon.social" |
NOT_MY_EX_MASTODON_TOKEN |
Mastodon access token | Go to your Settings, Development and then create an app to get the access token. Select the write:statuses and write:media scopes. |
None |
Not setting NOT_MY_EX_MASTODON_TOKEN
disables Mastodon reposting.
Install
$ pip install not-my-ex
Usage
$ not-my-ex "Magic, madness, heaven, sin " --images /tmp/1989.gif
You can skip --images
or pass multiple images (e.g. --images taylor.jpg --images swift.gif
).
Contributing
The tests include Ruff, Mypy and isort
:
$ poetry install
$ poetry run ruff format . tests/
$ poetry run ruff . tests/
$ poetry run pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
not_my_ex-0.0.1.tar.gz
(19.2 kB
view details)
Built Distribution
not_my_ex-0.0.1-py3-none-any.whl
(21.3 kB
view details)
File details
Details for the file not_my_ex-0.0.1.tar.gz
.
File metadata
- Download URL: not_my_ex-0.0.1.tar.gz
- Upload date:
- Size: 19.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Darwin/22.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 878614dbf995e7a20dc8edf107f585dcdf7a9e28756ec1c2ffcdca6223f23eba |
|
MD5 | b436ba9fa9121531a2dc8022d5201f65 |
|
BLAKE2b-256 | 1cf9feac89f4f3daa072e8b77091404a0dfefb3085399c29c9c4c88afeb99843 |
File details
Details for the file not_my_ex-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: not_my_ex-0.0.1-py3-none-any.whl
- Upload date:
- Size: 21.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Darwin/22.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a78de8b5f27889b0a02b2118c2b02a5f158d0d31e67c0af9ad5c391b85d06838 |
|
MD5 | d9f23fe0c6823d837d21210efbb2eda5 |
|
BLAKE2b-256 | 7acfe036c21b5a36cf0d48a49473d570729290df7cb1ba9b890d52fed87bb428 |