Skip to main content

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!")

Metadata

Release files for python-pidgin 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-pidgin 1.0.0
File Size Uploaded Provenance Actions
python_pidgin-1.0.0.tar.gz 3.5 kB Without provenance Details for python_pidgin-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for python-pidgin 1.0.0
File Interpreter ABI Platform Actions
python_pidgin-1.0.0-py3-none-any.whl Python 3 none any Details for python_pidgin-1.0.0-py3-none-any.whl

Total release size: 7.2 kB

Release files / python_pidgin-1.0.0.tar.gz

Download URL python_pidgin-1.0.0.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4cb9543c5bf7e3a102493bd5fde62bc4fec4ecc4df2b6a9949d3342725c6c38b
BLAKE2b-256 checksum
How to use checksums
fc66af55a1c270156761d1d1fd771cfa317e0086aaaf3304440e07ae24dd020f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / python_pidgin-1.0.0-py3-none-any.whl

Download URL python_pidgin-1.0.0-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a039a8d4674c19bf416f22434954550ea192ac8ad1ffe4bbd4aea6230f356a8
BLAKE2b-256 checksum
How to use checksums
18becd21a046fb3cbdd0d5b5b3e938a492063567434c48dce59c0202b1e2aeed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Security for python-pidgin 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page