TimeAndPlace API & CLI Application
This repo contains both a Python3 API, and a command-line application for interacting with @salamander2's TimeAndPlace service over a network. The main reason behind this package is for use in another project I have planned for room occupancy tracking.
What kind of data can be accessed?
Currently, this is mostly a Read-Only API. The following data can be accessed when logged in:
- List of all student IDs
- A particular student's info
- Student location tracking *
* This data can be written via the API
CLI usage
The command-line app uses "action commands" in the format of:
timeandplace --username <username> --password <password> <action> [optional: --endpoint <url>]
A list of possible actions can be viewed by running:
timeandplace help
API usage
All interaction is done via the TimeAndPlace object. It has the following methods:
client = TimeAndPlace()
client.login(str, str)
# These require login to be called
client.getStudentInfo(int) -> StudentInfo
client.getAllStudents() -> List[int]
client.getAllCourses() -> List[CourseInfo]
client.signInStudentToTerminal(int, int)
client.signOutStudentFromTerminal(int, int)
I recommend taking a look at the single source file for more info on the API.
Metadata
Release files for timeandplace 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| timeandplace-1.1.0.tar.gz | 5.0 kB | Without provenance | Details for timeandplace-1.1.0.tar.gz |
Release files / timeandplace-1.1.0.tar.gz
| Download URL | timeandplace-1.1.0.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
97cab5944566bcfc21f775f6d2507c2fd1628dccc19cf1f87572ce8647446b6d
|
|
BLAKE2b-256 checksum How to use checksums |
0d288881f44dd78ad7a260b99bfb8476eb2ebd70de085187607c1974f833539a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.24.0 CPython/3.6.9
|
Security for timeandplace 1.1.0
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.