Spond provides access to the Spond API
Project description
Spond
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46930d073d763a920693a46885da8cb7851f5369acf31d7215222c96d7884d11
|
|
| MD5 |
17b39eb865768d4b14392b2f3d0ddba7
|
|
| BLAKE2b-256 |
5022033bd320a9378c15180c8821eb16e515d2a1465278309b803e2e0876f7b6
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
458e9b97b0ce785396cbdbae71e20eac864c9eecab10b7aa8b58decbe3e4f2a4
|
|
| MD5 |
ec2e65341553298847586a320471a58a
|
|
| BLAKE2b-256 |
0d17ab6128168405c0a55790fa8019175b2025d902dd4b9d6d67f9ad71a2de24
|