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

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"},
    api_token="YOUR_API_TOKEN",
)
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.6.0-pp311-pypy311_pp73-win_amd64.whl (1.9 MB view details)

Uploaded PyPyWindows x86-64

nexus_engine-0.6.0-pp310-pypy310_pp73-win_amd64.whl (1.9 MB view details)

Uploaded PyPyWindows x86-64

nexus_engine-0.6.0-pp39-pypy39_pp73-win_amd64.whl (1.9 MB view details)

Uploaded PyPyWindows x86-64

nexus_engine-0.6.0-cp313-cp313t-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.13tWindows x86-64

nexus_engine-0.6.0-cp39-abi3-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.9+Windows x86-64

nexus_engine-0.6.0-cp39-abi3-manylinux_2_34_x86_64.whl (4.3 MB view details)

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

File details

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

File metadata

File hashes

Hashes for nexus_engine-0.6.0-pp311-pypy311_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 dfcbb5f724056392d0f961dc1347aa71f2e91a4474ce8445f6022f46834d780b
MD5 11b04ba13dcdaddab9ec00f998b97b02
BLAKE2b-256 a0b96635ef2a7be08b936e60994b47d3bac6a0535bfcb8210b27d71b14d7d03a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexus_engine-0.6.0-pp310-pypy310_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 22c7f4f90fdaf7198618e340b8a90582308a4081d77333cbaca6cc300cc67685
MD5 5936f592d8d33f4d0efb4cb9bf79e321
BLAKE2b-256 41fb83d621dce8c48c60129772ca105d056fccfe839e8ed10806a714dd845c63

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexus_engine-0.6.0-pp39-pypy39_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 d1977a0e68526e6df5022b1484392eb55540a347e5d7bc454061b1834ee56ba2
MD5 c6493d21184bce573969f320b97f114d
BLAKE2b-256 988a0869912b8c7c296c0dbc2fe1db338dde91c9a6ab6f38efaeb463af424ae6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexus_engine-0.6.0-cp313-cp313t-win_amd64.whl
Algorithm Hash digest
SHA256 27b711f6310c3d19972758fe39517cdb192d50cf7e0be2e4067ae44c7347e1c7
MD5 ef8647f781b2b12358df8804fb7a82b8
BLAKE2b-256 beefa639285b9c1eff5831ec3c1b7b68ac235e7f9c4dbeeb3bba0ecabdc67ef3

See more details on using hashes here.

File details

Details for the file nexus_engine-0.6.0-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: nexus_engine-0.6.0-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.9+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for nexus_engine-0.6.0-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 82562307f73eb0b2bc601965c29a34a1538701cab276635fb77f4c429735fa44
MD5 df85f07c071862e1efa8c57b646ef5ea
BLAKE2b-256 edfbd7a9d59b469582995c0444f03df58050dc8fe7ad22339af361584c4ea503

See more details on using hashes here.

File details

Details for the file nexus_engine-0.6.0-cp39-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for nexus_engine-0.6.0-cp39-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 eaf92547ef804faacf053c58601b29def77a82f949cc621d8a1167853f1965ea
MD5 2f0c7ad5b0c8eb4a849ebe038a0b880b
BLAKE2b-256 92b2b8fdb6f318a8062fbf22bd198be0b05b9341d38ef4a998243165caed3845

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