Useful tool to speedup testing codes in cp-programming
Project description
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).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for universal-parser-tool-1.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a38ee2c1d5605fc562b7963817ac79b7ec35da53f0ec509da3dbdf1a1f98057 |
|
MD5 | 0dc8e64d167805e11bad1bcf803389bd |
|
BLAKE2b-256 | b5d7decdbb1c3f24e48c5e4c890804b8be3f10d107d9f346e8bd7dd8701e8bfb |
Hashes for universal_parser_tool-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e804e749a52ae320d2b73a05943a992cb5c94a16a0ce8914aa279425ec873bf2 |
|
MD5 | e8b46ff41ef724d546d86917be93ff1a |
|
BLAKE2b-256 | 13283f0fe1436fcfe2241ba0cc8dac0c9345987ea9510dcf21fd283488490e73 |