Skip to main content

sutd-tts-lib

A (relatively) lightweight library for programmatically submitting entries to SUTD’s Temperature Taking System, without Selenium and the like.

Submit a temperature declaration in three steps:

from sutd.tts import TemperatureReading, User

me = User("1003333", "password")
me.login().take_temperature(TemperatureReading.OK)

Do your daily declaration while you’re at it: (By default, it assumes you pressed “NO” to every checkbox)

from sutd.tts import DailyDeclaration, User

me = User("10003333", "password")
me.login().do_daily_declaration(DailyDeclaration())

Installation

pip install sutd-tts-lib

Examples

Different kinds of temperature readings:

from sutd.tts import TemperatureReading, User

me = User("1003333", "password")
me.login() # only needs to be called once
me.take_temperature(TemperatureReading.OK)
me.take_temperature(TemperatureReading.HIGH_TEMP_BUT_OK)
me.take_temperature(TemperatureReading.HIGH_TEMP_NOT_OK)

Customize your daily declaration via the constructor or instance attributes.

This example declares that you both got served a SHN and you came into close contact with someone who also had SHN/quarantined.

from sutd.tts import DailyDeclaration, User

d = DailyDeclaration(received_SHN=True)
d.contact_SHN = True

me = User("1003333", "password")
me.login().do_daily_declaration(d)

More information are available in the docstrings of the classes.


Prof Chong, I don’t feel so good:

from sutd.tts import DailyDeclaration, User

d = DailyDeclaration()
d.symptoms.dry_cough = True
d.symptoms.fever = True

me = User("1003333", "password")
me.login().do_daily_declaration(d)

Metadata

Release files for sutd-tts-lib 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sutd-tts-lib 0.1.1
File Size Uploaded Provenance Actions
sutd-tts-lib-0.1.1.tar.gz 4.2 kB Without provenance Details for sutd-tts-lib-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sutd-tts-lib 0.1.1
File Interpreter ABI Platform Actions
sutd_tts_lib-0.1.1-py3-none-any.whl Python 3 none any Details for sutd_tts_lib-0.1.1-py3-none-any.whl

Total release size: 8.4 kB

Release files / sutd-tts-lib-0.1.1.tar.gz

Download URL sutd-tts-lib-0.1.1.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
501d0778ea3d8bbd8be7dbe40a917b32f484e173d50f92d74f7f1fc6ffea5c4c
BLAKE2b-256 checksum
How to use checksums
c3757f02cb629a7bf2d844eace6cfd965229d76e5bfd116adb6a763f6a4cf488
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.10 CPython/3.8.4 Darwin/19.6.0

Release files / sutd_tts_lib-0.1.1-py3-none-any.whl

Download URL sutd_tts_lib-0.1.1-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
44912d5d558349f5f5554f4622895c498eecd6fba0257b1cc78d1e09a8f50f03
BLAKE2b-256 checksum
How to use checksums
df0e07b4f5429a52e632f93d588d3f8fbb8a34ec8bc72a489760660af09c51ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.10 CPython/3.8.4 Darwin/19.6.0

Security for sutd-tts-lib 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page