Skip to main content

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
  • All groups must use the COMPLETE_GROUP points policy.
  • Generate a full package on Polygon for your problem and download the Linux version.
  • Run this file: 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).
  • The string in score_params.txt will also be output to the standard output.

Release files for polyconv 1.0.4

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.0.4
File Size Uploaded
polyconv-1.0.4.tar.gz 17.9 kB Details

Built distribution (wheel)

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

Total release size: 36.1 kB

Release files / polyconv-1.0.4.tar.gz

Download URL polyconv-1.0.4.tar.gz
Size 17.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5b93c5236de71165b04304fa239351bb306b6b671ae6ffde2e9892669881f12b
BLAKE2b-256 checksum
How to use checksums
5b371ee8d869fb5bb9eccab5376697b32a3621d2a2703ac6789e4f585d35d76c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / polyconv-1.0.4-py3-none-any.whl

Download URL polyconv-1.0.4-py3-none-any.whl
Size 18.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d51f2598d14e8e913b2d01f07f3f13f5f299d6f34720185431acc7409f9de64a
BLAKE2b-256 checksum
How to use checksums
affb308d92a9daec3ce1904bbf6ed231d9e1502db994c0b3a96d1dd0e3f6bfa9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":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.0.4 This release

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