Skip to main content

Gojju Logo

Gojju 🌶️

The essence of Python • Ruby • Haskell • Perl • JavaScript

DocumentationExamplesPyPI


Gojju (ಗೊಜ್ಜು), meaning "essence" or "secret ingredient" in Kannada, is a programming language combining the best of Python, Ruby, Haskell, Perl, and JavaScript.

Installation

pip install gojju

Quick Start

# Start REPL
gojju

# Run a file
gojju examples/hello.gj

# Execute inline
gojju -e "[1,2,3] |> map(\x -> x * 2) |> sum"

Features at a Glance

Source What You Get
🐍 Python List comprehensions, slicing
💎 Ruby #{interpolation}, postfix if, blocks
λ Haskell |> pipe, \x -> x+1, Maybe/Either
🐪 Perl unless/until, regex literals
⚡ JS Arrow functions =>, spread ...

Example

# Functional pipeline
[1, 2, 3, 4, 5]
  |> filter(\x -> x % 2 == 0)
  |> map(\x -> x * 2)
  |> sum

# Pattern matching
match value
  0 -> "zero"
  n if n < 0 -> "negative"
  _ -> "positive"
end

# Ruby-style string interpolation
let name = "World"
print "Hello, #{name}!"

Documentation

📖 Full documentation, language guide, and API reference at hemanth.github.io/gojju

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gojju-0.1.4.tar.gz (34.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gojju-0.1.4-py3-none-any.whl (32.3 kB view details)

Uploaded Python 3

File details

Details for the file gojju-0.1.4.tar.gz.

File metadata

  • Download URL: gojju-0.1.4.tar.gz
  • Upload date:
  • Size: 34.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for gojju-0.1.4.tar.gz
Algorithm Hash digest
SHA256 fcbd377e974eb477093a1d508532a17124593a12c8c7c6ebf18136c0536e7b83
MD5 f52cab603044f23bf9085ef08ec748f9
BLAKE2b-256 365910d2e8721e2c39d0f88219683bea4db3886a43f1b512a20cfe74faada499

See more details on using hashes here.

File details

Details for the file gojju-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: gojju-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 32.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for gojju-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 11cc34d2a7185a6146f29151e6dfb20bf91336cf6d6e236760f3d2274bfc82d3
MD5 82a3578c6cbb33ecb68eca1bacfb6ebf
BLAKE2b-256 82612b1ed3782a5ee52f732ef90480d4f0726ad78957f8422f33659231a5828d

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page