Skip to main content

An asynchronous event based client for Transformice

Project description

aiotfm

aiotfm is an asynchronous Client implementation of Transformice that allows developers to make bots easily. It uses an API endpoint to get the keys needed to connect to the game. aiotfm is based on TransFromage which use threads instead of coroutines.

If you prefer Lua over Python then checkout the Lua version made by @Lautenschlager-id

Join the Fifty Shades of Lua discord server to discuss about this API and to receive special support.

Keys Endpoint

This API depends on an endpoint that gives you access to the Transformice encryption keys.

To use it you will need a token which you can get by applying through this form. See below to know the names of Transfromage managers who handle the token system.

  • Tocutoeltuco @discord=> Tocu#0018 212634414021214209;
  • Blank3495 @discord=> 󠂪󠂪 󠂪󠂪 󠂪󠂪󠂪󠂪 󠂪󠂪 󠂪󠂪󠂪󠂪 󠂪󠂪 󠂪󠂪#8737 436703225140346881;
  • Bolodefchoco @discord=> Lautenschlager#2555 285878295759814656.

Advantages

  • 3 times faster than TransFromage
  • Compatible with discord.py
  • Faster
  • Asynchronous

Speed

TransFromage takes around 13 seconds to be connected to the community platform while aiotfm takes less than 4 seconds. Those results can vary depending on your computer and your internet connection.

Installation

You can install aiotfm using pip: pip install aiotfm

To have a more up to date package, you have to clone this repository and install it manually:

git clone https://github.com/Athesdrake/aiotfm
cd aiotfm
python3 -m pip install .

Requirements

aiotfm require python 3.7 or higher and aiohttp.

Python 3.6

Python 3.6 support is not guaranteed since v1.4.3 as Python 3.6 has reached EOF.

Python 3.5

You can still use aiotfm with Python 3.5.3 or higher by cloning the repository and remove the sugar syntax of Python 3.6. These changes are the typed variables and fstrings. Due to a major update in the asynchronous stuff of Python 3.5.3, aiotfm is not compatible with the previous versions of Python.

Update

To update aiotfm, use the following command: pip install -U aiotfm

Example

import aiotfm

bot = aiotfm.Client()


@bot.event
async def on_ready():
	print('Connected to the community platform.')

bot.run("api_tfmid", "api_token", "username", "password", encrypted=False, room="start_room")

A more complete example.

Documentation

You can find the documentation of aiotfm here.

About

You can have more information about TransFromage in this thread.

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

aiotfm-1.4.9.tar.gz (41.9 kB view details)

Uploaded Source

Built Distribution

aiotfm-1.4.9-py3-none-any.whl (43.4 kB view details)

Uploaded Python 3

File details

Details for the file aiotfm-1.4.9.tar.gz.

File metadata

  • Download URL: aiotfm-1.4.9.tar.gz
  • Upload date:
  • Size: 41.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for aiotfm-1.4.9.tar.gz
Algorithm Hash digest
SHA256 daac543177007c61408f586bce8ba80868c30187b046dfb7dc86273c66b00b3e
MD5 9317b4e707b1423b6c177866770b4481
BLAKE2b-256 69c90673367531ec20e0db9c127c0228039ea649c1329dcceeb4512b0e4960c4

See more details on using hashes here.

File details

Details for the file aiotfm-1.4.9-py3-none-any.whl.

File metadata

  • Download URL: aiotfm-1.4.9-py3-none-any.whl
  • Upload date:
  • Size: 43.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for aiotfm-1.4.9-py3-none-any.whl
Algorithm Hash digest
SHA256 9424669caf8bfd8425227058f85fa621bafd3aad4ca4f11a010917ba62e6cf0f
MD5 48509d23402bb2afb7de7d9476ed1d02
BLAKE2b-256 be308409e68a43946ae9d90fccfa5af1c01e67e3995dfcb617097c6d3b78aafb

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