Skip to main content

A Python keyword transpiler. Write code in certified brainrot. +1000 aura.

Project description

brainrot 🧠

Wassup, gooners. So today I got -300 aura so I decided to make this and gain my sigma status and +1000 aura.

brainrot is a Python keyword transpiler that replaces boring standard keywords with certified brainrot meme slang. Write unhinged code. Run it anyway.


Installation

pip install brainrot

Requires Python 3.10+. Requires having any rizz at all.


Usage

As a CLI

brainrot run  myfile.brainrot   # execute your brainrot file
brainrot show myfile.brainrot   # translate it to boring Python
brainrot keys                   # print the full keyword map

As a module

import brainrot

brainrot.run("myfile.brainrot")           # execute directly
brainrot.translate("myfile.brainrot")     # get the Python source back
brainrot.show_keywords()                  # print the keyword table
brainrot.to_python(source_str)            # translate a string
brainrot.to_brainrot(source_str)          # corrupt normal Python

The Keyword Map

brainrot Python
npc_check if
plot_twist elif
sybau else
grind for
no_cap_loop while
yeet break
skibidi_skip continue
vibe pass
sigma_move def
its_giving return
ohio_school class
lowkey_func lambda
rizz_and and
bussin_or or
no_rizz not
ate in
hits_different is
W True
L False
ghosted None
summon import
straight_from from
aka as
bet try
mid_detected except
no_matter_what finally
ratio raise
linked_up with
slay_output yield
main_character global
side_character nonlocal
ghosted_var del
trust_me_bro assert
lowkey_async async
hold_on_bestie await

Example

# hello.brainrot

straight_from math summon sqrt aka square_root

ohio_school Animal:
    sigma_move __init__(self, name, vibe_score):
        self.name = name
        self.vibe_score = vibe_score

    sigma_move is_sigma(self):
        its_giving self.vibe_score > 8

sigma_move classify(animals):
    sigmas, npcs = [], []
    grind a ate animals:
        npc_check a.is_sigma():
            sigmas.append(a)
        sybau:
            npcs.append(a)
    its_giving sigmas, npcs

trust_me_bro W, "W must be truthy no cap"

Run it:

brainrot run hello.brainrot

aura status

action aura
Writing normal Python -300
Installing brainrot +500
Actually shipping something with it +1000
Getting a PR merged sigma

Contributing

PRs welcome. If you have a better meme keyword for something, open an issue. The bar is: would a chronically online 14 year old understand it. If yes, ship it.


License

Not open source but I'm too sigma to care so do whatever you want with it.

Project details


Download files

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

Source Distribution

py_aura-0.1.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

py_aura-0.1.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file py_aura-0.1.0.tar.gz.

File metadata

  • Download URL: py_aura-0.1.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for py_aura-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0560f2d4214d0e9f8dec029182194149fa15787c9a8fd88dfe6e1c6011c3530d
MD5 d506f64ed577bf3680fec8cf4a4eb5f7
BLAKE2b-256 4e99e0e73aacae3fe24c66731fbd0e026db463889bc080f9847a4d63ae07a733

See more details on using hashes here.

File details

Details for the file py_aura-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: py_aura-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for py_aura-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5df665747e76fe02727e834c5fdebf3e1f47bf3804ee7bd097a744b466873ddc
MD5 6402dc7c547c6c5cd07dd9cdd5f2e68f
BLAKE2b-256 cce6c6b6f06b26212d2b5f078eaaaa7f578d33eb884a84b559f80beba9609ff0

See more details on using hashes here.

Supported by

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