Inline Language for Logic and EXpressions
Project description
ILLEX: Inline Language for Logic and EXpressions
A lightweight scripting language for structured text processing with variable substitution, inline expressions, and extensible handlers.
Documentation
For full documentation and advanced usage examples, see the ILLEX Documentation.
Features
- Secure expression parsing with controlled variable evaluation
- Variable assignments and references (
@var = value) - Mathematical expressions and conditional logic
- Customizable function handlers for text transformation
- Built-in functions for string, math, date, network, and security operations
Installation
pip install illex
Usage
import illex
# Variable substitution
illex.parse("Hello, {name}!", {"name": "World"})
# Result: 'Hello, World!'
# Assignment and reference
text = """
@name = John
@age = 30
Name: @name, Age: @age
"""
illex.parse(text, {})
# Result: 'Name: John, Age: 30'
# Mathematical expressions
illex.parse("Sum: :calc(10 + 20)", {})
# Result: 'Sum: 30'
CLI Usage
# Process file
illex run file.illex
# With variables
illex run file.illex --vars name=John age=30
# Load variables from file
illex run file.illex --vars config.json
Extending ILLEX
from illex.decorators.function import function
@function("my_function")
def my_function(text):
return text.upper()
License
ILLEX is licensed under GNU General Public License v3.0 (GPL-3.0).
Copyright (C) 2023-2025 Gustavo Zeloni
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
Full license text: https://github.com/gzeloni/illex/blob/main/LICENSE
Project details
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 illex-0.1.4.tar.gz.
File metadata
- Download URL: illex-0.1.4.tar.gz
- Upload date:
- Size: 28.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3202c0da615b80f7178b7017fc8815df03bbc73b07be48f06a0380d966423c6
|
|
| MD5 |
6a89e308dbdab3ab7ec14e36c382168b
|
|
| BLAKE2b-256 |
20148738d0d58086285b036d5c4f733726c75414184fce998ab6cac6731ee14e
|
File details
Details for the file illex-0.1.4-py3-none-any.whl.
File metadata
- Download URL: illex-0.1.4-py3-none-any.whl
- Upload date:
- Size: 29.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6380d232018ad524017cb8d0f654882a31cd435d0044cc53937de8ea8e59a17d
|
|
| MD5 |
701e6aa8de8f63746b1985ffc44627d4
|
|
| BLAKE2b-256 |
42eaa883144355106a82451f2e6d3eee852c44f33128ef27999e74e2cd9058c5
|