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.2.0.tar.gz (14.3 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.0-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyustc-0.2.0.tar.gz
  • Upload date:
  • Size: 14.3 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.0.tar.gz
Algorithm Hash digest
SHA256 bfeea28795796e89191d2566fdc6170325f20fd7ec333e7f618d813fd0144cd2
MD5 823ca9b1afdaf98e288496537fc69413
BLAKE2b-256 c8bb56182d272d015a5a450d41165951d6341553454704a93d35c6feba84c4fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyustc-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 17.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9772718dddd1e114288bdd8f8c6518ad292e5ba933079fd1ba8819172998f434
MD5 080579a3af18d1483c6018c8c5baf976
BLAKE2b-256 8ac9967ed8f0cac8f2df1dd6b85afb4f6714004bcfe666f9dd1ee2ed3f57dd39

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