Skip to main content

Convert your python code to any language supported by codingame to troll the language ranking.

Project description

Build Publish Version Version License: MIT PyPI - Downloads

codingame-troll

A tool to disguise your code in an other language. Funny to troll the language ranking.

Language Support
Bash
C
C++
C#
Clojure
D
Dart
F#
Go
Groovy
Haskell
Java
Javascript
Kotlin
Lua
Objective-C
OCaml
Pascal
Perl
PHP
Python3
Ruby
Rust
Scala
Swift
TypeScript
VB.NET

Installation

pip install cgtroll

or to update to the latest version:

pip install cgtroll -U

Usage

python -m cgtroll language file

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

python -m cgtroll -h
usage: cgtroll [-h] {bash} file

Convert your python code to any language supported by codingame to troll the language ranking.

positional arguments:
  {bash}      The language you want to make your code look like.
  file        The file containing your python code.

options:
  -h, --help  show this help message and exit

Known limitations

Your python code must:

  • NOT contain double quotes ("), replace them with single quotes (')
  • NOT contain comments (#), remove them

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

cgtroll-1.0.1.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

cgtroll-1.0.1-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

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