Skip to main content

Python library for Classification portal

This Python library lets you call API of the Classification portal (at FIT, CTU [1]) and work with it from your Python programs. It is a coursework for MI-PYT subject.

Key features

  • Access token management: login with your credentials once, and the token will be stored locally. If it expires, the library will automatically get a new one using refresh token retrieved earlier together with access token.

  • Save certain URL parameters — no need to supply them with every API call.

  • Use Python objects to generate request bodies — your IDE will show, what parameters they accept.

  • Deal with retrieving and saving students’ classifications with the help of simplified data format (these operations are considered to be used most frequently).

Installation notes

You need to have Python installed of the version at least 3.6.

To log in, you will need not only your username and password, but also a Client ID and Secret codes. Get them by registering a new web application in the AppsManager. As a callback URL, use your host and a free port so that the library can instantiate a web server and catch a callback with authorization code (for example, type in http://localhost:8080).

Documentation

The documentation can be found in the docs folder.

If you would like to build it, you should firstly install the required dependencies. They can be found in the docs folder in the requirements.txt file.

To automatically install the requirements, you can use this command: pip install -r docs/requirements.txt

To build it, use: cd docs && make html

Please note, that you will likely need to have all dependencies of the library itself (not only of documentation) installed too. Just make sure that the library was installed (and brought all required projects with it).

Tests

This package also has tests inside. To run them, use: python setup.py test

Authors

The library is created by Boris Laskov (GitHub profile). For the flow of initial logging in, the author used the code authored by Petr Pulc (under MIT license).

License

This project is licensed under the MIT License — see the LICENSE file for details.

Footnotes

Release files for fit-classification 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fit-classification 0.1.2
File Size Uploaded
fit_classification-0.1.2.tar.gz 24.5 kB Details

Release files / fit_classification-0.1.2.tar.gz

Download URL fit_classification-0.1.2.tar.gz
Size 24.5 kB
Tags Source
SHA-256 checksum
How to use checksums
62d56acde88092e8b5162ce13525e5ff1ee8323247f88bf6cc19da440f1a4528
BLAKE2b-256 checksum
How to use checksums
62dcbba6d8cd558eeb4edd5ab3881a013acc99ed3f0761ee09c3991e0d71687a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file

0.1.1

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page