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

Uploaded CPython 3.11+Windows x86-64

nexus_engine-0.8.1-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.1-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.0 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.17+ ARM64

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

Uploaded CPython 3.11+macOS 11.0+ ARM64

nexus_engine-0.8.1-cp311-abi3-macosx_10_12_x86_64.whl (4.5 MB view details)

Uploaded CPython 3.11+macOS 10.12+ x86-64

File details

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

File metadata

File hashes

Hashes for nexus_engine-0.8.1-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 3fd64d644cd1b3d126fa9235a97ff5d05a7481c77cccee29fd8a639021ab610c
MD5 642934a8e9f73b2d3b2f7406e846435e
BLAKE2b-256 7577c9c0f68f25216a7396f76dede1fb1ffa0b52192ba30f8250b550103348ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexus_engine-0.8.1-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8746f51a4356c010549ebe9eb55d851a00b1e72bb7e6b968facb8ca6c6c61018
MD5 43c2f126cd72a83c66cc5f91a15fdfe9
BLAKE2b-256 c23996a8a5155ba5470240882bfce7902c7d95e3f3d03fcf49b8b0ed95a5789a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexus_engine-0.8.1-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c3bacff988e34e5f24f74a8e04114c898009c0b610626d82c043adfacda53a61
MD5 72e885701c2d11026ba7a2f6f6bfc119
BLAKE2b-256 5c5b733ff769d779d04a66ba506dfbfae9fe5fc3fb6f49e54c6b00f28c313790

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexus_engine-0.8.1-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 475ebc3be4248ec16c49a92eadfa77c6726c531da440e9bffe63e8ca8f358b5d
MD5 0450e8e42011f051b3794453a7766695
BLAKE2b-256 8f422d71222f62729201445395fa9c6f9ad2b5f2d8297c31f1d02c7f9f5dca77

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexus_engine-0.8.1-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 0730e79f1acdb9a4e2fac7669e8d0eb3bf39ac436a0fa42e79b3c98e5e061d42
MD5 b6a5588c05159b73b029b560f666e7dd
BLAKE2b-256 425067fe5ebead861d981ae4718c1b40b6e8c949ec6aedc773a21ae085c568f9

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