🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

arrowpython

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arrowpython

A programming language that transpiles to python. It has extremely similar syntax, but instead of colons (:), you use arrows (=>). Along with this, you are also able to call functions with only one argument with special syntax.

0.0.4
PyPI
Maintainers
1

ArrowPython

A programming language that transpiles to python. It has extremely similar syntax, but instead of colons (:), you use arrows (=>). Along with this, you are also able to call functions with only one argument with the following syntax:

function:argument

This allows for statements such as this in ArrowPython:

print:"hello"

or:

str:1234

It allows you to call single-argument functions whilst shortening the time it takes to write them.

To use arrow python, first install it using:

pip3 install arrowpython

Then, to use it in your program, create a new python file and before putting in any code write:

import arrowpython

If you are using IDLE, IDLE can often be finicky over syntax errors, as it tries to find then before the code is run. This way you will often have a hard time executing ArrowPython in IDLE. I'd reccomend using something like Sublime Text or VSCode.

With that out of the way, this is an example of the popular FizzBuzz program in ArrowPython:

import arrowpython

def fizbuzz:num =>
    for fizzbuzz in range:num =>
        if fizzbuzz % 3 == 0 and fizzbuzz % 5 == 0 =>
            print:"fizzbuzz"
            continue
        elif fizzbuzz % 3 == 0 =>
            print:"fizz"
            continue
        elif fizzbuzz % 5 == 0 =>
            print:"buzz"
            continue
        print:fizzbuzz

fizbuzz:51

Have fun coding!

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts