Skip to main content

Python DSL for the Nexus Engine

Project description

Nexus Engine

The Python client for Nexus Engine — a Rust-based calculation engine for financial data processing.

This package provides a fluent, chainable DSL for building data transformation and calculation pipelines. Define columns from SQL data sources, apply filters, joins, groupings, conditional logic, and hierarchical breakdowns — then send the pipeline to Nexus Engine for execution.

Note: Executing pipelines requires access to a running Nexus Engine instance and valid credentials. Contact your administrator or visit nexus-engine.io for access.

Installation

pip install nexus-engine[all]

nexusctl login

Quick Start

import nexus as nx

# Define source columns from a SQL data view
table = nx.TableBuilder([
    nx.sql_column("Category", nx.DataType.String, "positions", "asset_category"),
    nx.sql_column("Currency", nx.DataType.String, "positions", "local_currency"),
    nx.sql_column("MarketValue", nx.DataType.Float, "positions", "market_value"),
])

# Build a transformation pipeline
pipeline = (
    table
    .filter(nx.col("MarketValue") > nx.lit(10000))
    .group_by(
        by=["Category"],
        aggregations=[("MarketValue", "sum")]
    )
)

# Execute against a Nexus Engine server
result = pipeline.execute(
    params={"account_id": "ACC001", "date": "2025-01-31"})
print(result)

Type Support

The package includes full type stubs (.pyi) for IDE autocompletion and type checking with mypy or pyright.

Documentation

Full documentation and tutorials are available at nexus-engine.io.

License

Dual-licensed under MIT or Apache-2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

nexus_engine-0.7.0-pp311-pypy311_pp73-win_amd64.whl (3.5 MB view details)

Uploaded PyPyWindows x86-64

nexus_engine-0.7.0-pp310-pypy310_pp73-win_amd64.whl (3.5 MB view details)

Uploaded PyPyWindows x86-64

nexus_engine-0.7.0-pp39-pypy39_pp73-win_amd64.whl (3.5 MB view details)

Uploaded PyPyWindows x86-64

nexus_engine-0.7.0-cp313-cp313t-win_amd64.whl (3.5 MB view details)

Uploaded CPython 3.13tWindows x86-64

nexus_engine-0.7.0-cp311-abi3-win_amd64.whl (3.5 MB view details)

Uploaded CPython 3.11+Windows x86-64

nexus_engine-0.7.0-cp311-abi3-manylinux_2_34_x86_64.whl (6.0 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.34+ x86-64

File details

Details for the file nexus_engine-0.7.0-pp311-pypy311_pp73-win_amd64.whl.

File metadata

File hashes

Hashes for nexus_engine-0.7.0-pp311-pypy311_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 1094b7c0114c3080842c9d534092353ea44badf2cc3df3d01cc8a4f968dbf207
MD5 6f504a52158cc140e24e6dddfcd99ac1
BLAKE2b-256 0d4a9209773da80faff08fd8162f748c3aaf225451deb0f89c142035d53a2964

See more details on using hashes here.

File details

Details for the file nexus_engine-0.7.0-pp310-pypy310_pp73-win_amd64.whl.

File metadata

File hashes

Hashes for nexus_engine-0.7.0-pp310-pypy310_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 6fdd87f9cf9acc6e819fb0923eaf59bf7180a0a7a3505e6821385dbcc958f2a9
MD5 b228b79165c9db66afa4699e08f8f6b4
BLAKE2b-256 2c2c475ba18a8dec4828005bbc2b063cce65be62ee79883e9130ea3f3c26525e

See more details on using hashes here.

File details

Details for the file nexus_engine-0.7.0-pp39-pypy39_pp73-win_amd64.whl.

File metadata

File hashes

Hashes for nexus_engine-0.7.0-pp39-pypy39_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 784bd33b77147f84964fb62a37f9859380688722fa02932f50cfd0ef8f4c79c3
MD5 9968f5341fa2c4d28a15b0ee7d76170c
BLAKE2b-256 dccc15b5eeb27fac18b69967401926909e5f8c787fa89869b17e4e9a7b7614f6

See more details on using hashes here.

File details

Details for the file nexus_engine-0.7.0-cp313-cp313t-win_amd64.whl.

File metadata

File hashes

Hashes for nexus_engine-0.7.0-cp313-cp313t-win_amd64.whl
Algorithm Hash digest
SHA256 53d946265413ddb4f777156473153d41d6602bd8bf518013b73f1193ce765e97
MD5 1b68353a8d777b0112094f6387e85b40
BLAKE2b-256 50458c44a9904b7144ac3e95259ffe28a2b4398f1978fe0f66386b9bf70ea713

See more details on using hashes here.

File details

Details for the file nexus_engine-0.7.0-cp311-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for nexus_engine-0.7.0-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 db27b03ed9ea297c1a1a53f611d42ef28891987b20546194140ff22f54fadcd5
MD5 4928eca72f71f0ae4759d91195f33f5b
BLAKE2b-256 37d7864ca9388b66909a62e8d46224c036640b0da3ee82f459314eb953a2c5b1

See more details on using hashes here.

File details

Details for the file nexus_engine-0.7.0-cp311-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for nexus_engine-0.7.0-cp311-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 4afb078a7b6166687d52109707117dd297ca9b08c189f851e408cfea745108eb
MD5 702ee678adbb7d07abb31d07d98b874f
BLAKE2b-256 ed31e3b8edf34af99c6f24a55ab9b6733a91c3f447d3a86822c2360fe1093a91

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