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

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.1.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.1-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyustc-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 533d397da732deb35d15e35c52f47643be3355a7082368cc43ba12e44a5b64a0
MD5 0e22428769fdacc1ca0cdc0584c2b9ee
BLAKE2b-256 eee22e86b4e4f9aed3c61988c8da995be736f21e00f0bca6eb5d1793c6b72f03

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyustc-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 17.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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 71a7d7c3ce4da80a2cdbe3fdcf4aa6e076ec8e09ddd1a1257efeb8c07182d000
MD5 9c22138779bb33b714d70a8973261c95
BLAKE2b-256 a6807ad9b34a5781caac28086b36eb5442a4d07af5816fbadaaee51122459aea

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