nirmal ⚡
AI-powered code generation, streamed live to your terminal.
import nirmal
nirmal.make("create a snake game in pygame")
Code starts appearing instantly — character by character — as the AI writes it in real time.
Installation
pip install nirmal
Requires Python 3.8+.
Quick Start
import nirmal
# Generate a complete script from a single sentence
nirmal.make("build a REST API with FastAPI that has CRUD routes for a todo list")
That's it. The generated code streams directly into your terminal.
More Examples
import nirmal
# Games
nirmal.make("create a tetris clone using pygame")
# Web
nirmal.make("build a flask web app with user login and a dashboard")
# Scripts
nirmal.make("write a python script that watches a folder and renames files by date")
# Data
nirmal.make("create a pandas script that reads a CSV, cleans missing values, and plots a bar chart")
# Automation
nirmal.make("write a selenium script that logs into a website and scrapes product prices")
How It Works
Your Python code
│
▼
nirmal.make("your prompt")
│
▼ POST /nirmal/generate.php
PHP Backend (Hostinger)
│
▼ Groq API (llama-3.3-70b-versatile)
Streaming AI response
│
▼
Live terminal output ✓
- You call
nirmal.make()with a plain-English description. - The package sends a POST request to the PHP backend.
- The backend forwards the prompt to Groq with streaming enabled.
- Each token is forwarded back to Python as it arrives.
- Python prints each chunk live — no waiting for the full response.
Configuration
If you host your own backend, edit nirmal/config.py:
BACKEND_URL = "https://your-domain.com/"
REQUEST_TIMEOUT = 60 # seconds
Package Structure
nirmal/
├── nirmal/
│ ├── __init__.py ← public API (make)
│ ├── client.py ← streaming HTTP client
│ ├── config.py ← endpoint + timeout settings
│ └── utils.py ← markdown cleanup helper
├── backend/
│ ├── generate.php ← PHP streaming proxy to Groq
│ └── .htaccess ← security rules for Hostinger
├── pyproject.toml ← pip package config
├── README.md
└── LICENSE
License
MIT — see LICENSE.
Metadata
Release files for nirmal 1.0.2
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 |
|---|---|---|---|---|
| nirmal-1.0.2.tar.gz | 5.8 kB | Without provenance | Details for nirmal-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nirmal-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for nirmal-1.0.2-py3-none-any.whl |
Total release size: 12.4 kB
Release files / nirmal-1.0.2.tar.gz
| Download URL | nirmal-1.0.2.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
22a72c36210e53b4be9883ae03df2fa5994ea642c7a2360d9e2c3ba469d29f31
|
|
BLAKE2b-256 checksum How to use checksums |
d514058e51edf88b1319cac4ec18d48a584281467b80cbeedbeb4a52a290e203
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Release files / nirmal-1.0.2-py3-none-any.whl
| Download URL | nirmal-1.0.2-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
08c1f863fa81e73c14af778a79a90cef3b101d36c41871658ca60593fa83cdac
|
|
BLAKE2b-256 checksum How to use checksums |
c2b64572c7c924e35ce3942df6a41c41881263adc79bd6e7f6b204cc9d136ec8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Security for nirmal 1.0.2
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.