An async API wrapper for Octra bot API in Python
Project description
Octra.py
An async API wrapper for Octra bot API in Python
Installation
Python 3.7+ is required to install and use Octra.py.
Install the latest release from PyPI:
# Mac/Linux
python3 -m pip install Octra.py
# Windows
py -3 -m pip install Octra.py
Or install the development version from GitHub:
# Mac/Linux
python3 -m pip install git+https://github.com/Octra/Octra.py
# Windows
py -3 -m pip install git+https://github.com/Octra/Octra.py
Quick Example
import logging
import Octrapy
from Octrapy.ext import commands
logging.basicConfig(level=logging.INFO, format="(%(asctime)s) %(levelname)s %(message)s", datefmt="%m/%d/%y - %H:%M:%S %Z")
logger = logging.getLogger("Octrapy")
bot = commands.Bot("token here")
@bot.command()
async def hi(ctx):
await ctx.send("Hello")
bot.run()
For a line-by-line walkthrough for this example, see the quickstart.
Documentation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Octra.py-1.8.68.tar.gz
(19.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
Octra.py-1.8.68-py3-none-any.whl
(25.1 kB
view details)
File details
Details for the file Octra.py-1.8.68.tar.gz.
File metadata
- Download URL: Octra.py-1.8.68.tar.gz
- Upload date:
- Size: 19.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8d5ecdb6cc070dc449292991ea04e2a6d7c29e340a95d4a6b3886148124be2d
|
|
| MD5 |
6ce2e0fc173c108bd5331a4d9dd2422b
|
|
| BLAKE2b-256 |
09768fcd98528e4ed6477a3763b99a88e5b33d4ab80866925f47228002991568
|
File details
Details for the file Octra.py-1.8.68-py3-none-any.whl.
File metadata
- Download URL: Octra.py-1.8.68-py3-none-any.whl
- Upload date:
- Size: 25.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93193fc389cdc6557fde373926027bd7581518ac339c80c1c2212ed223c28645
|
|
| MD5 |
a857a85407284692e569bfd441a2f425
|
|
| BLAKE2b-256 |
e535fbcdfa255017c2920e63c4f38d3c19c59f76d3cb998933347172d543be57
|