Skip to main content

Convert Polygon packages to other formats, notably to CMS.

Project description

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.

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

polyconv-1.0.4.tar.gz (17.9 kB view details)

Uploaded Source

Built Distribution

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

polyconv-1.0.4-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

Details for the file polyconv-1.0.4.tar.gz.

File metadata

  • Download URL: polyconv-1.0.4.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for polyconv-1.0.4.tar.gz
Algorithm Hash digest
SHA256 5b93c5236de71165b04304fa239351bb306b6b671ae6ffde2e9892669881f12b
MD5 c992be6fe2b4aa04c9a0f3cf50a00a78
BLAKE2b-256 5b371ee8d869fb5bb9eccab5376697b32a3621d2a2703ac6789e4f585d35d76c

See more details on using hashes here.

File details

Details for the file polyconv-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: polyconv-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 18.2 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for polyconv-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d51f2598d14e8e913b2d01f07f3f13f5f299d6f34720185431acc7409f9de64a
MD5 d69c3fe3da963b2fc291d4303b4d9461
BLAKE2b-256 affb308d92a9daec3ce1904bbf6ed231d9e1502db994c0b3a96d1dd0e3f6bfa9

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