Skip to main content

Spond provides access to the Spond API

Project description

Spond

spond logo

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


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

Uploaded Source

Built Distribution

spond-0.0.5-py3-none-any.whl (15.2 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