Skip to main content

Simple python library to write programs in bangla language

Project description

Alt Text

PytBangla is a Python library that brings a touch of Bengali flavor to programming, offering tools for speech interaction, file management, calculations, and email automation using Bengali-named methods. It's designed to be friendly, intuitive, and culturally resonant for native Bangla speakers who love to code.

Features 📌

🖥️ Computer Class

  • input_nao(prompt, data_type): Custom input method with data type support.
  • lekho(variable): Print to console.
  • bolo(text): Convert text to speech using pyttsx3.
  • shuno(): Voice input using microphone.
  • suru_koro(app): Start an application.
  • bondho_koro(app): Force close an application.
  • screenshot_nao(path): Take a screenshot and save.
  • is_equal(a, b): Check if two values are equal and same type.

🧮 Calculator Class

  • Area calculations: rectangular_area, square_area, triangle_area, circular_area_diameter, circular_area_radius
  • Basic operations: jog_koro, biyog_koro, gun_koro, vag_koro, vagsesh_ber_koro, ghat_ber_koro
  • Advanced math: borgo_mul_koro, factorial, prime, palindrome, fibonacci

📧 Mailer Class

  • Initialize with credentials: Mailer(username, password, host, port)
  • Send mail: email_pathao(to, subject, compose)

📂 FileManager Class

Full-featured file manager:

  • Create, read, delete, rename, copy, move files
  • Check file existence, size, extension, line/word/char count
  • Search, replace, append content
  • Manage directories

Installation 📦

pip install pytbangla

Note: pyaudio may need to be installed separately depending on your OS.

Example Usage 🚀

from pytbangla import Computer, Calculator, Mailer, FileManager

c = Computer()
c.lekho("Hello from PytBangla!")
c.bolo("Bhalo achi")

calc = Calculator()
print(calc.jog_koro(10, 20))  # 30

fm = FileManager()
fm.file_create("test.txt", "This is PytBangla")

Contributing 🤝

Feel free to fork and contribute! Pull requests are warmly welcome.

License 📝

MIT License - do what you want, just give credit.


Crafted with ❤️ for the Bangla coding community.

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

pytbangla-1.0.4.tar.gz (228.4 kB view details)

Uploaded Source

Built Distribution

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

pytbangla-1.0.4-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file pytbangla-1.0.4.tar.gz.

File metadata

  • Download URL: pytbangla-1.0.4.tar.gz
  • Upload date:
  • Size: 228.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for pytbangla-1.0.4.tar.gz
Algorithm Hash digest
SHA256 ce46e6dadaa70b424b114e6e90c852a2eccd3c27e3ecb3f3ff1a820e43ae22e1
MD5 36b66d00c1cde11d779fd4d1fefbe285
BLAKE2b-256 5d9be0ecb6ba0e2acc6e7b0df3974bffc7b6464d9d3cbcd0bf34e9c77ac67d17

See more details on using hashes here.

File details

Details for the file pytbangla-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: pytbangla-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for pytbangla-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6fa2251afdb1cbe3185a97e393180428abd3d4ac9f87ab864ae6d7b80aab978c
MD5 4dc4e2541af27d0e2093762ec6f65e40
BLAKE2b-256 a6192f92c3aa3c774427174e3c77e10d6e0e19950c1a6a5b4689d215ccd87f53

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