semvec/pypi-packages huggingface dataset:
aiodactyl 0.0.1
Asynchronous pterodactyl API wrapper.
License: Apache License 2.0
Requires Python: >=3.6

## Install
- Pypi: ``pip3 install aiodactyl``
- Git: ``pip3 install git+https://github.com/WardPearce/aiodactyl.git``

[Pterodactyl API Documentation by dashflo](https://dashflo.net/docs/api/pterodactyl/v0.7/#introduction)

## Index
 - [API](#api)
 - [Example](#example)

### API
#### aiodactyl.client
``aiodactyl.client(api_key, route, session=None)``

- If you aren't passing a ``aiohttp.ClientSession`` object created within the event loop ``aiodactyl.client`` should be ran within the context of the loop.

##### aiodactyl.client(...).client(self, server_id=None)
    - list(self)
    - get(self)
    - resource(self)
    - console_command(self, command)
    - start(self)
    - stop(self)
    - restart(self)
    - kill(self)
##### aiodactyl.client(...).nodes(self, node_id=None)
    - list(self)
    - get(self)
    - create(self, **kwargs)
    - edit(self, **kwargs)
    - delete(self, **kwargs)
##### aiodactyl.client(...).nodes(self, node_id=None).allocation(self, allocation_id=None)
    - list(self)
    - create(self, **kwargs)
    - delete(self, allocation_id)
##### aiodactyl.client(...).user(self, user_id=None)
    - list(self)
    - get(self)
    - external(self, external_id)
    - create(self, **kwargs)
    - edit(self, **kwargs)
    - delete(self)
##### aiodactyl.client(...).locations(self, location_id=None)
    - list(self)
    - get(self)
    - create(self, **kwargs)
    - edit(self, **kwargs)
    - delete(self)
##### aiodactyl.client(...).servers(self, server_id=None)
    - list(self)
    - get(self)
    - get_by_external(self, external_id)
    - create(self, **kwargs)
    - update_details(self, **kwargs)
    - update_build(self, **kwargs)
    - update_parameters(self, **kwargs)
    - suspend(self)
    - reinstall(self)
    - rebuild(self)
    - delete(self)
    - force(self)
#### aiodactyl.client(...).servers(self, server_id=None).database(self, database_id=None)
    - list(self)
    - get(self)
    - create(self, **kwargs)
    - password_reset(self)
    - delete(self)
#### aiodactyl.client(...).nests(self, nest_id=None)
    - list(self)
    - get(self)
    - eggs(self)
    - egg(self, egg_id)

### Example
```py
import aiodactyl
import asyncio

async def example(loop):
    # Route should be the link to your pterodactyl panel with /api added to the end.
    aiodactyl_client = aiodactyl.client(api_key="*******", route="https://example.com/api")

    print(await aiodactyl_client.nodes().list())

    await aiodactyl_client.session.close()

loop = asyncio.get_event_loop()
loop.run_until_complete(example(loop))
loop.close()
```
aioshoppy 0.0.1
Asynchronous wrapper for Shoppy.gg API.
License: Apache License 2.0
Requires Python: >=3.6

## Install
Install git and run ``pip3 install git+https://github.com/WardPearce/aioshoppy.git``

[Shoppy's Documentation](https://shoppy.dev/)

## Index
[API](#api)
[Example](#example)

### API
##### aioshoppy.client
``aioshoppy.client(api_key, session=None)``

- If you aren't passing a ``aiohttp.ClientSession`` object created within the event loop ``aioshoppy.client`` should be ran within the context of the loop.
- Anything what has a '.' in it replace it with '__'.

##### aioshoppy.client(...).product(self, product_id=None)
    - list(self, page: int = 1)
    - get(self)
    - create(self, **kwargs)
    - update(self, **kwargs)
    - delete(self)
##### aioshoppy.client(...).product(self, product_id=None).image(self)
    - update(self, file)
    - delete(self)
##### aioshoppy.client(...).order(self, order_id=None)
    - list(self, page: int = 1)
    - get(self)
##### aioshoppy.client(...).feedback(self, feedback_id=None)
    - list(self, page: int = 1)
    - get(self)
##### aioshoppy.client(...).query(self, query_id=None)
    - list(self, page: int = 1)
    - get(self)
    - update(self, action)
    - reply(self, message)
##### aioshoppy.client(...).websocket(self, webhook_secret)
    - validate(self, headers, payload, incoming_ip=None)
##### aioshoppy.client(...).payment(self).v1(self)
    - create(self, **kwargs)
    - delete(self, payment_id)
##### aioshoppy.client(...).payment(self).v2(self)
    - create(self, **kwargs)
    - white_label(self, return_url, gateway, **kwargs)

### Example
```py
import aioshoppy
import asyncio

async def example():
    shoppy = aioshoppy.client(api_key="")

    print(await shoppy.payment.v2.white_label(
        return_url="https://example.com/return", 
        gateway="BTC",
        title="Amazing Example",
        value=10,
        email="example@gmail.com"))

    await shoppy.session.close()

loop = asyncio.get_event_loop()
loop.run_until_complete(example())
loop.close()
```