Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Polygon converter

PyPI

Polygon refers to Codeforces' Polygon.

This package creates a copy of the tests, renames the tests and outputs a string that can be used for the Score Parameters field (use GroupMin score type) for Contest Management System (CMS). The renamed tests and the score parameters capture Polygon's subtasks (groups) and dependencies in CMS.

This code uses problem.xml in the Polygon full package (either Windows or Linux is fine) to retrieve information about subtasks.

How To Use

  • Install this package: pip install polyconv
  • Groups may use Polygon's COMPLETE_GROUP or EACH_TEST points policy.
  • Generate a full package on Polygon for your problem and download the Linux version.
  • Run polyconv polygon_path, where polygon_path is the path to the Polygon full package's root directory (where the folders statements/ and tests/ are). Add the -f flag to overwrite files if they exist.
  • A new folder cms_out will be created in polygon_path (this can be changed with -o) containing the following:
    • A folder tests/ containing renamed tests.
    • A .zip file tests.zip with the contents in the tests/ folder above.
    • A score_params.txt file with the score parameters string. You should copy this to the Score Parameters field in CMS (use GroupMin score type).
  • To also extract OutputOnly tests, pass --output-only SUBSTRING. Any test whose group name contains SUBSTRING remains in the Batch files and is additionally written to:
    • output_only.zip, using input.XX.txt and output.XX.txt names.
    • attachment.zip, using input-only input_XX.txt names.
    • Matching tests are ordered by their original Polygon test number and renumbered from 00. Two digits are the minimum width, not a test-count limit.
  • To also create samples.zip, pass --samples GROUP. This uses exact group matching and preserves converted Batch names such as input.01_sample and output.01_sample.
  • The string in score_params.txt will also be output to the standard output.

Release files for polyconv 1.1.0rc1

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

Source distribution (sdist)

Source distribution for polyconv 1.1.0rc1
File Size Uploaded
polyconv-1.1.0rc1.tar.gz 21.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for polyconv 1.1.0rc1
File Interpreter ABI Platform
polyconv-1.1.0rc1-py3-none-any.whl Python 3 none any Details

Total release size: 41.1 kB

Release files / polyconv-1.1.0rc1.tar.gz

Download URL polyconv-1.1.0rc1.tar.gz
Size 21.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a68d593c08c4f8fb9390a21f000e9572298f1e2b3fc795e133c5084a2627b272
BLAKE2b-256 checksum
How to use checksums
f50582b126c6f9fcfae9a25794bfa9c683eb6c9e6b1990f05279d2e1ab87a4b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / polyconv-1.1.0rc1-py3-none-any.whl

Download URL polyconv-1.1.0rc1-py3-none-any.whl
Size 19.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0a177e8d2ade1c06be4f33d2468aa706f7cf2da07eb12d49565bdfbaa8aabfdc
BLAKE2b-256 checksum
How to use checksums
bfe99a43e437f2b0f87cefb952de582ec03cf68b78775d6216561cee9f85388e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

1.1.0rc1 This release

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

1 release file

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