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.8.0-cp311-abi3-win_amd64.whl (4.3 MB view details)

Uploaded CPython 3.11+Windows x86-64

nexus_engine-0.8.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.2 MB view details)

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

nexus_engine-0.8.0-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.9 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.17+ ARM64

nexus_engine-0.8.0-cp311-abi3-macosx_11_0_arm64.whl (4.2 MB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

nexus_engine-0.8.0-cp311-abi3-macosx_10_12_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.11+macOS 10.12+ x86-64

File details

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

File metadata

File hashes

Hashes for nexus_engine-0.8.0-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 e0967d92aba48ad1f5a5c0c0bd9a0a47c824a4ca1797e6a5e63bdef0107146ed
MD5 99f0901afb38bffcfd143a78a9a447c4
BLAKE2b-256 30f3639a54c70b2037d748be22af71850011d469841e9795a7578fb36a462f88

See more details on using hashes here.

File details

Details for the file nexus_engine-0.8.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for nexus_engine-0.8.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 82a578842ae31eda0f69f40c76f97477c6b8e224bc30f272b9dcc64aa9b3335b
MD5 bdbb885118bd38068e1009f0643e8af1
BLAKE2b-256 e41f4e2e2813b78574d0d1122ca795fbafa1d0483b2cc9cd286fadbda7b61179

See more details on using hashes here.

File details

Details for the file nexus_engine-0.8.0-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for nexus_engine-0.8.0-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 77142c02d2614b2f7a77df381350598a770d08cd3f7cfd9dfe07fb01b1ac13bc
MD5 6d7abfcbdb0394e3e86999f5fcc255c2
BLAKE2b-256 32d673c748dbc58a1382da4e2482640d58c23be0ddd6fce24376712ef40cb6e2

See more details on using hashes here.

File details

Details for the file nexus_engine-0.8.0-cp311-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for nexus_engine-0.8.0-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ad03b8e943b4765a2f7711bb4a07c9563e799baf5c8df3d73b7b969c08408d75
MD5 e4721d3b4a81127ba91114f74b4d544e
BLAKE2b-256 6e326c718e06d6a1e319aff3a2983af68c2b4fe1e3beaa60187aba82a97fbe16

See more details on using hashes here.

File details

Details for the file nexus_engine-0.8.0-cp311-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for nexus_engine-0.8.0-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 5673b5e56d5cf9d57f8b9efd289ae005895e3ff6345b329b5289b1ac148c010d
MD5 2b3e42d3696f09b8f2aef4a4d2ba75e3
BLAKE2b-256 672c6db28e2a29fdc1ac5bc0ed4608e3d146b11e6a38d6e0d9b14d0d2fcb7a2d

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