Multi-Source Data Processing Language
Project description
Norvelang
Multi-Source Data Processing Language
Features
- PEMDAS-compliant mathematical expressions
- String functions (upper, lower, len, contains, etc.)
- SQL-like pipelines for CSV, JSON, XML, SQLite, Excel
- Filtering and aggregation with grouping and joins
- Function support in show and where clauses
- Robust join handling with automatic column disambiguation
- Clean, extensible grammar
- CLI and Python API for interactive and programmatic use
Quick Start
data.csv | show name, age | where age > 30
Installation
uv venv
.venv\Scripts\activate
uv pip install -r .\requirements.txt
Usage
Command Line
# Run a sample file
python -m norve samples/math.nv
# Interactive REPL
python -m norve
# Use regular Lark parser (disable cython)
python -m norve samples/queries.nv --no-lark-cython
Python API
import norve
df = norve.execute_query('''data.csv | show name, age | limit 10''')
output = norve.execute_with_output('''data.csv | show name, age | limit 5''')
variables = {'my_table': 'users.csv'}
df = norve.execute_query('''let users = $my_table; $users | show name, age | limit 10''', variables=variables)
Directory Structure
norvelang/
├── norve/ # Core language implementation
│ ├── api/ # Python API
│ ├── ast/ # AST definitions
│ ├── error/ # Error handling
│ ├── interpreter/ # Pipeline execution
│ ├── transformer/ # AST transformation
│ ├── grammar.lark # Grammar definition
│ └── *.py # Core modules
├── publish/ # Create new release on Github and PyPI
├── samples/ # Example .nv files
├── sample_data/ # Test data files
├── tests/ # Unit tests
├── requirements.txt # Python dependencies
└── README.md # This file
Running Tests
cd tests
pytest -v
Sample Files
- math.nv: Math and function demos
- queries.nv, queries2.nv: Data processing examples
- data_sources.nv: Multi-format data
- errors.nv: Error handling
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
norvelang-0.1.1.tar.gz
(45.7 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
norvelang-0.1.1-py3-none-any.whl
(56.7 kB
view details)
File details
Details for the file norvelang-0.1.1.tar.gz.
File metadata
- Download URL: norvelang-0.1.1.tar.gz
- Upload date:
- Size: 45.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07b15c0dec5079bca33fb9336343b7695180a5be93f403d32c0d94f0d813d4d7
|
|
| MD5 |
ad7088e93861e37e47ac0a91c6e6d9e4
|
|
| BLAKE2b-256 |
873892bab3d2bb5f1fc2b3fd10292c91dfbdaf099a8653ba1b2ef7c99f973810
|
File details
Details for the file norvelang-0.1.1-py3-none-any.whl.
File metadata
- Download URL: norvelang-0.1.1-py3-none-any.whl
- Upload date:
- Size: 56.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c786c59f0120fa637ac1a2399e8064113e2d107a643dacf4f1ecb375311c3882
|
|
| MD5 |
8d4774684a55669d3e74888405e80280
|
|
| BLAKE2b-256 |
37b40d2216e054193c9014b5e5db980eff1f6783578bb46601c199dd98463c9b
|