Skip to main content

Tool to help mastodon server admins to conveniently reach certain parts of their user base with DMs.

Project description

mastomsg

A messanger for admins of mastodon servers allowing them to message groups of users.

You can install it via pip/pipx (requires Python-3.10+):

pipx install mastomsg

Then you have access to the command mastomsg.

mastomsg expects you to pass it a (potentially multi-line) text as it's first argument. The text can contain placeholders for all user account properties you might want. To use the person's display name you can for example include {target.display_name} in your text. You should ideally include "`@{target.username}'" somewhere to create an actual mention. If your text doesn't include any mentions you will be asked if the system should automatically prepend it. Check out the Mastodon.py docs to see all possible values.

To select the target audience you can either use --handles or --age. With --handles you just add a list of local usernames separated by , to send the message to. With --ages you supply a time delta (in days or hours) to select all acounts created in that timeframe. Note that for bigger instance this command can be quite slow.

TODO:

  • load message from a text file or STDIN
  • add progress bar when sending more than 10 messages
  • Allow to customize type of message (currently only DM is supported)

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

mastomsg-0.1.3.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mastomsg-0.1.3-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file mastomsg-0.1.3.tar.gz.

File metadata

  • Download URL: mastomsg-0.1.3.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for mastomsg-0.1.3.tar.gz
Algorithm Hash digest
SHA256 c621799729a4597faf854afaa022b8ab1f2c414d47e0daba0ba3a691c7c2aa33
MD5 2604dfaa59e2f259d39cd44aebf3a236
BLAKE2b-256 6b00c6ae5cc01c27d248a10b1c408693dd1cb974208241ef25f1fe6181e5bb2a

See more details on using hashes here.

File details

Details for the file mastomsg-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: mastomsg-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for mastomsg-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6e9f38e41f4c980e56fae22002a04626bb911118946d1563c63ff2a73bbc640b
MD5 c1d707552786a0489e8f68b4791c702c
BLAKE2b-256 cebd08df45ab82f5e856cd9339236cea1e8bb13636130e35d22fb277882a4e44

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