Skip to main content

Analyse your submit in codingame competitions.

Project description

Build Publish Version Version codecov License: MIT PyPI - Downloads

codingame-submit

A tool to analyze the results of your submits in codingame competitions and save a lot of time.

It will automatically:

  • retrieve all the games you lost by timeout (code too slow, or runtime error). Fixing these issues should always be your number 1 priority.
  • sort the game you lost by biggest score difference. This way you can easily focus on the games you totally lost as there might be some cases you don't handle properly or you have bugs.

Installation

pip install cgsubmit

or to update to the latest version:

pip install cgsubmit -U

Usage

Getting your test session handle

This token is linked to your session and game you are playing. To retrieve it:

  1. open the IDE of the game you are playing in your browser (for example https://www.codingame.com/ide/puzzle/spring-challenge-2023-ants)
  2. open the Developer Tools (F12)
  3. look for one of this queries and get the handle value:

Run

python -m cgsubmit -t your-test-session-handle

or for a most advanced usage use -h option to get the description of all parameters:

python -m cgsubmit -h
usage: cgsubmit [-h] -t TOKEN [--noreplay] [--noelo]

Analyse your submit in codingame competitions.

options:
  -h, --help            show this help message and exit
  -t TOKEN, --testsessionhandle TOKEN
                        The test session handle. If you don't know how to get it, look at the doc: https://github.com/FrequentlyMissedDeadlines/cgsubmit
  --noreplay            Remove replay URLs.
  --noelo               Remove opponent rank.

Known issues

If you are using git bash to run the command you might see this kind of error: 'charmap' codec can't encode character '\u274c' in position 0: character maps to <undefined>

You must go to the settings and set the encoding to UTF-8:

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

cgsubmit-1.2.2.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

cgsubmit-1.2.2-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file cgsubmit-1.2.2.tar.gz.

File metadata

  • Download URL: cgsubmit-1.2.2.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for cgsubmit-1.2.2.tar.gz
Algorithm Hash digest
SHA256 ceed0580c0fced1cddc45d57b33280ac7a034c835a3cc370e2e5b04deb3f42f9
MD5 99c7920ec64177f958d9e4e44dc5ff71
BLAKE2b-256 0922caabcd0100e4ada202ea8ac9b6866854de2d7b116c6b6784f3bab7ca33c1

See more details on using hashes here.

File details

Details for the file cgsubmit-1.2.2-py3-none-any.whl.

File metadata

  • Download URL: cgsubmit-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for cgsubmit-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 437a14d3a83a3757d86fbeb349012c785693d7597f64622babf7a766cbdcb73b
MD5 2c8801d9994b66d5ced603fbebd9c2d9
BLAKE2b-256 2b9c9d30782d4e982ed141c98bf89c7eba664c561303d6e1e1d38d60f0ec6864

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page