Skip to main content

🔥 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:

  1. Core App (app.py): Main BahLol class with decorators for registering endpoints
  2. Router (router.py): Handles route registration and matching with parameter extraction
  3. Gas Server (gas.py): Lightweight HTTP server implementation
  4. Middleware (oplos.py): Middleware management system
  5. Logger (logger.py): Custom logging with Bah Lol style messages
  6. CLI (cli.py): Command-line interface with all specified commands
  7. Example (examples/basic.py): Shows how to use the framework
  8. Tests (tests/test_barang.py): Unit tests for the framework
  9. 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)

Source distribution for bah-lol 1.0.0
File Size Uploaded Provenance
bah_lol-1.0.0.tar.gz 12.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for bah-lol 1.0.0
File Interpreter ABI Platform
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.

Release history Release notifications | RSS feed

This release

1.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