Skip to main content

A wrapper for the Pixel Starships API.

Project description

pssapi.py

Support Discord server invite Development status Package version Supported Python versions Code coverage

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pssapi-0.7.0.tar.gz (9.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pssapi-0.7.0-py3-none-any.whl (280.1 kB view details)

Uploaded Python 3

File details

Details for the file pssapi-0.7.0.tar.gz.

File metadata

  • Download URL: pssapi-0.7.0.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

Hashes for pssapi-0.7.0.tar.gz
Algorithm Hash digest
SHA256 052ea0c8b1fac6211fa24c622bd92fababa3ae73f08165b682aa15aa4c3d0457
MD5 485137ecc39130cb5460795bc3c0cb4e
BLAKE2b-256 3062cd9ed0ddabdf6c5e01374c7abbc99c6035b7f41ffe93726dd9c536cd4f0b

See more details on using hashes here.

File details

Details for the file pssapi-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: pssapi-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 280.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.7

File hashes

Hashes for pssapi-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d82e0addc6d064885cd7d7e83d5639b7cdcb7e04bc8d6fc51e7eaa894f487e63
MD5 c847bade09cfc7f65555495984bde505
BLAKE2b-256 68337e2aa189ded7eec60f100af7edf7ab1a4ce99231014d395e230abbe289a3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page