Skip to main content

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

norve-0.1.2.tar.gz (45.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

norve-0.1.2-py3-none-any.whl (56.6 kB view details)

Uploaded Python 3

File details

Details for the file norve-0.1.2.tar.gz.

File metadata

  • Download URL: norve-0.1.2.tar.gz
  • Upload date:
  • Size: 45.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for norve-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e58976cb65aa01bcc5663fce6e1c43c8003ef81e99115770cea3e7249945c93b
MD5 d005b8f9b33691fd9c62039e701d496a
BLAKE2b-256 77ac811e1c0cc04d9d6fd6b3463a00d13058b3ff045b6865fbb05b87317ab561

See more details on using hashes here.

File details

Details for the file norve-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: norve-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 56.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for norve-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3555e05ff8d91ff3db697a40a92e3d92b76e4f3a2d49326af3e300b5c8a6adbe
MD5 dda7196282f4779b8159ab2a62cb0bc3
BLAKE2b-256 e557434d8a36fd67831cde7943ee34bbfda6c3009d3786112e036c015382fecf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page