Skip to main content

Python with rizz

Project description

PyGyat

Python with rizz. Be a sigma and mog your skibidi toilet opps before they crashout. This language can only be used in Ohio.

Check out the official PyGyat website.

PyGyat is a Python preprosessor which translates regular Python code into brainrot by replacing certain keywords, operators, and built in functions with iPad kid vocabulary.

Implementation based on Bython.

Content of README:

Key features

  • Write Python using brainrot terms instead.

  • Run PyGyat files using the pygyat command, just like Python.

  • Translate Python files to PyGyat and vice versa.

  • Real Python keywords that have defined PyGyat mappings will not be allowed.

  • Edit your PyGyat code with syntax highlighting with the vscode-pygyat extension.

Code example

Code Example

Installation

You can install PyGyat directly from PyPI using pip (with or without -H, depending on your Python installation):

$ pip3 install pygyat

If you for some reason want to install it from the git repository you can use git clone and do a local install instead:

$ git clone https://github.com/shamith09/pygyat.git
$ cd pygyat
$ pip3 install .

The git version is sometimes a tiny bit ahead of the PyPI version, but not significantly.

To uninstall, simply run

$ pip3 uninstall pygyat

which will undo all the changes.

To install the vscode-pygyat extension for Visual Studio Code, visit:

https://marketplace.visualstudio.com/items?itemName=shamith-pasula.vscode-pygyat

Keyword mappings

Below is a table of all of the Python keywords or operators that should be replaced by their corresponding PyGyat keyword. Python keywords that don't have a mapping or aren't in this table can just be used as is. If you want to request that a new mapping be made, please submit a pull request.

Python Keyword/Operator PyGyat Translation
try/except/finally hawk/tuah/spit on that thang
return its giving
- fanum tax
+ rizz
print yap
True Aura
False Cooked
def bop
while let him cook
import glaze
from lock in
class skibidi
if/elif/else chat is this real/yo chat/only in ohio
for mewing
break just put the fries in the bag bro
continue edge
assert sus
raise crashout
in diddy
is
and
or
not
with pookie
as ahh
global GOAT
nonlocal motion
del delulu
yield pause
yield from pause no diddy
None NPC
pass pluh
self unc
range huzz
> sigma
< beta
sigma twin
beta twin
== twin
=
async
await
open mog
read
write
close demure
list
set
dict

Quick intro

PyGyat works by first translating PyGyat files (suggested file ending: .gyat) into Python-files, and then using Python to run them. You therefore need a working installation of Python for PyGyat to work.

To run a PyGyat program, simply type

$ pygyat source.gyat arg1 arg2 ...

to run source.gyat with arg1, arg2, ... as command line arguments. If you want more details on how to run PyGyat files (flags, etc), type

$ pygyat -h

to print the built-in help page. You can also consult the man page by typing

$ man pygyat

PyGyat also includes a translator from Python to PyGyat. This is found via the py2gyat command:

$ py2gyat test.py

This will create a PyGyat file called test.gyat. A full explanation of py2gyat, is found by typing

$ py2gyat -h

or by consulting the man page:

$ man py2gyat

Structure of the repository

At the moment, PyGyat is written in Python. The git repository is structured into 4 directories:

  • pygyat contains a Python package containing the parser and other utilities used by the main script
  • etc contains manual pages and other auxillary files
  • scripts contains the runnable Python scripts, ie the ones run from the shell
  • testcases contains a couple of sample *.gyat and *.py files intended for testing the implementation
  • vscode-pygyat contains the Visual Studio Code extension that enables syntax highlighting in VS Code.

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

pygyat-1.0.6b0.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

pygyat-1.0.6b0-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file pygyat-1.0.6b0.tar.gz.

File metadata

  • Download URL: pygyat-1.0.6b0.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.0

File hashes

Hashes for pygyat-1.0.6b0.tar.gz
Algorithm Hash digest
SHA256 6fc696cb1006fe30c8ff412d93ecd1b6bfd8242e4efaed583e8cb3422d1932cf
MD5 28fe4f8fd5e7687708f10e0289788773
BLAKE2b-256 b478e9dbdce514f935d9e7be01b6b893381e5f458ac50647cb17615f426f5a31

See more details on using hashes here.

File details

Details for the file pygyat-1.0.6b0-py3-none-any.whl.

File metadata

  • Download URL: pygyat-1.0.6b0-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.0

File hashes

Hashes for pygyat-1.0.6b0-py3-none-any.whl
Algorithm Hash digest
SHA256 b75b61b5425012d5f55f3d0455bfcf6103c6f42383221a663793ea481a3357f2
MD5 add8bf5811e76f7d5c87aab6f75db2e1
BLAKE2b-256 bbb507057d9e1da23a546add8cc2da243aacd46fc42b0425939d13274be1da2d

See more details on using hashes here.

Supported by

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