Framework API Python yang ringan, tegas, dan langsung GAS
Project description
๐ฅ 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bah_lol-1.0.0.tar.gz.
File metadata
- Download URL: bah_lol-1.0.0.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0cba0c6808b46156bd6cc4590fd0ba4e3fa6acc9c4bd144bf4607462505e8117
|
|
| MD5 |
8a83f05b2cb07973ba85e7f4a2786962
|
|
| BLAKE2b-256 |
6fe42d5aed8aff920ab0f4d88536bcde106bc5d5b1851143ad66d417c9b97e86
|
File details
Details for the file bah_lol-1.0.0-py3-none-any.whl.
File metadata
- Download URL: bah_lol-1.0.0-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05637f1d00749d587fa717b777851cecb75dcdac74cc9946a9d8b5c534958df4
|
|
| MD5 |
38f9a4bb721b1a204842ef87fa47022e
|
|
| BLAKE2b-256 |
588bf191d0e18675f21967e3f3960f353d7974ce1af8d246b0f478c7c7aae7eb
|