Examples - Python
Examples of using the EcoNuker API.
Notice:econuker.xyz/api
is unavailable until June 1, 2023. For now, use beta.econuker.xyz/api
Python Example
Installation
pip install econuker
Code
# Python Example
from econuker import Client
beta = True # False
authtoken = None # "your auth token here"
if __name__ == "__main__":
client = Client(auth_token=authtoken, beta=beta)
status = client.status()
print(status.name)
Python Async Example
Installation
pip install econuker
Code
# Python Async Example
from econuker import AsyncClient
beta = True # False
authtoken = None # "your auth token here"
if __name__ == "__main__":
client = AsyncClient(auth_token=authtoken, beta=beta)
async def asyncfunction():
status = await client.status()
print(status.name)
return status
asyncio.run(asyncfunction())
Last updated