Skip to main content

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.

Metadata

Release files for aiotfm 1.4.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aiotfm 1.4.9
File Size Uploaded
aiotfm-1.4.9.tar.gz 41.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aiotfm 1.4.9
File Interpreter ABI Platform
aiotfm-1.4.9-py3-none-any.whl Python 3 none any Details

Total release size: 85.3 kB

Release files / aiotfm-1.4.9.tar.gz

Download URL aiotfm-1.4.9.tar.gz
Size 41.9 kB
Tags Source
SHA-256 checksum
How to use checksums
daac543177007c61408f586bce8ba80868c30187b046dfb7dc86273c66b00b3e
BLAKE2b-256 checksum
How to use checksums
69c90673367531ec20e0db9c127c0228039ea649c1329dcceeb4512b0e4960c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / aiotfm-1.4.9-py3-none-any.whl

Download URL aiotfm-1.4.9-py3-none-any.whl
Size 43.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9424669caf8bfd8425227058f85fa621bafd3aad4ca4f11a010917ba62e6cf0f
BLAKE2b-256 checksum
How to use checksums
be308409e68a43946ae9d90fccfa5af1c01e67e3995dfcb617097c6d3b78aafb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release history Release notifications | RSS feed

This release

1.4.9 This release

2 release files

1.4.8

2 release files

1.4.6

2 release files

1.4.5

2 release files

1.4.4

2 release files

1.4.3

2 release files

1.4.2

2 release files

1.4.1

2 release files

1.3.9

2 release files

1.3.8

2 release files

1.3.7

2 release files

1.3.6

2 release files

1.3.5

2 release files

1.3.4

2 release files

1.3.3

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.8

2 release files

1.2.7

2 release files

1.2.6

2 release files

1.2.5

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.0

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.4

2 release files

0.0.3

1 release file

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page