Phoenix API
This is the Python client for the Phoenix API.
Installation
You can install the package using pip:
pip install phoenix-bot-api
Usage
Here is a simple example of how to use the Phoenix API client:
from phoenixapi.finder import create_api_from_name
from phoenixapi.api import PhoenixApi
from phoenixapi.clients.player_manager import PlayerObjManager
def run():
CHAR_NAME = "Insert your character name here"
client: PhoenixApi = create_api_from_name(CHAR_NAME)
player_obj_manager: PlayerObjManager = client.player_obj_manager.get_player_obj_manager()
name = player_obj_manager["player"]["name"]
player_id = player_obj_manager["id"]
family = player_obj_manager["player"]["family"]
x = player_obj_manager['position']['x']
y = player_obj_manager['position']['y']
print(f"Name:\t\t{name}")
print(f"ID:\t\t{player_id}")
print(f"Family:\t\t{family}")
print(f"Position:\t({x}, {y})")
Metadata
Release files for phoenix-bot-api 1.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| phoenix_bot_api-1.0.9.tar.gz | 10.7 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| phoenix_bot_api-1.0.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.7 MB
Release files / phoenix_bot_api-1.0.9.tar.gz
| Download URL | phoenix_bot_api-1.0.9.tar.gz |
|---|---|
| Size | 10.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d0ae9ce355730f6b570a5e15a8cee24c3c0ad346aaf43215ecd614db7d89ccac
|
|
BLAKE2b-256 checksum How to use checksums |
eaaa86ffbd48010dfeaca7e31811a6b2a2025bf384e6c5a9617026a81fa08f89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.2
|
Release files / phoenix_bot_api-1.0.9-py3-none-any.whl
| Download URL | phoenix_bot_api-1.0.9-py3-none-any.whl |
|---|---|
| Size | 14.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f26232fe39f02f07d816a07a233f9d4b94cbf61cd29f448c49fe59ca3418c65b
|
|
BLAKE2b-256 checksum How to use checksums |
0a7a81823f111ba6f92a26449c4146269c535b6eeec90d24f15b5e8d21a017f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.2
|