algocli


Namealgocli JSON
Version 0.2 PyPI version JSON
download
home_pagehttps://github.com/emanuel2718/algocli
Summaryprint common algorithms to the command line
upload_time2021-04-09 07:54:37
maintainerEmanuel Ramirez Alsina
docs_urlNone
authorEmanuel Ramirez Alsina
requires_python>=3.6
licenseMIT
keywords algocli algorithms console command line
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
<h1 align="center" style="font-size: 3rem;">
algo-CLI
</h1>

Print common algorithms to the command line


# Index

* [Installation](#installation)
* [Description](#description)
* [How to use](#how-to-use)
  - [Options](#options)
  - [Supported Languages](#supported-languages)
  - [Supported Algorithms](#supported-algorithms)
* [Examples](#examples)
* [Available Themes](#available-themes)
* [Contributions](#contributions)
* [Credits](#credits)


# Installation

Use pip:

    $ pip install algocli

Manual installation:

    $ git clone https://github.com/emanuel2718/algocli.git
    $ cd algocli
    $ python setup.py install


# Description

**algocli** is a command-line tool that lets users print common algorithms directly into the terminal. Why open
a browser search through countless articles about how to do [insertionsort in python](#insertionsort-python) when you can just type `algocli python insertionsort` in the terminal.

    $ algocli [INPUT ...] [OPTIONS]


![bubblesortPython](https://user-images.githubusercontent.com/55965894/110212969-cb68e780-7e52-11eb-8f34-1b02a11b4c56.png)

&nbsp; 

# How to use

&nbsp; 

## Options:

    -h, --help              show this help message and exit
    -v, --version           displays the current version of algcli
    --list-colors           print list of available colorschemes
    --list-lang             print list of supported languages
    --list-algo             print list of supported algorithms

    -c [COLORSCHEME], --color [COLORSCHEME]
                            colorized output


## Supported Language:

Correct language query (shown on the left) must be given for **algocli** to understand

    actionscript         Actionscript
    ada                  Ada
    algol68              ALGOL68
    applescript          Applescript
    autohotkey           Autohotkey
    awk                  AWK
    c                    C
    cpp                  C++
    csharp               C#
    d                    D
    delphi               Delphi
    fsharp               F#
    eiffel               Eiffel
    fortran              Fortran
    go                   Go
    haskell              Haskell
    objc                 Objective-C
    java                 Java
    javascript           Javascript
    lua                  Lua
    matlab               Matlab
    ocaml                Ocaml
    pascal               Pascal
    perl                 Perl
    php                  PHP
    powershell           PowerShell
    python               Python
    ruby                 Ruby
    rust                 Rust
    scala                Scala
    swift                Swift

## Supported Algorithms:

Correct language query (shown on the left) must be given for **algocli** to understand

    avltrees             AVL Trees
    b64                  Decode Base64 data
    beadsort             Bead Sort algorithm
    binarysearch         Binary Search algorithm
    bogosort             Bogo Sort algorithm
    bubblesort           Bubble Sort algorithm
    caesarcipher         Caesar Cipher
    cocktailsort         Cocktail Sort algorithm
    combsort             Comb Sort algorithm
    countingsort         Counting Sort algorithm
    cyclesort            Cycle Sort algorithm
    damm                 Damm algorithm
    dijkstra             Dijkstra algorithm
    e                    Calculate the value of e
    eulermethod          Euler method
    evolutionary         Evolutionary algorithm
    factorial            Calculate factorials
    factorions           Calculate factorions
    fft                  Fast Fourier Transforms
    fib                  Fibonacci Sequence
    fibnstep             Fibonacci N-step Number Sequence
    fileexists           Check if a given file exists or not
    fizzbuzz             FizzBuzz
    floydwarshall        Floy Warshall algorithm
    gnomesort            Gnome Sort algorithm
    hammingnumbers       Hamming numbers
    heapsort             Heap Sort algorithm
    huffman              Huffman coding
    insertionsort        Insertion Sort algorithm
    isaac                ISAAC Cipher
    knapsack             Knapsack Problem 0-1
    knapsackbound        Knapsack Problem Bounded
    knapsackcont         Knapsack Problem Continous
    knapsackunbound      Knapsack Problem Unbounded
    kolakoski            Kolakoski Sequence
    mandelbrot           Mandelbrot Set
    mazegen              Maze Generation
    mazesolve            Maze Solving
    md4                  How to use MD4
    md5                  How to use MD5
    md5imp               MD5 Algorithm implementation
    mergesort            Merge Sort algorithm
    nqueen               N-Queens Problem
    pancakesort          Pancake Sort algorithm
    patiencesort         Patience Sort algorithm
    permutationsort      Permutation Sort algorithm
    quickselect          Quickselect Algorithm
    quicksort            Quick Sort algorithm
    radixsort            Radix Sort algorithm
    recaman              Recaman Sequence
    regex                Simple Regular Expressions
    rot13                Rot-13 Algorithm
    rsa                  RSA code
    selectionsort        Selection Sort algorithm
    sexyprime            Sexy primes
    sha1                 SHA-1 Algorithm
    sha256               SHA-256 Algorithm
    shellsort            Shell Sort algorithm
    sieve                Sieve of Eratosthenes Algorithm
    sleepsort            Sleep Sort algorithm
    stoogesort           Stooge Sort algorithm
    strandsort           Strand Sort algorithm
    subcipher            Substitution Cipher
    toposort             Topological Sort Algorithm

&nbsp; 

# Examples

**NOTE**: The order of the options do not matter, but for the sake of simplicity all the examples will be shown with the algorithm first followed by the language. The following are equivalent:

    $ algocli radixsort cpp
    $ algocli cpp radixsort

&nbsp; 

#### List of supported languages

    $ algocli --list-lang

#### List of supported algorithms

    $ algocli --list-algo

#### Insertion Sort with Python *without* color

    $ algocli insertionsort python

#### Insertion Sort with Python *with* color

    $ algocli insertionsort python -c

#### Insertion Sort with Python *with* material colorscheme

    $ algocli insertionsort python -c material

#### Radix Sort with C++

    $ algocli radixsort cpp

#### Fibonacci Sequence calculation with Java

    $ algocli fib java

&nbsp; 

# Available Themes

[List of available Themes](https://github.com/emanuel2718/algocli/blob/master/THEMES.md)

&nbsp; 


# Contributions

*insert contributions message here*

&nbsp; 

# Credits

This project couldn't have been possible without [Rosetta Code](https://www.rosettacode.org/wiki/Rosetta_Code), which is a wonderful resource for any programmer looking to learn about how to do different things in almost any programming language in existence.

All credits go to Rosetta Code and all the contributors of the site.






            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/emanuel2718/algocli",
    "name": "algocli",
    "maintainer": "Emanuel Ramirez Alsina",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "eramirez2718@gmail.com",
    "keywords": "algocli algorithms console command line",
    "author": "Emanuel Ramirez Alsina",
    "author_email": "eramirez2718@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/e3/2c/a35f9c31bd5af1c3f2f1f9d84b4dcb5c391f09a5b833f40c573a96b78c62/algocli-0.2.tar.gz",
    "platform": "",
    "description": "[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n<h1 align=\"center\" style=\"font-size: 3rem;\">\nalgo-CLI\n</h1>\n\nPrint common algorithms to the command line\n\n\n# Index\n\n* [Installation](#installation)\n* [Description](#description)\n* [How to use](#how-to-use)\n  - [Options](#options)\n  - [Supported Languages](#supported-languages)\n  - [Supported Algorithms](#supported-algorithms)\n* [Examples](#examples)\n* [Available Themes](#available-themes)\n* [Contributions](#contributions)\n* [Credits](#credits)\n\n\n# Installation\n\nUse pip:\n\n    $ pip install algocli\n\nManual installation:\n\n    $ git clone https://github.com/emanuel2718/algocli.git\n    $ cd algocli\n    $ python setup.py install\n\n\n# Description\n\n**algocli** is a command-line tool that lets users print common algorithms directly into the terminal. Why open\na browser search through countless articles about how to do [insertionsort in python](#insertionsort-python) when you can just type `algocli python insertionsort` in the terminal.\n\n    $ algocli [INPUT ...] [OPTIONS]\n\n\n![bubblesortPython](https://user-images.githubusercontent.com/55965894/110212969-cb68e780-7e52-11eb-8f34-1b02a11b4c56.png)\n\n&nbsp; \n\n# How to use\n\n&nbsp; \n\n## Options:\n\n    -h, --help              show this help message and exit\n    -v, --version           displays the current version of algcli\n    --list-colors           print list of available colorschemes\n    --list-lang             print list of supported languages\n    --list-algo             print list of supported algorithms\n\n    -c [COLORSCHEME], --color [COLORSCHEME]\n                            colorized output\n\n\n## Supported Language:\n\nCorrect language query (shown on the left) must be given for **algocli** to understand\n\n    actionscript         Actionscript\n    ada                  Ada\n    algol68              ALGOL68\n    applescript          Applescript\n    autohotkey           Autohotkey\n    awk                  AWK\n    c                    C\n    cpp                  C++\n    csharp               C#\n    d                    D\n    delphi               Delphi\n    fsharp               F#\n    eiffel               Eiffel\n    fortran              Fortran\n    go                   Go\n    haskell              Haskell\n    objc                 Objective-C\n    java                 Java\n    javascript           Javascript\n    lua                  Lua\n    matlab               Matlab\n    ocaml                Ocaml\n    pascal               Pascal\n    perl                 Perl\n    php                  PHP\n    powershell           PowerShell\n    python               Python\n    ruby                 Ruby\n    rust                 Rust\n    scala                Scala\n    swift                Swift\n\n## Supported Algorithms:\n\nCorrect language query (shown on the left) must be given for **algocli** to understand\n\n    avltrees             AVL Trees\n    b64                  Decode Base64 data\n    beadsort             Bead Sort algorithm\n    binarysearch         Binary Search algorithm\n    bogosort             Bogo Sort algorithm\n    bubblesort           Bubble Sort algorithm\n    caesarcipher         Caesar Cipher\n    cocktailsort         Cocktail Sort algorithm\n    combsort             Comb Sort algorithm\n    countingsort         Counting Sort algorithm\n    cyclesort            Cycle Sort algorithm\n    damm                 Damm algorithm\n    dijkstra             Dijkstra algorithm\n    e                    Calculate the value of e\n    eulermethod          Euler method\n    evolutionary         Evolutionary algorithm\n    factorial            Calculate factorials\n    factorions           Calculate factorions\n    fft                  Fast Fourier Transforms\n    fib                  Fibonacci Sequence\n    fibnstep             Fibonacci N-step Number Sequence\n    fileexists           Check if a given file exists or not\n    fizzbuzz             FizzBuzz\n    floydwarshall        Floy Warshall algorithm\n    gnomesort            Gnome Sort algorithm\n    hammingnumbers       Hamming numbers\n    heapsort             Heap Sort algorithm\n    huffman              Huffman coding\n    insertionsort        Insertion Sort algorithm\n    isaac                ISAAC Cipher\n    knapsack             Knapsack Problem 0-1\n    knapsackbound        Knapsack Problem Bounded\n    knapsackcont         Knapsack Problem Continous\n    knapsackunbound      Knapsack Problem Unbounded\n    kolakoski            Kolakoski Sequence\n    mandelbrot           Mandelbrot Set\n    mazegen              Maze Generation\n    mazesolve            Maze Solving\n    md4                  How to use MD4\n    md5                  How to use MD5\n    md5imp               MD5 Algorithm implementation\n    mergesort            Merge Sort algorithm\n    nqueen               N-Queens Problem\n    pancakesort          Pancake Sort algorithm\n    patiencesort         Patience Sort algorithm\n    permutationsort      Permutation Sort algorithm\n    quickselect          Quickselect Algorithm\n    quicksort            Quick Sort algorithm\n    radixsort            Radix Sort algorithm\n    recaman              Recaman Sequence\n    regex                Simple Regular Expressions\n    rot13                Rot-13 Algorithm\n    rsa                  RSA code\n    selectionsort        Selection Sort algorithm\n    sexyprime            Sexy primes\n    sha1                 SHA-1 Algorithm\n    sha256               SHA-256 Algorithm\n    shellsort            Shell Sort algorithm\n    sieve                Sieve of Eratosthenes Algorithm\n    sleepsort            Sleep Sort algorithm\n    stoogesort           Stooge Sort algorithm\n    strandsort           Strand Sort algorithm\n    subcipher            Substitution Cipher\n    toposort             Topological Sort Algorithm\n\n&nbsp; \n\n# Examples\n\n**NOTE**: The order of the options do not matter, but for the sake of simplicity all the examples will be shown with the algorithm first followed by the language. The following are equivalent:\n\n    $ algocli radixsort cpp\n    $ algocli cpp radixsort\n\n&nbsp; \n\n#### List of supported languages\n\n    $ algocli --list-lang\n\n#### List of supported algorithms\n\n    $ algocli --list-algo\n\n#### Insertion Sort with Python *without* color\n\n    $ algocli insertionsort python\n\n#### Insertion Sort with Python *with* color\n\n    $ algocli insertionsort python -c\n\n#### Insertion Sort with Python *with* material colorscheme\n\n    $ algocli insertionsort python -c material\n\n#### Radix Sort with C++\n\n    $ algocli radixsort cpp\n\n#### Fibonacci Sequence calculation with Java\n\n    $ algocli fib java\n\n&nbsp; \n\n# Available Themes\n\n[List of available Themes](https://github.com/emanuel2718/algocli/blob/master/THEMES.md)\n\n&nbsp; \n\n\n# Contributions\n\n*insert contributions message here*\n\n&nbsp; \n\n# Credits\n\nThis project couldn't have been possible without [Rosetta Code](https://www.rosettacode.org/wiki/Rosetta_Code), which is a wonderful resource for any programmer looking to learn about how to do different things in almost any programming language in existence.\n\nAll credits go to Rosetta Code and all the contributors of the site.\n\n\n\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "print common algorithms to the command line",
    "version": "0.2",
    "split_keywords": [
        "algocli",
        "algorithms",
        "console",
        "command",
        "line"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "2c9d8aac330c313b36db000abcac6fc1",
                "sha256": "e1e59e749dc0af1f7c9adbc1403ad02e14328aed6dbc4f107a605c37f9897149"
            },
            "downloads": -1,
            "filename": "algocli-0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2c9d8aac330c313b36db000abcac6fc1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 12525,
            "upload_time": "2021-04-09T07:54:36",
            "upload_time_iso_8601": "2021-04-09T07:54:36.899382Z",
            "url": "https://files.pythonhosted.org/packages/5a/a1/c2239c7436d841c56a63ce354a8404afde669c6d617bce9ee7459adaf10f/algocli-0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "48eb5758582c48c63d8075e087354cee",
                "sha256": "1d17275bdbb9c38b26cc7b8130b8418da471c4a6b7b33a1b0016a82d1e0e0b47"
            },
            "downloads": -1,
            "filename": "algocli-0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "48eb5758582c48c63d8075e087354cee",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 14320,
            "upload_time": "2021-04-09T07:54:37",
            "upload_time_iso_8601": "2021-04-09T07:54:37.898428Z",
            "url": "https://files.pythonhosted.org/packages/e3/2c/a35f9c31bd5af1c3f2f1f9d84b4dcb5c391f09a5b833f40c573a96b78c62/algocli-0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2021-04-09 07:54:37",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": null,
    "github_project": "emanuel2718",
    "error": "Could not fetch GitHub repository",
    "lcname": "algocli"
}
        
Elapsed time: 0.29873s