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_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.1.tar.gz (14.2 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.1-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyustc-0.2.1.tar.gz
  • Upload date:
  • Size: 14.2 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.1.tar.gz
Algorithm Hash digest
SHA256 c14873151991de819afe086de147b64ecf211017f8f7349818d926191e08e80b
MD5 07ebda3d0d1f6ef568d613f8496e854d
BLAKE2b-256 61b320062996e97bc172da29f3d28657507cc21329bc88315ad48dd54b64792f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyustc-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 17.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5820f0d3d632369749a1c6f7699de04bd3a5bb750a732a401976bc08d573bd54
MD5 bff4e7b3712094def654004caca6c68c
BLAKE2b-256 d698c00ad3b37fff8a6dd7fde762dcb0872ba2efb06e71b8ab624d60116c4f59

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