Skip to main content

Python wrapper for the next.avanpost20.ru API

Project description

next.py

An async library to interact with the https://next.avanpost20.ru API.

You can join the support server here and find the library's documentation here.

Installing

You can use pip to install next.py. It differs slightly depending on what OS/Distro you use.

On Windows

py -m pip install -U next.py # -U to update

On macOS and Linux

python3 -m pip install -U next.py

Example

More examples can be found in the examples folder.

import next
import asyncio

class Client(next.Client):
    async def on_message(self, message: next.Message):
        if message.content == "hello":
            await message.channel.send("hi how are you")

async def main():
    async with next.utils.client_session() as session:
        client = Client(session, "BOT TOKEN HERE")
        await client.start()

asyncio.run(main())

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

next_api_py-0.2.0.tar.gz (49.8 kB view details)

Uploaded Source

Built Distribution

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

next_api_py-0.2.0-py3-none-any.whl (70.8 kB view details)

Uploaded Python 3

File details

Details for the file next_api_py-0.2.0.tar.gz.

File metadata

  • Download URL: next_api_py-0.2.0.tar.gz
  • Upload date:
  • Size: 49.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for next_api_py-0.2.0.tar.gz
Algorithm Hash digest
SHA256 844023219c11ec976243c4fff928eb35c1180cdd95242e742f2837d7b02befa9
MD5 5976e933f68266ccaeec5dc7151e9430
BLAKE2b-256 91d8eb8ca556ca851f36a7ca9ff76ec3df7f70fafd6597227277057df05da618

See more details on using hashes here.

File details

Details for the file next_api_py-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: next_api_py-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 70.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for next_api_py-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e97ae7436265ba3391feb853420d0faab77d49ca179f0358366175e687cfdd1e
MD5 a1096aeb67cb57f019e9b191eb2fbf47
BLAKE2b-256 d767970ee49902ac8099089320de636b51a1537abb302f3ea866fc38d9cfdd7d

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