Vex 🔥
A Python-powered programming language with Hinglish/English dual mode.
Vex is not a replacement for Python. It's a more comfortable way to write it. Write code in Hinglish or English — Vex converts it to Python and runs it. Every library, every feature — nothing changes under the hood.
Why Vex?
Python is powerful — but for many Indian beginners, English syntax is a barrier. Vex removes that barrier. Same Python power, just in a language that feels natural.
- Full Python ecosystem — NumPy, Pandas, everything works
- Hinglish or English keywords — your choice
- Auto f-strings —
{variable}just works inside strings, nof""needed - Readable error messages
- VSCode/Windsurf extension with syntax highlighting and run button
Install
pip install vex-lang
Python must be installed first.
Your First File
Create a file called hello.vex and write:
#mode hinglish
naam = "Sohail"
bolo "Yo {naam}!"
agar True:
bolo "Vex chal raha hai!"
Run it:
vex run hello.vex
Output:
Yo Sohail!
Vex chal raha hai!
Modes
Declare mode on the first line of your file:
#mode hinglish ← Hinglish keywords
#mode english ← English Python-like keywords
Keyword Reference
| Vex (Hinglish) | Python |
|---|---|
bolo |
print |
agar |
if |
warna |
else |
warna_agar |
elif |
jabtak |
while |
har |
for |
mai |
in |
kaam |
def |
wapas |
return |
aao |
import |
jaise |
as |
pakdo |
try |
chodo |
except |
sahi |
True |
galat |
False |
kuch_nahi |
None |
cheez |
class |
khud |
self |
aur |
and |
ya |
or |
nahi |
not |
rok |
break |
aage |
continue |
chalne_de |
pass |
Real Example — With NumPy
#mode hinglish
aao numpy jaise np
numbers = [1, 2, 3, 4, 5]
bolo np.mean(numbers)
bolo np.sum(numbers)
Output:
3.0
15
Functions
#mode hinglish
kaam greet(naam):
wapas "Assalamualiykum Habibi" + naam
bolo greet("Sohail")
Output:
Assalamualiykum Habibi Sohail
Loops
#mode hinglish
har i mai range(5):
bolo i
Output:
0
1
2
3
4
## Error Handling
#mode hinglish
pakdo: bolo 10 / 0 chodo ZeroDivisionError: bolo "Zero se divide nahi kar sakte!"
## VSCode / Windsurf Extension
1. Search **"Vex Language"** in extensions
2. Install
3. Create a `.vex` file
4. Click **▶** or press `Ctrl+Shift+R` to run
Syntax highlighting, file icons, and run support included.
## Links
- PyPI: [pypi.org/project/vex-lang](https://pypi.org/project/vex-lang)
- VSCode Marketplace: [Vex Language](https://marketplace.visualstudio.com/items?itemName=sohailcodes-ai.vex-lang)
- GitHub: [github.com/sohailcodes-ai/Vex-Lang](https://github.com/sohailcodes-ai/Vex-Lang)
## Built by
Sohail Ali — [@sohailcodes-ai](https://github.com/sohailcodes-ai)
Metadata
Release files for vex-lang 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vex_lang-0.3.0.tar.gz | 2.3 kB | Without provenance | Details for vex_lang-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vex_lang-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for vex_lang-0.3.0-py3-none-any.whl |
Total release size: 9.0 kB
Release files / vex_lang-0.3.0.tar.gz
| Download URL | vex_lang-0.3.0.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
48d446585d5acb0ce2bf3a6be76af7d7a5f983c5482256045745cccd9254b65d
|
|
BLAKE2b-256 checksum How to use checksums |
1079c73d0ae929f504c160b4415a0cee39bedddd8586d8c91ea356c2106f5a0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / vex_lang-0.3.0-py3-none-any.whl
| Download URL | vex_lang-0.3.0-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a658c79ddcdb4510b89180f44ceace91b170025ab7d97b7b7547f0c52d71ec62
|
|
BLAKE2b-256 checksum How to use checksums |
cc4b43885de83f07782a6ba513b0bc0fb739dad80b4e542447cd59e5f10fe503
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Security for vex-lang 0.3.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.