An API wrapper for So We Sign
Project description
SWS
An API wrapper for the signing application SoWeSign.
It is not for malicious intent.
The project is still in progress but most of it is functional.
This project is composed of 3 'modules', the basic api, and two classes for easier use.
In most cases you'll just use the User class in the User module.
TLDR; Examples
Printing the 10 next courses of the given user.
from sws_api_wrapper.User import User
user = User.from_digits(institution_code='0000', login_code='00000000', login_pin='0000')
for course in user.get_future_courses(number_of_courses=10):
print(course.name, course.start.date())
Checking if 00000 is the correct code for the 1st course of the day (if it is unsigned).
from sws_api_wrapper.User import User
user = User.from_digits(institution_code='0000', login_code='00000000', login_pin='0000')
course = user.get_todays_courses()[0]
code = '00000'
print(user.check_code(course, code))
Checking if the 1st course of the day is signed by the user.
from sws_api_wrapper.User import User
user = User.from_digits(institution_code='0000', login_code='00000000', login_pin='0000')
course = user.get_todays_courses()[0]
print(user.is_course_signed(course))
Getting the url of a signed course
from sws_api_wrapper.User import User
user = User.from_digits(institution_code='0000', login_code='00000000', login_pin='0000')
course = user.get_todays_courses()[0]
print(user.get_signature_of_course(course))
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
sws_wrapper-0.0.2.tar.gz
(6.1 kB
view details)
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 sws_wrapper-0.0.2.tar.gz.
File metadata
- Download URL: sws_wrapper-0.0.2.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2b5bf63dfceea245b75d63c1ee1d769fb527338851dc7a98387755aa4b73a3f
|
|
| MD5 |
4cbf1ae2bd0de624c2e0122746c93ab1
|
|
| BLAKE2b-256 |
8a2ef8bee4d75b742e42a91dfd992f4484179a082b90bd5924f53765cd0545ae
|
File details
Details for the file sws_wrapper-0.0.2-py3-none-any.whl.
File metadata
- Download URL: sws_wrapper-0.0.2-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0370b58132fb3a82f13169e6f6746c8263260f6d71da58ab26445489f97ffd95
|
|
| MD5 |
fe1ad1fdb69b567be36f03247e2a7ef1
|
|
| BLAKE2b-256 |
23acc9b694591b13762e6f3e5465bf7f55382e47169f2b61bf0fec7281cc66cc
|