Elvis has left the building - A REPL template engine that remembers
Project description
Elvis Has Left the Building
Some say it's pointless. Some say it's brilliant. Elvis doesn't care either way - Elvis has already left the building.
A REPL template engine that remembers your variables and helps you generate code in both Jupyter and CLI environments.
Installation
pip install elvis-repl
Usage
from elvis_repl import elvis
# Create a template with variables
elvis("cube_{id} = cube(\"{name}\")",
id=1,
name="first_cube")
# Variables are remembered
elvis.vars()
# Render without showing
elvis.render()
# Show last rendered template
elvis.show()
# Execute when ready
elvis.run()
# Clear state
elvis.clear()
Features
- Works in both Jupyter and regular Python REPL
- Remembers variables between template generations
- Separate render/show/run steps for control
- Chainable API
- Simple and intuitive interface
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
elvis_repl-0.1.0.tar.gz
(4.4 kB
view details)
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 elvis_repl-0.1.0.tar.gz.
File metadata
- Download URL: elvis_repl-0.1.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28a3f0d6d14fc5fce45a81e6d8959d1abf668752ec442a6e858e038f8e922056
|
|
| MD5 |
40958d0a4cef92b3fb11727b9ddd8dd0
|
|
| BLAKE2b-256 |
7932f1d0e0cc883a2d0391450e80874e593d5edf50c4155c2751992b639008bf
|
File details
Details for the file elvis_repl-0.1.0-py3-none-any.whl.
File metadata
- Download URL: elvis_repl-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a98d25f79627539be10b82ce9441bf1069ce8864825ac7e7e93d8b5ecc7ea051
|
|
| MD5 |
918468405237df2a768eba1d9e8da67d
|
|
| BLAKE2b-256 |
09eff928491374e70c96cbafa151a69020df5dafd185b03eb6b8d9b57ebf3b60
|