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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

universal_parser_tool-1.1.0-py3-none-any.whl (22.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: universal-parser-tool-1.1.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for universal-parser-tool-1.1.0.tar.gz
Algorithm Hash digest
SHA256 5a38ee2c1d5605fc562b7963817ac79b7ec35da53f0ec509da3dbdf1a1f98057
MD5 0dc8e64d167805e11bad1bcf803389bd
BLAKE2b-256 b5d7decdbb1c3f24e48c5e4c890804b8be3f10d107d9f346e8bd7dd8701e8bfb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: universal_parser_tool-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 22.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for universal_parser_tool-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e804e749a52ae320d2b73a05943a992cb5c94a16a0ce8914aa279425ec873bf2
MD5 e8b46ff41ef724d546d86917be93ff1a
BLAKE2b-256 13283f0fe1436fcfe2241ba0cc8dac0c9345987ea9510dcf21fd283488490e73

See more details on using hashes here.

Supported by

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