Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/frequentlymisseddeadlines/cgtroll
https://github.com/frequentlymisseddeadlines/cgtroll
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/frequentlymisseddeadlines/cgtroll
- Owner: FrequentlyMissedDeadlines
- License: mit
- Created: 2023-09-21T15:50:24.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-21T17:29:03.000Z (over 1 year ago)
- Last Synced: 2024-04-24T00:39:22.524Z (9 months ago)
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build](https://github.com/FrequentlyMissedDeadlines/cgtroll/actions/workflows/package.yml/badge.svg)](https://github.com/FrequentlyMissedDeadlines/cgtroll/actions/workflows/package.yml)
[![Publish](https://github.com/FrequentlyMissedDeadlines/cgtroll/actions/workflows/publish.yml/badge.svg)](https://github.com/FrequentlyMissedDeadlines/cgtroll/actions/workflows/publish.yml)
[![Version](https://img.shields.io/pypi/v/cgtroll)](https://pypi.org/project/cgtroll)
[![Version](https://img.shields.io/pypi/pyversions/cgtroll)](https://pypi.org/project/cgtroll)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
![PyPI - Downloads](https://img.shields.io/pypi/dm/cgtroll)
# 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} fileConvert 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