Useful tool to speedup testing in cp-programming
Project description
Universal Parser Tool
This tool (a.k.a upt
) helps to fetch sample tests from online judges.
It can be useful to speedup testing codes before final submit.
Install
You can install upt
from pypi using this command:
$ pip install universal-parser-tool
You should be able to run upt
after install.
To login services and use parsers on private webpages, you need to install a supported browser and its driver.
Browser | Driver | Supported | Tested |
---|---|---|---|
Firefox | https://github.com/mozilla/geckodriver/releases | ✅ | ✅ |
Chromium/Chrome | https://sites.google.com/a/chromium.org/chromedriver/downloads | ✅ | ✅ |
Opera | https://github.com/operasoftware/operachromiumdriver/releases | ✅ | ❌ |
Edge | https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/ | ✅ | ❌ |
Safari | Built-in | ✅ | ❌ |
IE | https://selenium-release.storage.googleapis.com/index.html | ❌ | ❌ |
Configurations
All configurations stored at ~/.config/upt
, including upt.conf
(general configs) and cookie.jar
(login cookies).
After installing, You may run upt init
to initialize config options.
Upgrade
You can check current version by running upt -v
. Upgrade to newer version by this command.
$ pip install -U universal-parser-tool
Parsers
At this time, these judges have parsers.
NOTE: You need to login a service if you want to use it during contest.
Contributing
All contributes are welcome, specially adding new parsers. I tried to make it easy to define your own parsers. You can see example.py as a documented example or module directory predefined parsers.
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-4.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08d0586aff300ee0f58ab7707b77a78d7a675a883f8a6c6e0127239cdce5cd85 |
|
MD5 | c07328b0a3fe3b252876397979fcaf17 |
|
BLAKE2b-256 | e2bbd1107fc511e76543f221c3fd7a060443cc159e23938dfba9b8278d9d01df |
Hashes for universal_parser_tool-4.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da5ebfde5d5b9ecef9ab629b32739cfe55d361ad672a86b12dd4e18568323f47 |
|
MD5 | 8e57435f80177f83193ce0759a4f7f87 |
|
BLAKE2b-256 | 77e006a13593b04af6bfd8819760b360753b3d85e315159425c554c673cac471 |