Skip to main content

A Python package that allows for quick use of USTC network services

Project description

PyUSTC

pypi code size last commit commits since last release

A Python package that allows for quick use of USTC network services.

Features

  • Central Authentication Service: Simplifies login and session management.
  • Educational System: Access course table, grades, and course planning tools.
  • Young Platform: Manage Second Classes.

Installation

Install PyUSTC via pip:

pip install pyustc

Quick Start

Here's an example of logging in via the USTC CAS:

from pyustc import Passport

passport = Passport()
passport.login_by_pwd('username', 'password')

Access your course table via the EduSystem module:

from pyustc import EduSystem

es = EduSystem(passport)
table = es.get_course_table()
for course in table.courses:
    print(course)

For more examples and detailed documentation, see here.

Contributing

We welcome contributions of all types! Submit issues, code, or suggestions via GitHub.

License

MIT

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

pyustc-0.2.2.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

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

pyustc-0.2.2-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file pyustc-0.2.2.tar.gz.

File metadata

  • Download URL: pyustc-0.2.2.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.1

File hashes

Hashes for pyustc-0.2.2.tar.gz
Algorithm Hash digest
SHA256 f6257806a683f946343a0c84226b6103f465de8811bac3a1b84b072402efe6fa
MD5 780a4b75a8f45e1aacbf54a651e4e73e
BLAKE2b-256 a6cbafd00332646fe19cdbc99846ea85702f2487872c600519fc2e9855672a71

See more details on using hashes here.

File details

Details for the file pyustc-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: pyustc-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.1

File hashes

Hashes for pyustc-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e3a6139de2735ac7c6715b6556203f5ff60b406ce9353cfc331d832b8b2c39fa
MD5 7e5beac9d6d25ac1d7879c9da9d8ca0d
BLAKE2b-256 41849255f0f249b243ee59a2522c007684fdd202f0bd2062e6a421c58e9a6428

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