Skip to main content

Wrapper for the Pixel Starships API

Project description

Wrapper for the Pixel Starships API

This library allows you to request the Pixel Starships API through a Python Wrapper.

Supported Platforms

  • Python: 3.11

Usage

Installation

You can install this module using your package management method. For example:

pip install pssapi

Get started

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__":
    loop = asyncio.new_event_loop()
    asyncio.set_event_loop(loop)
    asyncio.run(main())

Contributing

Install development dependencies

Linux:

make init

Windows:

./win init

Format code

Linux:

make format

Windows:

./win format

Check & Test

Linux:

make check
make test

Windows:

./win check
./win test

Showcase

poetry run python examples/showcase.py

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.2.1.tar.gz (106.9 kB view hashes)

Uploaded Source

Built Distribution

pssapi-0.2.1-py3-none-any.whl (235.9 kB view hashes)

Uploaded Python 3

Supported by

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