Skip to main content

🇮🇩 BahasaNusantara

Interpreter Python dengan sintaks Bahasa Indonesia — dirancang untuk edukasi, developer lokal, dan pemula programming.

PyPI Version Python Versions License: MIT Downloads


✨ Apa itu BahasaNusantara?

BahasaNusantara adalah interpreter alternatif Python yang memungkinkan kamu menulis kode dengan sintaks Bahasa Indonesia, namun tetap kompatibel dengan semua library Python.
Dirancang untuk mempermudah pembelajaran programming bagi pelajar dan pemula di Indonesia.


🚀 Fitur Unggulan

  • 🔤 Translasi otomatis keyword Python → Bahasa Indonesia
  • 📚 Kompatibel dengan pustaka Python (NumPy, Pandas, scikit-learn, dll.)
  • 🖥️ Mode REPL interaktif seperti Python asli (BETA)
  • 🌈 Output berwarna & error dalam Bahasa Indonesia
  • ⚡ Performa tinggi (langsung eksekusi, tanpa file sementara)
  • 📄 Dukungan file .nus
  • 🔧 CLI Commands: jalankan, run, nus, bahasa-nusantara

⚙️ Instalasi

🔸 Dari PyPI

pip install bahasa-nusantara

🔸 Dari Source

git clone https://github.com/daffa-aditya-p/bahasa-nusantara.git
cd bahasa-nusantara
pip install .

📥 Contoh Kode .nus

fungsi halo_dunia(nama):
    tulis("🌍 Halo,", nama)
    tulis("Selamat datang di BahasaNusantara!")
    kembali benar

fungsi main():
    nama = tanya("Siapa nama Anda? ")
    halo_dunia(nama)

    angka_list = [1, 2, 3, 4, 5]
    tulis("Panjang list:", panjang(angka_list))
    tulis("Angka acak:", acak(angka_list))

jika __name__ == "__main__":
    main()

🧪 Jalankan dengan:

jalankan main.nus

🔄 Sintaks Indonesia ke Python

Bahasa Indonesia Python
fungsi def
kembali return
jika if
jika_lainnya elif
lainnya else
untuk for
dalam in
selama while
selesai break
teruskan continue
tulis print
tanya input
gunakan import
dari from
sebagai as
benar True
salah False
kosong None
dan and
atau or
bukan not
panjang() len()
tipe() type()
acak() random.choice()

💡 Contoh Lanjutan

Web Scraping

gunakan requests
dari bs4 gunakan BeautifulSoup

fungsi ambil_judul(url):
    html = requests.get(url).text
    soup = BeautifulSoup(html, "html.parser")
    tulis("Judul:", soup.title.string)

Machine Learning

dari sklearn.linear_model gunakan LinearRegression

fungsi main():
    model = LinearRegression()
    model.fit([[1], [2], [3]], [2, 4, 6])
    tulis("Prediksi:", model.predict([[4]]))

GUI Tkinter

dari tkinter gunakan Tk, Label

fungsi main():
    jendela = Tk()
    Label(jendela, text="Halo Dunia!").pack()
    jendela.mainloop()

🧑‍🏫 Panduan Pemula

  1. Buat file halo.nus
  2. Tulis kode dengan sintaks Bahasa Indonesia
  3. Jalankan pakai jalankan halo.nus
  4. Eksplorasi pustaka Python yang kamu suka

🛣️ Roadmap & Kontribusi

Fitur selanjutnya:

  • Highlight error interaktif
  • Modul belajar otomatis
  • Ekstensi VSCode
  • Dukungan runtime Web (browser)

Ingin kontribusi? Fork repo ini, push branch baru, dan buat Pull Request. Tambahkan contoh .nus jika kamu menambah keyword baru.


❓ FAQ

Q: Apakah ini interpreter baru?
A: Ini adalah wrapper Python, bukan pengganti CPython.

Q: Bisa pakai semua library Python?
A: Ya! Karena kamu tetap menjalankan Python asli.

Q: Aman untuk pemula dan sekolah?
A: Sangat aman. Dibuat khusus untuk edukasi.


👤 Tentang Penulis

Nama: Daffa Aditya Pratama
Email: daffaadityp@proton.me
GitHub: @daffa-aditya-p


⭐ Dukung Proyek Ini!

Beri ⭐ di GitHub dan bantu sebarkan ke teman, guru, atau komunitasmu.
Mari bersama tingkatkan akses belajar programming di Indonesia 🇮🇩


Metadata

Release files for bahasa-nusantara 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bahasa-nusantara 2.0.0
File Size Uploaded Provenance Actions
bahasa_nusantara-2.0.0.tar.gz 12.4 kB Without provenance Details for bahasa_nusantara-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bahasa-nusantara 2.0.0
File Interpreter ABI Platform Actions
bahasa_nusantara-2.0.0-py3-none-any.whl Python 3 none any Details for bahasa_nusantara-2.0.0-py3-none-any.whl

Total release size: 22.5 kB

Release files / bahasa_nusantara-2.0.0.tar.gz

Download URL bahasa_nusantara-2.0.0.tar.gz
Size 12.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c41a466ea4f5c55472c6cfe05611489eb3f9f9eb7bc649ed9ddfed6e5743307f
BLAKE2b-256 checksum
How to use checksums
df2c905391d9b3054232b719210bc68d18c9f0185399cb6614c415e0012d0e5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release files / bahasa_nusantara-2.0.0-py3-none-any.whl

Download URL bahasa_nusantara-2.0.0-py3-none-any.whl
Size 10.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9da1c860e0f1783b3f94a25ccda960a2abfb235dae9490941cb9049faeb9fccc
BLAKE2b-256 checksum
How to use checksums
f0992058c176359b7a64acdf617ef0d6cb97400d4caa79e471c4323ffcae8080
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Security for bahasa-nusantara 2.0.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.

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page