Skip to main content

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


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.1.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

sws_wrapper-0.0.1-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file sws_wrapper-0.0.1.tar.gz.

File metadata

  • Download URL: sws_wrapper-0.0.1.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

Hashes for sws_wrapper-0.0.1.tar.gz
Algorithm Hash digest
SHA256 f8ad7a6032c9b02efc1626fdfff051f597abfd068b61ada0f4a6bfaa6850fda5
MD5 65ae601875e185c56ffa817a33ea08c1
BLAKE2b-256 106be427884f632366824ca9d843134b4597b4e64f7666527ad5dd2d7a46c389

See more details on using hashes here.

File details

Details for the file sws_wrapper-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: sws_wrapper-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for sws_wrapper-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dc5d43e0683bbea6d94a57326c2f01b79a2a871c3fb4991fb40571917e672576
MD5 bbb34059d874912e221cbffd00f42742
BLAKE2b-256 c3d744543474fb173fcc8ff03c69366b17b70bfa9e7fd2f2a5d6ac21a5f610e6

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