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/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.

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-1.2.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

universal_parser_tool-1.2.0-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

File details

Details for the file universal-parser-tool-1.2.0.tar.gz.

File metadata

  • Download URL: universal-parser-tool-1.2.0.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for universal-parser-tool-1.2.0.tar.gz
Algorithm Hash digest
SHA256 e699624697879dc071088150e478d3840721cdd292522e2edf8a9ccb4aed0b96
MD5 ca0387aaf42c0bed01645f3f052cfb7a
BLAKE2b-256 ecfbae1511de6112522e32b3f519717de884ddde6b6090c979df3ac1a84dc089

See more details on using hashes here.

File details

Details for the file universal_parser_tool-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: universal_parser_tool-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 22.9 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for universal_parser_tool-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8a681eac074a38c3ff7f89e01f0bb76eeab66bf71a4927e8dfb216160d4a955a
MD5 d80c83d7a8021a73d3ce0900bb0d6766
BLAKE2b-256 af84f6a56a785fa1d44bd2d0f3cd9e510e829f23d5592d3322fb4387ad502948

See more details on using hashes here.

Supported by

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