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

Uploaded PyPyWindows x86-64

nexus_engine-0.7.3-pp310-pypy310_pp73-win_amd64.whl (3.7 MB view details)

Uploaded PyPyWindows x86-64

nexus_engine-0.7.3-pp39-pypy39_pp73-win_amd64.whl (3.7 MB view details)

Uploaded PyPyWindows x86-64

nexus_engine-0.7.3-cp314-cp314t-win_amd64.whl (3.7 MB view details)

Uploaded CPython 3.14tWindows x86-64

nexus_engine-0.7.3-cp313-cp313t-win_amd64.whl (3.7 MB view details)

Uploaded CPython 3.13tWindows x86-64

nexus_engine-0.7.3-cp311-abi3-win_amd64.whl (3.7 MB view details)

Uploaded CPython 3.11+Windows x86-64

nexus_engine-0.7.3-cp311-abi3-manylinux_2_38_x86_64.whl (6.2 MB view details)

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

File details

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

File metadata

File hashes

Hashes for nexus_engine-0.7.3-pp311-pypy311_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 be2230e0edafe6a494193073333249ef1e1805331988bd79882514755a7d0b44
MD5 09f7ca364cb8251eababb13a997c8203
BLAKE2b-256 ef9c4e40e3a28dda631a5739f29387939157bf4798e194d72cf58493c3c2ba9d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexus_engine-0.7.3-pp310-pypy310_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 f14bc6ecc97d57176e5c1a28f0823d4aa3441eb7565168e4d4626f2b92bb16bb
MD5 23b51cf22d6e961a446267e59b612165
BLAKE2b-256 f69d3960cf4e56548bdf31400e33c05b2a7bc3e313e790688c00ab514aa10a90

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexus_engine-0.7.3-pp39-pypy39_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 7f08c10fc22a7154d6947a7fae63e7438de5984636aa36207004578178ceca50
MD5 4b9ed95c9ee9a57e0c6c240aa36aa39b
BLAKE2b-256 2bed7b503aabea57d0df827edffedfb2e812b4070230f9f3296172aef55368bd

See more details on using hashes here.

File details

Details for the file nexus_engine-0.7.3-cp314-cp314t-win_amd64.whl.

File metadata

File hashes

Hashes for nexus_engine-0.7.3-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 963f1a445a9d8961de6b27536ef93692543f20c64dada1aeb67f144e6b571786
MD5 6607799c8d3c57873d3d8015b098f742
BLAKE2b-256 92befa5e146dc34fdaf790ce095571ad304cc83baad97d3e6bcdcc5241651b5c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexus_engine-0.7.3-cp313-cp313t-win_amd64.whl
Algorithm Hash digest
SHA256 da0528f495a0ccc34b1b1daac597f33145642a339be001bc3d21fbd1ae1d0c62
MD5 075bec04f9c93e57d13a0094d00a6077
BLAKE2b-256 efb1e2a5d91ba4a4e81514f38d70648da39b87e7160da7e3fcd26b118e6aedfa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexus_engine-0.7.3-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 c7953d5cb970f61840810308600627cb7b80b1d7d2fc9258973a89d17bb178f3
MD5 02bda46fbc6b8440794a05e205872950
BLAKE2b-256 0d2bb3d34663905b19f6174a36dfe83a785852e29f2162d039308e7dd9f6fa36

See more details on using hashes here.

File details

Details for the file nexus_engine-0.7.3-cp311-abi3-manylinux_2_38_x86_64.whl.

File metadata

File hashes

Hashes for nexus_engine-0.7.3-cp311-abi3-manylinux_2_38_x86_64.whl
Algorithm Hash digest
SHA256 939f462ea1e6dba69c7192e424e64beec92ec528cc974f8a7d382ea914bb8d65
MD5 51f13a7915faeb7203a9c82b1a30d851
BLAKE2b-256 a175ea1d5a0201eaf34b974b323be244e68984121c5e748ee210814e1566a51b

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