Guni is a Hindi-inspired programming language, Dialect of Python 🐍, designed to make coding more accessible and culturally relatable for Hindi speakers.
Guni transforms Python syntax into Hindi equivalents, allowing users to write code in Hindi-inspired keywords while maintaining Python’s functionality. This is perfect for those who want to learn programming with a more relatable syntax or simply add a cultural twist to their coding experience. Guni code is saved in .guni files and translated into Python for execution.
- Hindi-inspired Keywords: Use culturally familiar Hindi terms in place of Python keywords (e.g.,
printbecomesdikha,forbecomesHar). - Seamless Translation to Python: A parser converts Guni syntax to standard Python syntax, enabling smooth execution.
- Error Handling: Guni maps many Python errors to their Hindi equivalents for a more immersive experience.
- Relatable Function Names: Common Python functions have Hindi-inspired alternatives in Guni (e.g.,
absbecomesAakaar,inbecomesandar).
To get started with Guni:
- Clone the repository:
git clone https://github.com/deepanshutomar/Guni.git
- Navigate to the directory:
cd Guni - Install dependencies (if any):
pip install -r requirements.txt
- Write your code in a
.gunifile using Guni's Hindi syntax. - Run the Guni interpreter to parse and execute the code:
python guniHi.py path/to/yourfile.guni
Here's a simple program written in Guni:
dikha("Namaste, duniya!") # This will print "Namaste, duniya!" in the console
AakaarSeBada = Jod(7, 3) # Adds 7 and 3 using Guni's Hindi functions
dikha("Jama kar ke:", AakaarSeBada)
The above code is equivalent to this in Python:
print("Namaste, duniya!")
sum_result = sum(7, 3)
print("Jama kar ke:", sum_result)Here is a basic list of some Guni keywords and their Python equivalents:
| Python | Guni |
|---|---|
print |
dikha |
for |
Har |
and |
Aur |
if |
Agar |
def |
setkarde |
import |
Uthao |
For the full list of mappings, refer to the mapping.xlsx file in this repository.
Feel free to contribute! Here’s how you can get started:
- Fork this repository.
- Create a new branch with a descriptive name:
git checkout -b feature-name
- Make your changes.
- Commit your changes:
git commit -m "Description of changes" - Push to your branch:
git push origin feature-name
- Open a pull request on the main repository.
- Error Messages in Hindi: Enhanced error handling with Hindi messages for a fully immersive experience.
- Custom Libraries: Add popular libraries with Guni-specific syntax.
- Interactive Shell: Develop an interactive Guni shell for direct command input.
This project is licensed under the MIT License. See the LICENSE file for more details.
We welcome contributions! Check out our contributing guidelines for more information.
For any questions or feedback, feel free to reach out:
- Instagram: @deepanshutomarg
Enjoy coding in Guni! 🎉
