Skip to main content

Official Python SDK for DOLAS Lab — universal-substrate reasoning API

Project description

dydact-lab

Official Python SDK for DOLAS Lab — universal-substrate reasoning API.

Zero-parameter, zero-training geometric compilation across domains: symbolic math, constraint satisfaction (Sudoku, SAT), chemistry (SMILES), and circuit equivalence — all served from a single op-routed endpoint.

pip install dydact-lab

Quickstart

from dydact_lab import Lab

lab = Lab(api_key="sk-dol-...")           # or set env DOLAS_API_KEY

# Math — LaTeX, sympy, or Python syntax
r = lab.math.evaluate("sqrt(3**2 + 4**2)")
print(r.result["value"])                   # → 5.0

# Sudoku — any perfect-square N (4, 9, 16, 25)
grid = [[5,3,0,0,7,0,0,0,0], ...]
r = lab.sudoku.solve(grid)
print(r.result["solved"], r.elapsed_ms)    # → True, ~30 ms

# Chemistry — SMILES → geometric signature + zero-shot properties
r = lab.smiles.encode("CN1C=NC2=C1C(=O)N(C(=O)N2C)C")  # caffeine
print(r.result["properties"]["molecular_weight"])

# Circuit equivalence — ISCAS'85 .bench format
r = lab.circuit.equivalence(bench_a, bench_b)
print(r.result["equivalent"])

# Boolean SAT — CNF as list of [(var_idx, negated), ...]
clauses = [[(0,False),(1,True),(2,False)], [(0,True),(1,False),(2,True)]]
r = lab.sat.solve(clauses, n_vars=3)
print(r.result["sat"], r.result["assignment"])

Async

import asyncio
from dydact_lab import AsyncLab

async def main():
    async with AsyncLab(api_key="sk-dol-...") as lab:
        r = await lab.math.evaluate("2+2")
        print(r.result["value"])

asyncio.run(main())

Capability discovery

lab.ops()    # → list of all ops + schemas supported by the deployed backend

Unified compute (low-level)

Every namespace call routes through the same single endpoint:

r = lab.compute("math.evaluate", {"math": "2+2"})

This is by design — minimizes API surface, makes adding new ops a backend-only change.

Reproducibility

Every response includes a trace_id (SHA-256 of op + input + options) you can cite in publications. The compiler is deterministic given input + seed.

Tiers + auth

  • Academic — free for verified .edu researchers (citation required)
  • Pro Researcher — $79/mo
  • Lab Enterprise — $2,500/mo
  • DOLAS Strategic — contracted

Sign up: https://lab.dydact.io/signup

License

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 Distribution

dydact_lab-0.1.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dydact_lab-0.1.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file dydact_lab-0.1.0.tar.gz.

File metadata

  • Download URL: dydact_lab-0.1.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for dydact_lab-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bfc4e99283add1aeaa2dd22edd184923f19dcb30f961ebfbc9fff0185aac6731
MD5 0e2a8dbf851ea4ae86d5e5e9c0f60a97
BLAKE2b-256 bec79bdeecf707dd7a70ac64d6877b118305c729bbbe54b959d87f7fd08a5c45

See more details on using hashes here.

File details

Details for the file dydact_lab-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: dydact_lab-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for dydact_lab-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3ec5a737a4490fa658da29d4ea4193c7f8a80573cc1fc8e70f8fadcbc0f670ec
MD5 e694b180d0b6a77facff4cd75f26bb09
BLAKE2b-256 c9c53e8eeb83ebfdd13c8e2d96cf56d3402dbf9746d2db64aa33d34684f5f57c

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