Skip to main content

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)

Source distribution for phoenix-bot-api 1.0.9
File Size Uploaded
phoenix_bot_api-1.0.9.tar.gz 10.7 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for phoenix-bot-api 1.0.9
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.0.9 This release

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page