Skip to main content

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 and run upt cf 4A, then test files will be available in ~/cf/contest/4/A. Find more details in wiki.

Parse

You can use upt like this script:

upt {parser} {task} [options...]

Parsers are listed below. You can find their options and task pattern in the repository's wiki.

Supported Parsers

In this time, these judges have parsers.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

universal-parser-tool-2.0.0.tar.gz (7.2 kB view hashes)

Uploaded Source

Built Distribution

universal_parser_tool-2.0.0-py3-none-any.whl (22.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page