Python client for Phoenix API
Project description
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})")
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
phoenix_bot_api-1.0.7.tar.gz
(11.0 MB
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
File details
Details for the file phoenix_bot_api-1.0.7.tar.gz.
File metadata
- Download URL: phoenix_bot_api-1.0.7.tar.gz
- Upload date:
- Size: 11.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3dbea3bd3e70d7a4069d269c8d114310558deee27be3bae6c7958f29a0ee1c28
|
|
| MD5 |
a3a503d2a57fe1e87d20ca727892d8c1
|
|
| BLAKE2b-256 |
dc766a2fd721fe51262ca86b89768497b9c79f454f48f95e3931f4a1856babd5
|
File details
Details for the file phoenix_bot_api-1.0.7-py3-none-any.whl.
File metadata
- Download URL: phoenix_bot_api-1.0.7-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf75aeac7d09c0a7cf4eea6f9b238742ebc108549a3d5bd5889249b5a0779eb3
|
|
| MD5 |
4f1c35238c337bdd847b38668496fca9
|
|
| BLAKE2b-256 |
f8234ed8618988e7ca67ddbbf7803baa55e1b66d5d5c590947a86028fd445734
|