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.1-pp311-pypy311_pp73-win_amd64.whl (3.5 MB view details)

Uploaded PyPyWindows x86-64

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

Uploaded PyPyWindows x86-64

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

Uploaded PyPyWindows x86-64

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

Uploaded CPython 3.13tWindows x86-64

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

Uploaded CPython 3.11+Windows x86-64

nexus_engine-0.7.1-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.1-pp311-pypy311_pp73-win_amd64.whl.

File metadata

File hashes

Hashes for nexus_engine-0.7.1-pp311-pypy311_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 9d00812d85613d0cd0a0b78a37a061a43c09b7b73a53c6e63861a00245581f62
MD5 a9be61a3c658c87d56ff59d412ce4dd8
BLAKE2b-256 d48727718cbdb2caa98d24e296a184da178e488cbb0d50c702851f9906522fa8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexus_engine-0.7.1-pp310-pypy310_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 1b896d45b0b185827e4b3cd38e9eedd67821db103711160891fc12aa681a6e6b
MD5 3bed24fa1c4238db2f5fb9641238b0fd
BLAKE2b-256 adf83ab43a42bca9e86da726352c4d5c2601ffa9677fd8a9c72076f2a7930d57

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexus_engine-0.7.1-pp39-pypy39_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 e55970ec3b0b3ed0afe6ffa48da620c1a618fb62eeae56d5164c02ad563fd14f
MD5 25dca75cc03aea00bfd44436d3c75305
BLAKE2b-256 be5af3687f34ed25aeef329bd5cc7df4841928d41e9002661612acd55eb42314

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexus_engine-0.7.1-cp313-cp313t-win_amd64.whl
Algorithm Hash digest
SHA256 c85f731060f31b49d14802e26aa36c6c4cd028da42d418906a15de424f6bf5d2
MD5 bd92614639c9ec9d5a9f4b185ab7129a
BLAKE2b-256 b03682ea09499917a6978f009b5818fd00aedccba92c4043337166a039cd1cd7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexus_engine-0.7.1-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 1ed2df16d91f9c2ce4fd21f64cecb2bbf667868886e00acf81f7f8a4dc896814
MD5 6da599c974238e483deaedfb73ca3b25
BLAKE2b-256 a463940d8e9b40b39aad30365476251b9b26b9e8d1f1487fa20ab9a7222be506

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexus_engine-0.7.1-cp311-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 e1386ec1c490773ba4c3a15d489c4f478cc706eb2ba2e8e596d604d6e3a13585
MD5 5e0ab08986a61a49bc81f97e0b5cb952
BLAKE2b-256 586942b38a57d9af2e69175732da3d45b13aaf1c9e3800d994ca578bfdfbc505

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