An API wrapper for the Imperator API
Project description
imperatoraPY - Imperator API wrapper written in Python
Maintained by Myer (also known as myerfire, MyerFire)
This library is a fully featured async wrapper for the Imperator API.
Installation
imperatoraPY
is available from the official pYpI package index.
python -m pip install -U imperatoraPY
Documentation
- There are relevant docstrings on the functions of the main wrapper class.
- Object attribute documentation may (?) be worked on but the code in objects.py is easily readable.
Quick Start
from imperatoraPY import Imperator
import asyncio
API_KEY = "hahagetbaited"
# if it isn't obvious enough, replace this string
# with your API key obtained by going onto the Imperator server and running /api
async def main():
imperator = await Imperator(API_KEY)
player = imperator.fetch.player(name="myerfire")
print(player.nation)
if __name__ == "__main__":
asyncio.get_event_loop().run_until_complete(main())
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
imperatoraPY-1.3.2.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for imperatoraPY-1.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f959d88539f1b705ba6b9cdfb3ee8a84779e8e6bda4a1254856c2fec289bc0f9 |
|
MD5 | 7903a75335ff175d6e2cc6f460f85766 |
|
BLAKE2b-256 | 39e3c6588a6b46e537bbc9525c43381927f513764710ad9c8e30246e70dc1ace |