Metadata-Version: 2.1
Name: dippy.core
Version: 0.0.1a2
Summary: Async Discord Gateway client.
Home-page: https://github.com/ZechCodes/dippy.core
License: MIT
Author: Zech Zimmerman
Author-email: hi@zech.codes
Requires-Python: >=3.9,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: aiohttp (>=3.7.4,<4.0.0)
Requires-Dist: bevy (>=0.4.6,<0.5.0)
Requires-Dist: gully (>=0.2.3,<0.3.0)
Requires-Dist: pydantic (>=1.8.1,<2.0.0)
Project-URL: Documentation, https://github.com/ZechCodes/dippy.core/blob/main/readme.md
Project-URL: Repository, https://github.com/ZechCodes/dippy.core
Description-Content-Type: text/markdown

# Dippy.Core

This is a bare-bones Discord gateway client that can be used to build Python bot frameworks for Discord. 

## Installation
```shell
pip install dippy.core
```

## Usage

### Connecting
```python
from dippy.core import GatewayConnection, Intents
from asyncio import get_event_loop

client = GatewayConnection("YOUR.TOKEN.HERE", intents=Intents.DEFAULT | Intents.MEMBERS)

loop = get_event_loop()
loop.create_task(client.connect())
loop.run_forever()
```

### Watching For Events
```python
async def on_ready(event_payload):
    print(event_payload.data)

client.on(on_ready, "READY")
```

## Future

- Add models to wrap the event payload data
- Add a caching interface
- Add rate limiting
- Add methods to models for using the gateway

