Skip to main content

An open-source, culturally expressive programming language built as a strict superset of Python.

Project description

Pygin

Pygin is an open-source, culturally expressive programming language built as a strict superset of Python. It replaces traditional Python keywords with intuitive, natural Nigerian Pidgin vocabulary (yarn, na, check) while maintaining 100% compatibility with the underlying Python runtime environment.

By prioritizing Python’s native indentation, code styling, and comment structures, Pygin avoids the overhead of foreign syntactic structures, ensuring that learning and writing Pygin feels completely seamless to anyone familiar with Python ecosystems.

Installation

You can install Pygin locally directly from the source directory using pip:

pip install -e .

This will make the pygin command globally available on your machine.

Usage

Once installed, you can run any Pygin (.pg) script by simply passing it to the pygin CLI:

pygin my_script.pg

Syntax Dictionary

Pygin preserves all native Python behaviors. Here are the core keyword mappings:

Pygin Keyword Python Equivalent Purpose / Behavior
na (Omitted) Optional declarative indicator for readability (e.g. na x = 5).
check if Opens a conditional branch evaluating a Boolean expression.
unless elif Secondary conditional logic branch.
otherwise else Fallback execution branch.
small pass < Less-than comparison operator.
big pass > Greater-than comparison operator.
yarn print Native standard output function.
gist def Function/Method definition keyword.
give_am return Statement to pass data out of a function block.
wuruwuru while Indefinite execution loop.
per_person for Definite iteration loop.
inside in Membership checking operator / structural loop iterator.
real_talk True Boolean True.
lie False Boolean False.

Example Script

# Setup basic parameters
na monthly_pay = 75000
na minimum_wage = 70000

# Logic validation block
check monthly_pay small pass minimum_wage:
    yarn("God dey, things go better!")
otherwise:
    yarn("Oga, do giveaway!")

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

python_pidgin-1.0.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

python_pidgin-1.0.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file python_pidgin-1.0.0.tar.gz.

File metadata

  • Download URL: python_pidgin-1.0.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for python_pidgin-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4cb9543c5bf7e3a102493bd5fde62bc4fec4ecc4df2b6a9949d3342725c6c38b
MD5 511388789ab38ecf892d09b2318e80fb
BLAKE2b-256 fc66af55a1c270156761d1d1fd771cfa317e0086aaaf3304440e07ae24dd020f

See more details on using hashes here.

File details

Details for the file python_pidgin-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: python_pidgin-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for python_pidgin-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2a039a8d4674c19bf416f22434954550ea192ac8ad1ffe4bbd4aea6230f356a8
MD5 733abb082b3539484548f6ea3e569e06
BLAKE2b-256 18becd21a046fb3cbdd0d5b5b3e938a492063567434c48dce59c0202b1e2aeed

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