Skip to main content

A Bangla programming language that compiles to Python

Project description

deshilib 🇧🇩

deshilib হলো একটি বাংলা প্রোগ্রামিং ভাষা যা Python এ compile হয়।
Write code in Bangla keywords — deshilib converts it to Python and runs it.

Author

## Installation

```bash
pip install deshilib

Usage

As a Python module

import deshilib

# সরাসরি Bangla code চালাও
deshilib.run_code("""
rakho x = 10
jodi x > 5 thole
    bol "baro"
nahole
    bol "choto"
""")

# ফাইল থেকে চালাও
deshilib.run_file("program.bd")

# Python code এ convert করো (run না করে)
py = deshilib.to_python("bol 5 + 3")
print(py)  # print(5 + 3)

As a CLI tool

deshilib program.bd

Bangla Keywords

Bangla Keyword Python Equivalent কাজ
rakho = ভ্যারিয়েবল
bol print() প্রিন্ট
jodi ... thole if ...: শর্ত
nahole jodi ... thole elif ...: নইলে যদি
nahole else: নইলে
jotokhon ... thole while ...: লুপ
dhori def ফাংশন
ferot de return রিটার্ন

Example Program

# grade.bd
rakho marks = 85

jodi marks >= 90 thole
    bol "A+"
nahole jodi marks >= 80 thole
    bol "A"
nahole jodi marks >= 70 thole
    bol "B"
nahole
    bol "C"
deshilib grade.bd
# Output: A

License

MIT

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

deshilib-0.1.0.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

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

deshilib-0.1.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file deshilib-0.1.0.tar.gz.

File metadata

  • Download URL: deshilib-0.1.0.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for deshilib-0.1.0.tar.gz
Algorithm Hash digest
SHA256 27f75870ba1a87a99c462ce842f9349391730009e257aa3f2e3be374d3fb0295
MD5 994cf640afb2c919b7053c2326685903
BLAKE2b-256 9877c337d41411633b189020d3d48663504e0257c70eeed2d673ff9e8858f7c8

See more details on using hashes here.

File details

Details for the file deshilib-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: deshilib-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for deshilib-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 34bf00f52730d359474c3a9fcdc72f2043139dfed912014c3f2765c80b2ed9f6
MD5 ee25232fbdd7459bcf9f4898b9525240
BLAKE2b-256 eefef869392004aa23a1dc1cc53c9441b1fa1b7a80e1dcb6ce01f0e75114f452

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