Spond provides access to the Spond API
Project description
Spond
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
spond-0.0.4.tar.gz
(14.9 kB
view hashes)
Built Distribution
spond-0.0.4-py3-none-any.whl
(15.2 kB
view hashes)