Skip to main content

Library for creating amino bots and scripts.

Project description

GitHub release licence pypi docs

Sponsor project
Installation

Git

pip install git+https://github.com/xXxCLOTIxXx/amino.py.git

pypi

pip install amino.api.py

Library for working with aminoapps servers, below you will see code examples, for more examples see the documentation or the examples folder

Login example

import amino

client = amino.Client()
client.login(email='email', password='password')

Ping pong bot

import amino

client = amino.Client()
client.login(email='email', password='password')
print(f"LOGIN: OK.")


@client.event(amino.arguments.wsEvent.on_text_message)
def text_msg(data: amino.objects.Event):
    if data.comId is None or data.message.author.uid == client.userId: return
    print(f"New message: {data.message.content}")
    try:
        com_client = amino.CommunityClient(client.profile, data.comId)
        if data.message.content.lower().split(" ")[0] == "ping":
            com_client.send_message(data.message.threadId, "Pong!", replyTo=data.message.messageId)
        elif data.message.content.lower().split(" ")[0] == "pong":
            com_client.send_message(data.message.threadId, "Ping!", replyTo=data.message.messageId)
    except Exception as e:
        print(e)

=Read the documentation

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

amino.py.api-0.4.7.tar.gz (45.1 kB view details)

Uploaded Source

Built Distribution

amino.py.api-0.4.7-py3-none-any.whl (54.9 kB view details)

Uploaded Python 3

File details

Details for the file amino.py.api-0.4.7.tar.gz.

File metadata

  • Download URL: amino.py.api-0.4.7.tar.gz
  • Upload date:
  • Size: 45.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.9

File hashes

Hashes for amino.py.api-0.4.7.tar.gz
Algorithm Hash digest
SHA256 32566cf0de732c972aa6da3ffe6cc21a7a299cf1228558ab1c18d42d8b80965b
MD5 bb7176d81506662afea0dad73605feb5
BLAKE2b-256 4f015a40da8a1ec557b45cd05bc9d3f844ef5dfe1cdfc24eb7429cd2af31de71

See more details on using hashes here.

File details

Details for the file amino.py.api-0.4.7-py3-none-any.whl.

File metadata

  • Download URL: amino.py.api-0.4.7-py3-none-any.whl
  • Upload date:
  • Size: 54.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.9

File hashes

Hashes for amino.py.api-0.4.7-py3-none-any.whl
Algorithm Hash digest
SHA256 fd33cafaf338d85cefd74e9b770849584621dcd3c963252c3c76ac18e7e53526
MD5 6be7a9337b6412be345d3dcf2db70162
BLAKE2b-256 44f83fe00a866bfacdb29c47b29bd313445535927b64b629cde3e30a85ff7891

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