Universal Problem Parser Tool
Install
Simple and straight. Make sure you have Python3 and pip. Then install using this command.
pip install universal-parser-tool
This script needs selenium to run. This python library will be added by default if you use the above command. The below link has explained how to install selenium drivers. Firefox is the default driver for this code, so install Firefox and it's driver (geckodriver) as in the link below.
https://selenium-python.readthedocs.io/installation.html
The main idea is based on this repository.
So you may add cf to your PATH.
After installing, the upt command will be added to your PATH.
Configuration
The config file located in ~/.uptrc. Some data may be stored here from parsers too.
After installing, initialize the root path using this command:
upt init <ROOT>
Some parsers create their tests in the root. For example, if <ROOT>=~/cf/contest and run upt cf 4A,
then test files will be available in ~/cf/contest/4/A.
Parse
You can use upt like this script:
upt <PARSER> <PARSER COMMANDS>
Parsers are listed below. You can find their commands in the repository's wiki.
Supported Parsers
In this time, these judges have parsers.
- AtCoder (+login)
- Codechef
- Codeforces
- Quera
- Spoj
NOTE: You may use the parser for practice problems. During a contest, some judges need to log in. For now, this feature is supported by parsers with (+login).
Metadata
Release files for universal-parser-tool 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| universal-parser-tool-1.2.0.tar.gz | 5.9 kB | Without provenance | Details for universal-parser-tool-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| universal_parser_tool-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for universal_parser_tool-1.2.0-py3-none-any.whl |
Total release size: 28.8 kB
Release files / universal-parser-tool-1.2.0.tar.gz
| Download URL | universal-parser-tool-1.2.0.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e699624697879dc071088150e478d3840721cdd292522e2edf8a9ccb4aed0b96
|
|
BLAKE2b-256 checksum How to use checksums |
ecfbae1511de6112522e32b3f519717de884ddde6b6090c979df3ac1a84dc089
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
|
Release files / universal_parser_tool-1.2.0-py3-none-any.whl
| Download URL | universal_parser_tool-1.2.0-py3-none-any.whl |
|---|---|
| Size | 22.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8a681eac074a38c3ff7f89e01f0bb76eeab66bf71a4927e8dfb216160d4a955a
|
|
BLAKE2b-256 checksum How to use checksums |
af84f6a56a785fa1d44bd2d0f3cd9e510e829f23d5592d3322fb4387ad502948
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
|
Security for universal-parser-tool 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.