python gyat pygyat programming

PyGyat: A Basic Introduction

We have finally done it. As a species, we have developed the perfect programming language for the next two years: PyGyat, Python with Rizz. This is the amazing programming language of the future, which allows iPad kids to write new, slower and buggier code while keeping the lack of brain!

In all seriousness though, this is a very very funny language I’ve found thanks to one of PrimeTime’s videos and I found it so dumb I thought why not make a tutorial on it? Show off the language a little.

Key Features

  • Brainrot Syntax: Write Python code with fun, brainrot-style terms.
  • Seamless Execution: Run PyGyat files with the pygyat command, just like regular Python.
  • Bidirectional Translation: Convert between Python and PyGyat with ease.
  • Syntax Highlighting: Enjoy syntax highlighting in VS Code with the vscode-pygyat extension.
  • Restricted Keywords: Real Python keywords with PyGyat mappings cannot be used interchangeably without translation.
  • Community Driven: Request new mappings via pull requests.

Code Example

Here’s a simple example of how a Python code snippet might look in PyGyat:

Python Code

def greet(name):
    print(f"Hello, {name}!")

if __name__ == "__main__":
    greet("PyGyat")

PyGyat Code

bop unc(name):
    yap(f"Hello, {name}!")

chat is this real __name__ == "__main__":
    unc("PyGyat")

as you can see, the structure is identical to python just different words are used. If you want to learn python to understand it better, check my tutorial.

Installation

From PyPI

To install PyGyat from PyPI, use the following pip command:

$ pip3 install pygyat

From Git Repository

For those who prefer to install directly from the git repository, follow these steps:

  1. Clone the repository:
$ git clone https://github.com/shamith09/pygyat.git
  1. Navigate to the cloned directory:
$ cd pygyat
  1. Install the package locally:
$ pip3 install .

Uninstalling PyGyat

To uninstall PyGyat, simply run:

$ pip3 uninstall pygyat

VS Code Extension

For syntax highlighting in Visual Studio Code, install the vscode-pygyat extension from the marketplace at this link.

Keyword Mappings

The following table outlines the keyword and operator translations from Python to PyGyat:

Python Keyword/OperatorPyGyat Translation
try/except/finallyhawk/tuah/spit on that thang
returnits giving
-fanum tax
+rizz
printyap
TrueAura
FalseCooked
defbop
whilelet him cook
importglaze
fromlock in
classskibidi
if/elif/elsechat is this real/yo chat/only in ohio
formewing
breakjust put the fries in the bag bro
continueedge
assertsus
raisecrashout
indiddy
is
and
or
not
withpookie
asahh
globalGOAT
nonlocalmotion
deldelulu
yieldpause
yield frompause no diddy
NoneNPC
passpluh
selfunc
rangehuzz
>sigma
<beta
sigma twin
beta twin
==twin
=
async
await
openmog
read
write
closedemure

Files

PyGyat translates .gyat files to Python files before execution. Ensure you have Python installed to run PyGyat.

To execute a PyGyat file:

$ pygyat source.gyat arg1 arg2 ...

For help on running PyGyat files, use:

$ pygyat -h

Or consult the man page:

$ man pygyat

For translating Python files to PyGyat:

$ py2gyat test.py

The translated file will be named test.gyat. Detailed help is available with:

$ py2gyat -h

Or by consulting the man page:

$ man py2gyat

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *