A Python-powered language with Hinglish/English dual mode
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vex_lang-0.3.0.tar.gz.
File metadata
- Download URL: vex_lang-0.3.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48d446585d5acb0ce2bf3a6be76af7d7a5f983c5482256045745cccd9254b65d
|
|
| MD5 |
ddc2ab1f30f4fea08f2cfca256381cf1
|
|
| BLAKE2b-256 |
1079c73d0ae929f504c160b4415a0cee39bedddd8586d8c91ea356c2106f5a0b
|
File details
Details for the file vex_lang-0.3.0-py3-none-any.whl.
File metadata
- Download URL: vex_lang-0.3.0-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a658c79ddcdb4510b89180f44ceace91b170025ab7d97b7b7547f0c52d71ec62
|
|
| MD5 |
82d660c8f901c644425ab0c6d8199983
|
|
| BLAKE2b-256 |
cc4b43885de83f07782a6ba513b0bc0fb739dad80b4e542447cd59e5f10fe503
|