Convert your python code to any language supported by codingame to troll the language ranking.
Project description
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
Release history Release notifications | RSS feed
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.0.tar.gz
(3.4 kB
view hashes)