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())
Metadata
Release files for imperatoraPY 1.4.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| imperatoraPY-1.4.4.tar.gz | 4.7 kB | Without provenance | Details for imperatoraPY-1.4.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| imperatoraPY-1.4.4-py3-none-any.whl | Python 3 | none | any | Details for imperatoraPY-1.4.4-py3-none-any.whl |
Total release size: 12.9 kB
Release files / imperatoraPY-1.4.4.tar.gz
| Download URL | imperatoraPY-1.4.4.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b6e29bec85806497014cf28fb53ca5d7593dd8b88a5c35ec6d268295507620be
|
|
BLAKE2b-256 checksum How to use checksums |
7e5185b5fd430b7f326bb5912af480c259193b69311c3019d95ca4516d212c51
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.23.0 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.2
|
Release files / imperatoraPY-1.4.4-py3-none-any.whl
| Download URL | imperatoraPY-1.4.4-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f0e0f5fbb4726a975ac031de12478fc321ee8376c3a540de83c07b760c430868
|
|
BLAKE2b-256 checksum How to use checksums |
d81f13af8688711a911f13fb849ed8e40f384e8947f8a87000fe1eee7bb3181a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.23.0 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.2
|
Security for imperatoraPY 1.4.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.