🔥 Bah Lol
Framework API Python yang ringan, tegas, dan langsung GAS.
Kalau kamu capek sama framework ribet, kebanyakan config, dan teori panjang, Bah Lol hadir buat satu tujuan:
Bikin API yang BARANG-nya jelas dan langsung jalan.
✨ Kenapa Bah Lol?
- ⚡ Super ringan
- 📦 Tanpa dependency ribet
- 🧠 Mudah dipahami
- 😄 Serius tapi ada senyum dikit
- 🇮🇩 Lokal rasa global
Filosofi kami sederhana:
Kalau bisa simpel, kenapa harus ribet.
🚀 Instalasi
pip install bah-lol
🔧 Contoh Paling Dasar
from bah_lol import BahLol
app = BahLol()
@app.barang("/jalan")
def jalan():
return {
"status": "mantap",
"pesan": "Server sudah jalan, BARANG ini jelas"
}
app.gas()
Buka:
http://localhost:8000/jalan
⛽ Konsep Penting di Bah Lol
| Istilah | Artinya |
|---|---|
| BARANG | Endpoint / fitur |
| GAS | Menjalankan server |
| BBM | Request / payload |
| OPLOS | Middleware |
| BAHENOL | Plugin / extension |
🛠 CLI Command
bah-lol gas
bah-lol barang users
bah-lol oplos auth
bah-lol bbm
bah-lol bahenol
📜 Log Khas
🔥 GAS dibuka di port 8000
⛽ Request masuk, BBM aman
📦 BARANG siap dipakai
📦 Struktur Project
bah_lol/
├── bah_lol/
│ ├── __init__.py
│ ├── app.py # Core App (router + server)
│ ├── router.py # Registrasi BARANG
│ ├── gas.py # HTTP server (async / sync ringan)
│ ├── oplos.py # Middleware
│ ├── logger.py # Log khas Bah Lol
│ └── cli.py # CLI command
├── examples/
│ └── basic.py
├── tests/
│ └── test_barang.py
├── README.md
├── pyproject.toml
├── setup.cfg
└── LICENSE
⚠️ Catatan Penting
Bah Lol ini santai dalam gaya, tapi serius dalam fungsi.
Cocok untuk:
- Prototype
- Internal API
- Demo
- Project cepat
❤️ Penutup
Kalau API kamu:
- Jelas
- Jalan
- Bisa dipakai
Berarti BARANG-nya sudah benar.
Silakan gas 🚀
Key Features Implemented:
- Core App (
app.py): Main BahLol class with decorators for registering endpoints - Router (
router.py): Handles route registration and matching with parameter extraction - Gas Server (
gas.py): Lightweight HTTP server implementation - Middleware (
oplos.py): Middleware management system - Logger (
logger.py): Custom logging with Bah Lol style messages - CLI (
cli.py): Command-line interface with all specified commands - Example (
examples/basic.py): Shows how to use the framework - Tests (
tests/test_barang.py): Unit tests for the framework - Configuration files: pyproject.toml, setup.cfg, and LICENSE
Framework Features:
- Decorator-based routing (@app.barang)
- Parameterized routes (/users/)
- Middleware support (OPLOS)
- Custom logging with Bah Lol style messages
- CLI commands (gas, barang, oplos, bbm, bahenol)
- Lightweight design with minimal dependencies
- Indonesian-themed naming convention
The framework follows the philosophy of being simple, direct, and getting things done quickly - perfect for prototypes, internal services, and small-to-medium APIs.
Metadata
Release files for bah-lol 1.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 | |
|---|---|---|---|---|
| bah_lol-1.0.0.tar.gz | 12.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bah_lol-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.6 kB
Release files / bah_lol-1.0.0.tar.gz
| Download URL | bah_lol-1.0.0.tar.gz |
|---|---|
| Size | 12.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0cba0c6808b46156bd6cc4590fd0ba4e3fa6acc9c4bd144bf4607462505e8117
|
|
BLAKE2b-256 checksum How to use checksums |
6fe42d5aed8aff920ab0f4d88536bcde106bc5d5b1851143ad66d417c9b97e86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.4
|
Release files / bah_lol-1.0.0-py3-none-any.whl
| Download URL | bah_lol-1.0.0-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
05637f1d00749d587fa717b777851cecb75dcdac74cc9946a9d8b5c534958df4
|
|
BLAKE2b-256 checksum How to use checksums |
588bf191d0e18675f21967e3f3960f353d7974ce1af8d246b0f478c7c7aae7eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.4
|
Security for bah-lol 1.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.