Pre-release
This release is a pre-release and may not be stable for production use.
Polygon converter
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_GROUPorEACH_TESTpoints policy. - Generate a full package on Polygon for your problem and download the Linux version.
- Run
polyconv polygon_path, wherepolygon_pathis the path to the Polygon full package's root directory (where the foldersstatements/andtests/are). Add the-fflag to overwrite files if they exist. - A new folder
cms_outwill be created inpolygon_path(this can be changed with-o) containing the following:- A folder
tests/containing renamed tests. - A
.zipfiletests.zipwith the contents in thetests/folder above. - A
score_params.txtfile with the score parameters string. You should copy this to the Score Parameters field in CMS (use GroupMin score type).
- A folder
- To also extract OutputOnly tests, pass
--output-only SUBSTRING. Any test whose group name containsSUBSTRINGremains in the Batch files and is additionally written to:output_only.zip, usinginput.XX.txtandoutput.XX.txtnames.attachment.zip, using input-onlyinput_XX.txtnames.- 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 asinput.01_sampleandoutput.01_sample. - The string in
score_params.txtwill 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)
| File | Size | Uploaded | |
|---|---|---|---|
| polyconv-1.1.0rc1.tar.gz | 21.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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}
|