Cleanup your toot history.
Project description
Cleantoots
The idea of cleantoots is highly inspired by magnusnissel/cleantweets.
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.
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.1.5.tar.gz
(16.3 kB
view details)
Built Distribution
File details
Details for the file cleantoots-0.1.5.tar.gz
.
File metadata
- Download URL: cleantoots-0.1.5.tar.gz
- Upload date:
- Size: 16.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.0 CPython/3.8.0 Darwin/19.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f575cda147c2db1ecf6951c6e6362f036c91108195875f98a202fc1d2fc4e825 |
|
MD5 | ca301956220ed857d958b4162de0f354 |
|
BLAKE2b-256 | 4a4e6001ad4f1c6e79ca5380d4620c4c790c224ece6b5834777fa46b8f7f6d2e |
File details
Details for the file cleantoots-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: cleantoots-0.1.5-py3-none-any.whl
- Upload date:
- Size: 16.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.0 CPython/3.8.0 Darwin/19.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac8f824ec312dfc3f5df9a5b90068dfb331c68f136d4b44a331f768cb947f3fe |
|
MD5 | c36f0f171f4a1eb2c7777b30382c1b52 |
|
BLAKE2b-256 | 106bd01f0f276323703a7a05fe6c8c409c7268b20032948abf0a3a8ff7c40a6a |