Skip to main content

Universal Parser Tool

Version Downloads License

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

Simple and straight. Make sure you have python3 and pip3. Then install using this command.

$ pip3 install universal-parser-tool

This script needs selenium to login services. The 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

After installing, the upt command will be added to your PATH.

Getting Started

All configs stored at ~/.config/upt, including upt.conf (general configs) and cookie.jar (cookies).

After installing, first run upt init to initialize config files. It will ask some questions about default settings.

Upgrade

You can check current version by running upt -v. Upgrade to newer version by this command.

$ pip3 install -U universal-parser-tool

Parse

You can use upt like this script:

$ upt {parser}  [options...] {task or URL}

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 need to login a service if you want to use it during contest.

Metadata

Release files for universal-parser-tool 3.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for universal-parser-tool 3.1.1
File Interpreter ABI Platform
universal_parser_tool-3.1.1-py3-none-any.whl Python 3 none any Details

Release files / universal_parser_tool-3.1.1-py3-none-any.whl

Download URL universal_parser_tool-3.1.1-py3-none-any.whl
Size 22.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
16244a91f51c61e657fdd49a25c49e4c499d8ebed37c609a704343c1f5a4a1af
BLAKE2b-256 checksum
How to use checksums
55cbc91bdc2d90ded650094833bed3cd32a828050de85c9f1f0ed648efbe3b8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

Release history Release notifications | RSS feed

5.0.1

2 release files

5.0.0

2 release files

4.1.3

2 release files

4.1.2

2 release files

4.1.1

2 release files

4.1.0

2 release files

4.0.2

2 release files

4.0.1

1 release file

4.0.0

1 release file

3.2.0

1 release file

This release

3.1.1 This release

1 release file

3.1.0

1 release file

3.0.0

1 release file

2.0.1

2 release files

2.0.0

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.1.7

2 release files

0.1.5

2 release files

0.1.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page