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.

Usage

Rename config.py.sample to config.py and set your Spond username and password in that file.

Example code

import asyncio
from spond import spond
from config import username, password
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.3.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spond-0.0.3-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file spond-0.0.3.tar.gz.

File metadata

  • Download URL: spond-0.0.3.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.9

File hashes

Hashes for spond-0.0.3.tar.gz
Algorithm Hash digest
SHA256 46930d073d763a920693a46885da8cb7851f5369acf31d7215222c96d7884d11
MD5 17b39eb865768d4b14392b2f3d0ddba7
BLAKE2b-256 5022033bd320a9378c15180c8821eb16e515d2a1465278309b803e2e0876f7b6

See more details on using hashes here.

File details

Details for the file spond-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: spond-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 15.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.9

File hashes

Hashes for spond-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 458e9b97b0ce785396cbdbae71e20eac864c9eecab10b7aa8b58decbe3e4f2a4
MD5 ec2e65341553298847586a320471a58a
BLAKE2b-256 0d17ab6128168405c0a55790fa8019175b2025d902dd4b9d6d67f9ad71a2de24

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page