Skip to main content

Emulate group accounts on Mastodon/Pleroma

Project description

fedigroup.py - emulate group accounts on Mastodon

What is this?

Some social media platforms allow groups of users to post into a unified "group" timeline/instance/whatever you want to call it. This is currently not possible on Mastodon without giving all members full login credentials to a group. fedigroup.py is an attempt to solve this specific use case.

How does it work?

fedigroup.py has to be set up on a computer and run as a service. It reads the notifications from the Mastodon account it is connected to and filters them for messages to repost. There are two methods of creating a group post. One or both of them can be enabled during the setup procedure.

  1. Public mentions of group members are boosted if they mention the group's name in the first post.

  2. fedigroup.py can also look for direct messages from following members. If the group is @mentioned at the very beginning, The message will be reposted as a new public toot originating directly from the group account. The status text as well as media files are included. The originating user will not be shown publicly. (It can still be seen by all group and instance administrators tough!)

But how to simply use it?

  1. Subscribe to group account and write a message that should be boosted by the group: EXAMPLE: "OHAI! just found that @mastodon thingie!"

  2. Make sure if group account is following you and write a message that should appear as a new post from the group: Put "@group_name" at the very beginning of a direct/private message. EXAMPLE: "@mastodon HERE BE THE MESSAGE TEXT"

How to set up?

The easiest way to install fedigroup.py is via PyPI, the Python Package Index. Use pip3 install fedigroup.py to install it as well as all its dependencies.

It is also possible to download the script manually from the GitHub repository at https://github.com/uanet-exception/fedigroup.py" In that case the necessary dependencies have to be provided too:

fedigroup.py requires https://github.com/halcy/Mastodon.py to run. Install it via your operating system's package manager, pip or even manually.

fedigroup.py will guide you through setup by asking all information it needs when you run it from the commandline for the first time. Being somewhat comfortable with Python scripting and the commandline in general might help if difficulties should appear.

  1. You need an account on any Mastodon instance/server that will act as your group account. Think about if you should mark it as a "Bot".

  2. Run fedigroup.py create <your-bots-name-here> from the command line.

  3. fedigroup.py will ask you for all needed setup data and try to get them right by connecting to the Mastodon server. If it cannot do so, it will tell you and you can retry. When successful, fedigroup.py will write the configuration to its fedigroups.ini file and read it from there next time you run the script.

    The place for storing configuration by default is next to fedigroup.py and will be shown during the first-run/setup phase. You can specify your own path to config file using argument -c/--config.

  4. If you want to set up fedigroup.py for more than one group, you can run it again while specifying the group bot name.

  5. Test the funcionality by sending direct messages and "@mentions" to your group while running fedigroup.py run <your-bots-name-here> manually. See if things work as expected. If everything works, run the script via supervisor or systemd unit.

  6. Use "-h" or "--help" for more information about all available options

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

fedigroup.py-1.0.8.tar.gz (17.9 kB view details)

Uploaded Source

Built Distribution

fedigroup.py-1.0.8-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

Details for the file fedigroup.py-1.0.8.tar.gz.

File metadata

  • Download URL: fedigroup.py-1.0.8.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.9

File hashes

Hashes for fedigroup.py-1.0.8.tar.gz
Algorithm Hash digest
SHA256 6d27f2bd66e066661f1d21d19b3676c3ba09977801f309e2fa6f531cbbe01a0d
MD5 a7ffa9b008d192c91b3bb6195c710b16
BLAKE2b-256 0970c368d06e34e5541aa56f2c1f593e2cc78d82f870faebf0ac7815119fb9e8

See more details on using hashes here.

File details

Details for the file fedigroup.py-1.0.8-py3-none-any.whl.

File metadata

  • Download URL: fedigroup.py-1.0.8-py3-none-any.whl
  • Upload date:
  • Size: 18.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.9

File hashes

Hashes for fedigroup.py-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 24cb4f0b320d192ca11f290ab00d07bec9499384df3baebc3e1d000050d9c602
MD5 c0852dbf66aad4416d75f872bfde8e74
BLAKE2b-256 c679ccbe2c8fc878b8e49eaa9ce552c7920bf874608e37e94beae438ed82235a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page