🇮🇩 BahasaNusantara
Interpreter Python dengan sintaks Bahasa Indonesia — dirancang untuk edukasi, developer lokal, dan pemula programming.
✨ 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 | |
| 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
- Buat file
halo.nus - Tulis kode dengan sintaks Bahasa Indonesia
- Jalankan pakai
jalankan halo.nus - 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)
| 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)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| 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.