Metadata-Version: 2.1
Name: spond
Version: 0.0.4
Summary: Spond provides access to the Spond API
Home-page: https://github.com/Olen/Spond
License: UNKNOWN
Platform: UNKNOWN
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
License-File: LICENSE
Requires-Dist: asyncio
Requires-Dist: aiohttp

# Spond
![spond logo](https://github.com/Olen/Spond/blob/main/images/spond-logo.png?raw=true)

Simple library with some example scripts to access data from Spond.

## Install

`pip install spond`

## Usage

You need a username and password from Spond



### Example code

```
import asyncio
from spond import spond

username = 'my@mail.invalid'
password = 'Pa55worD'

async def main():
    s = spond.Spond(username=username, password=password)
    groups = await s.getGroups()
    for group in groups:
        print(group['name'])
    await s.clientsession.close()


loop = asyncio.get_event_loop()
loop.run_until_complete(main())

```

## Functions

### getGroups()
Gets all your group memberships and all members of those groups

### getEvents()
Gets all upcoming events

### getPerson()
Get information about a member

### getMessages()
Get all your messages

### sendMessage(receipient, text)
Send a message to `receipient` with the content `text`



