A wrapper for the Pixel Starships API.
Project description
pssapi.py
An async client library to access the Pixel Starships API.
✨ Features
- Fully typehinted so your favorite IDE can assist you with code completion.
- Easy access to any instance of a Pixel Starships API server.
- Fast setup to get you started quickly.
- Caching versioned endpoints to cut down traffic between your app and the servers.
🔍 Future plans
- Use and support pydantic models
- Implement aliases and properties to map values displayed in-game to the raw values returned by the API
🚀 Demo
To retrieve a list of all item designs:
import asyncio
from pssapi import PssApiClient
async def main():
client = PssApiClient()
item_designs = await client.item_service.list_item_designs()
print(f"Found {len(item_designs)} item designs.")
print(f"First item: {item_designs[0].item_design_name}")
if __name__ == "__main__":
asyncio.run(main())
⚙️ Installation
Python 3.11 or higher is required
To install the latest version of this library, run the following command:
pip install -U pssapi
🖊️ Contribute
If you ran across a bug or have a feature request, please check if there's already an issue for that and if not, open a new one.
If you want to fix a bug or add a feature, please check out the Contribution Guide.
🆘 Support
If you need help using the library or want to contribute, you can join the support Discord at: discord.gg/kKguSec
👥 Contributors
🔗 Links
- Documentation (tbd)
- Official Support Discord server
- Pixel Starships homepage
- Official Pixel Starships Discord (not affiliated to this library)
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
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 pssapi-0.7.2.tar.gz.
File metadata
- Download URL: pssapi-0.7.2.tar.gz
- Upload date:
- Size: 9.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9286744d56728535bdaeeda55a7196e8d9ca08b380d702fb98310a38fd26bed5
|
|
| MD5 |
e0cbed58bcab8cc33a73d8800b3749c3
|
|
| BLAKE2b-256 |
ca274617325ea347b178c2d1a426a0539f06d8142c17c3d3fdb6cb51b5687595
|
File details
Details for the file pssapi-0.7.2-py3-none-any.whl.
File metadata
- Download URL: pssapi-0.7.2-py3-none-any.whl
- Upload date:
- Size: 280.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ecb64726fd4b4627ca749ba0ed8a73e196bc3746e35c23574f9badb2f829587c
|
|
| MD5 |
84821c88552d85de6bb24926da179382
|
|
| BLAKE2b-256 |
ba55b90e46645a450c53d0fb24447c0a8bd9c6e86a2a9aa148ddaec59bbf05ac
|