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

  • Unified Identity Authentication System: 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

To use CAPTCHA processing, see here.

Quick Start

Here's an example of logging in via the UIAS:

from pyustc import Passport

passport = Passport()
passport.login('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.1.0.tar.gz (13.9 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.1.0-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyustc-0.1.0.tar.gz
Algorithm Hash digest
SHA256 601765a1d704ceebce290b6f6086a976cb06b1e6e424406e4832fe4e175a6b85
MD5 5a3d2a7604feeea2cfc955fe8b41477f
BLAKE2b-256 d71f624e1e14963f04e57816dcccfb261c5ac38c7b75957824818d0f5619f9c4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyustc-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.8 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a7cd331966d64f41725ebd80c871d3a49f706dd1129a3aa2c1330311173d95f5
MD5 781145ff5d1ccea3ed95d0c4d50cb8ce
BLAKE2b-256 4ff1eef6974e33b7ffbd2e8d1a2d69e87e9ec60b614e6d49e2bbc18c849a3ac8

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