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.1.tar.gz
(3.4 kB
view details)
Built Distribution
File details
Details for the file cgtroll-1.0.1.tar.gz
.
File metadata
- Download URL: cgtroll-1.0.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0008276533b8671d5dd9cdbaa06a487c5451872cb0b56ac20eb3efa2cdac93e5 |
|
MD5 | 531dcb9acc2e9b65c3a1cece536d7473 |
|
BLAKE2b-256 | 910825f06314303c2d2c905d587e7b634cc90f9164d8b1cd27563184c1f8cb7a |
File details
Details for the file cgtroll-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: cgtroll-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56e475ed5698abe59a4dd4dc66512c8d1f58ac017661cab84122348e64f3a9e1 |
|
MD5 | 31897ec29361568f23894cd6419cfd39 |
|
BLAKE2b-256 | 574f1a979f56e98f2ed4cea5b20be1e1cea6eb62a34097a0ad3cd84d6859a6ce |