Cleanup your toot history.
Project description
Cleantoots
Cleantoots helps you delete your old toots. Because not everything we say on social medias should stay there for eternity.
Initial config
Only once
python -m pip install cleantoots
cleantoots setup-config # See the following section for config options
cleantoots login
Config options
# Any key in this section will serve as a default for other sections
[DEFAULT]
# Toots that have at least this number of boosts won't be deleted.
boost_limit = 5
# Toots that have at least this number of favorites won't be deleted.
favorite_limit = 5
# Toots that are more recent than this number of days won't be deleted.
days_count = 30
# The timezone to use for dates comparisons.
timezone = Europe/Paris
# Each section represents an account.
[Fosstodon]
# Your Mastodon server URL.
api_base_url = https://fosstodon.org
# These files are used to store app information obtained when running `login`.
# The files must be different between accounts. Two different files are required per account.
app_secret_file = fosstodon_app.secret
user_secret_file = fosstodon_user.secret
# IDs of toots you want to protect (never delete).
# You can find the toot ID in the URL when viewing a toot.
protected_toots = 103362008817616000
103361883565013391
103363106195441418
# Another account
[Mastodon.social]
api_base_url = https://mastodon.social
app_secret_file = mastodonsocial_app.secret
user_secret_file = mastodonsocial_user.secret
# Overriding some defaults
boost_limit = 10
favorite_limit = 30
days_count = 7
Run
See cleantoots config
for the current config.
cleantoots clean # Defaults to a dry run. Does NOT delete.
cleantoots clean --delete # Delete without prompt.
Tested environments
Cleantoots test suite runs on Python 3.6, 3.7 and 3.8 on latest versions of macOS, Windows and Ubuntu as GitHub Actions understands it.
See the docs for more information on what "latest" means.
Inspiration
The idea behind cleantoots is highly inspired by magnusnissel/cleantweets.
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
cleantoots-0.3.0.tar.gz
(17.3 kB
view details)
Built Distribution
File details
Details for the file cleantoots-0.3.0.tar.gz
.
File metadata
- Download URL: cleantoots-0.3.0.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.0 CPython/3.8.0 Linux/5.0.0-1027-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 547b714e75b7e2dfe8ff19aae78ced7c46b6f33473883807142a6b889efaf51b |
|
MD5 | 45c61ff60841c22520f8b310583ad6af |
|
BLAKE2b-256 | 96570bc443456c310033b1cf1de89e832f0078dd5e9b49c706bb434fa550d66a |
File details
Details for the file cleantoots-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: cleantoots-0.3.0-py3-none-any.whl
- Upload date:
- Size: 17.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.0 CPython/3.8.0 Linux/5.0.0-1027-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d2c07bc2ae1586e3d93f0e10e8eab3dcf94af5312b48b2ff6c65cdeead09c80 |
|
MD5 | 6ac2333679f831553eeb9934a2488e2b |
|
BLAKE2b-256 | f43ddfea635a74d073834b70c12f2e735a1621a0b2a880cc1e5719ea562c7b64 |