Living Code — Python functions that evolve themselves
Project description
hanifx 🧬
Living Code — Python functions that evolve themselves.
What is hanifx?
Normal code is static — you write it once, it runs the same way forever.
hanifx makes your functions alive — they observe themselves, detect pain, and propose smarter versions of themselves over time.
Installation
pip install hanifx
Quick Start
from hanifx import evolve
@evolve def process_data(data): result = [] for item in data: if data.count(item) > 1: result.append(item) return result
Run it — hanifx silently watches
for i in range(50): process_data([1, 2, 3, 2, 1, 4])
After 50 calls — EVOLUTION ALERT fires!
Features
- Memory Layer — tracks every call silently
- Pain Detector — knows when a function is slow or broken
- Evolution Engine — proposes faster alternatives
- Conscience — never applies unsafe changes
- Rollback — go back to any previous version
Roadmap
- v0.1 — Memory + Pain Detection
- v0.2 — Evolution Proposals
- v0.3 — CLI Tool
- v0.4 — Team Sync
- v1.0 — Full Release
Author
Built by hanif with ❤️
License
MIT
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 hanifx-2.3.8.tar.gz.
File metadata
- Download URL: hanifx-2.3.8.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5dd313ce37e2419e2cd22dcc3f116ba4d6861f6cf2f8b6caf55e3a3e38eacafa
|
|
| MD5 |
78ff8314bca6a946daec2553cc490a02
|
|
| BLAKE2b-256 |
35c7df2b7e6cd4465d46f48b14965e09b27f7ec2cea0ffc4c3c9cbe91cbe6588
|
File details
Details for the file hanifx-2.3.8-py3-none-any.whl.
File metadata
- Download URL: hanifx-2.3.8-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35c5b7d4ba7565b69a29ab70dc3546923a7c181031f58412f074c9d95e04502a
|
|
| MD5 |
db6482128810b6462e59ca281d806b06
|
|
| BLAKE2b-256 |
afe09252ef643bd61f4db2c5e8648a577828420902dff7dea72ed70e072e8530
|