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

Uploaded PyPyWindows x86-64

nexus_engine-0.7.2-pp310-pypy310_pp73-win_amd64.whl (3.6 MB view details)

Uploaded PyPyWindows x86-64

nexus_engine-0.7.2-pp39-pypy39_pp73-win_amd64.whl (3.6 MB view details)

Uploaded PyPyWindows x86-64

nexus_engine-0.7.2-cp313-cp313t-win_amd64.whl (3.6 MB view details)

Uploaded CPython 3.13tWindows x86-64

nexus_engine-0.7.2-cp311-abi3-win_amd64.whl (3.6 MB view details)

Uploaded CPython 3.11+Windows x86-64

nexus_engine-0.7.2-cp311-abi3-manylinux_2_34_x86_64.whl (6.1 MB view details)

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

File details

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

File metadata

File hashes

Hashes for nexus_engine-0.7.2-pp311-pypy311_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 fa179a6eff350740283630a6b11f15df6c6a7d79f6f7b3513b4dacfc84ec75f4
MD5 1a7722ee752e097b28d6a38253a87485
BLAKE2b-256 2d8b765e80bfda5a958f911b9d07ad91fb78aafefb49507a3bc7c001665f7b54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexus_engine-0.7.2-pp310-pypy310_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 28aff2f2ed73cfff474178f2ca5d4ee7cc5221abe659e10e17a7c50eb5285fca
MD5 2f3f4c13db107cf88c95505f04779e58
BLAKE2b-256 578bd2e1accaae8f32373bc6e5462e8a43a7cc79a814f2093a16a9edc6f63767

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexus_engine-0.7.2-pp39-pypy39_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 5f097e041437de37fd42182bbc7ecbd24fe381090b3bc601324e01e0e3e3b8a0
MD5 00118bdcd4d8dba8316d36502d95d60a
BLAKE2b-256 294ddc40f6dd70090a7c70d276154d170659f9ae873fe57903d209150d1d19b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexus_engine-0.7.2-cp313-cp313t-win_amd64.whl
Algorithm Hash digest
SHA256 25ece18c2a5b39e0e4e798937739792d19d7f05f4b846729ddeabfa72a8f6494
MD5 5fe873924c42ba75d2f22083a1777935
BLAKE2b-256 58b56be45dd68713a10f4f1b53bef73435a4c7035ae94a5eaa2e033ad1a185d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexus_engine-0.7.2-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 158397348d441eb441aa2496ec836943532c83135ccea204e2d639cca590a065
MD5 3cafb75af74c07742c9ffefd0f3ad61e
BLAKE2b-256 f42db7a7241624abb56cae5e9753011cb40fed36dd0941cea08cb164cbe4ad14

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexus_engine-0.7.2-cp311-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 64e09ba6c6ffe20e9766c34b85ee59f05529ef83f2e69f0fba929033417d9679
MD5 120002d1cdd05805c295c0e15c091f29
BLAKE2b-256 b20859097d21b43e9a469cde1162b4e3c5af1b2b7c3f75cec779a7939c8ceb2d

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