Okto Grafx
Embedded, local-first graph database for Python, with concurrent readers and writers, snapshot isolation, WAL-backed durability, verification and fail-closed recovery. No database server is required. The base installation includes NumPy and native CRC-32C; engine/domain mechanisms remain isolated behind ports.
Source version: 0.0.6, pre-alpha — in development. Latest published release: 0.0.5. See the publication receipt. API and persistent-format compatibility must be checked before upgrading; see operations.
Development procedures now support explicit native schema authority, including flexible CREATE/MERGE and catalog-v2 index/DML composition within the caller's transaction. See qualification and the roadmap for remaining parity and deployment work.
Install and start
Development typed collection columns add the types summarized in the consolidated support/refusal matrix. The implementation includes LIST/MAP element types, fixed ARRAY length and named STRUCT fields, including nested nullability, decimals and temporals. Native DDL/writes, schema, history, copy and logical transfer preserve descriptors. Exact JSON/CSV/JSONL/SQLite collection interchange now uses explicit schemas/tags and whole-call rollback. Exact nested columnar interchange adds Arrow/Pandas/Polars/Parquet with owned descriptors, full type metadata and bounded atomic imports. Installed type readers and native label-format readers are qualified for their recorded candidates. The complete V3 query profile passes all 3,896 required cases; final integrated delivery status remains in the roadmap.
The final complete regression passes 25,077 tests with 19 attributed skips and all 20 native supplemental maps. Isolated installed Pulse API/UI/MCP checks also pass. Neo4j comparative execution was explicitly deferred by the user and does not block this delivery; this is not a released version, full upstream conformance or an unrestricted Cypher claim.
The 0.0.6 development line also has native decimal storage.
It includes exact decimal query arithmetic, aggregation, ordering/grouping and typed
equality-index seeks, plus exact history/copy/logical transfer.
CLI JSON, typed local text/SQLite imports and registered procedure values now have
an exact decimal interface contract.
Arrow, Pandas, Polars and Parquet also support
exact decimal128 interchange
through ArrowDecimalType(p,s), with explicit metadata and atomic native imports.
The combined type-package qualification
covers installed codecs, durable recovery and old-reader refusal. Supported and
refused consumers are explicit in the type matrix; this is not full Cypher parity.
Python 3.11–3.13; local Windows and POSIX filesystems.
pip install okto-grafx
This installs the release available from your configured package index. For this
source revision, use pip install -e ".[dev,accel]" in a checkout. okto-grafx
is the distribution name; okto_grafx is the Python import; oktografx is the CLI.
Since 0.0.5, native CRC-32C and NumPy are base dependencies.
The [accel] name remains a compatibility alias. New connections default to
codec="numpy", vector_math="numpy" and checksum="auto". Explicit pure
selectors remain available; vector auto retains its existing pure semantics.
Earlier published releases may still require [accel] and explicit NumPy selectors.
from okto_grafx import connect
with connect(":memory:") as db:
with db.begin("write") as txn:
txn.execute("CREATE NODE TABLE Person(id INT64, name STRING, PRIMARY KEY(id))")
txn.execute("CREATE (:Person {id: $id, name: $name})", {"id": 1, "name": "Ada"})
result = db.execute("MATCH (p:Person) RETURN p.id, p.name")
assert result.rows == ((1, "Ada"),)
Use a directory instead of :memory: for persistent data. db.execute() is a
read-only autocommit door; writes use explicit transactions. A normal transaction
context exit commits, and an exceptional exit rolls back. See
the integration tutorial for relationships and durable reopen.
What is available
| Capability | Consumer documentation |
|---|---|
| Native temporal constructors, scoped clocks, fields, arithmetic/order and typed/ANY stored values (0.0.6 development) | Temporal values, query usage and qualified consumers |
| Bounded position results/proximity, atomic analyzer replacement, endpoint-closed copy (0.0.6 development) | Text contracts, copy |
| System-time diff, optional persistent temporal access tree and quiescent history compaction (0.0.6 development) | History usage, limits and maintenance |
| Native opt-in system-time history, typed as-of/versions, pins and bounded retention (0.0.6 development) | Temporal APIs and operations |
| Durable positional phrase postings and explicit catalog/workspace CLI inventory (0.0.6 development) | FTS, CLI |
| Opt-in page-local repeated-key posting indexes (0.0.6 development) | Posting hash |
| Exact analyzed phrase search with bounded same-snapshot candidate verification (0.0.6 development) | Phrase semantics and limitations |
| Bounded existing-target copy with atomic data/receipt and indexed idempotent replay (0.0.6 development) | Catalog copy |
| Durable typed logical read views with atomic replacement and snapshot execution (0.0.6 development) | Logical views |
| Append nullable columns with explicit old-row layouts and no heap rewrite (0.0.6 development) | Schema evolution |
| Named catalog-pinned transactions and optional bounded workspace resolution (0.0.6 development) | Catalogs and workspace policies |
| Opt-in sparse hash directories, bounded repeated-key decoding and indexed retired-page discovery (0.0.5 development) | Index layouts, operations |
| Explicit trusted typed scalar UDFs and optional scalar/vector Arrow batches; exact temporal struct transport added in 0.0.6 development | Extensions and Arrow, compatibility evidence |
| Explicit Arrow-backed Pandas/Polars frames and bounded local Parquet import/export (0.0.5 development) | Tabular interoperability |
| Typed bounded CSV/JSONL readers and whole-call atomic staging; exact temporal tag ingestion added in 0.0.6 development | Local text ingestion |
| Detached NetworkX multigraph and node/edge/result Arrow batch export (0.0.5 development) | Graph exchange |
| Bounded prefix search and full-text over relationship properties (0.0.5 development) | Full-text options and upgrade contract |
| Batched weighted projections; reusable identity/CSR/transition/simple topology, WCC/SCC, BFS/Dijkstra, personalized PageRank with opt-in NumPy, linear k-core and label propagation (0.0.5 development) | Graph projections, scan contract |
| Configurable repeated-key cache, batched sparse heads and aggregate HNSW admission (0.0.5 development) | Memory and maintenance |
| Multi-process/multi-thread access, snapshot transactions, optimistic conflicts and writer fencing | Concurrency and recovery |
| Typed/flexible nodes and relationships, native heterogeneous properties, zero/one/multiple labels, bounded polymorphic paths, OPTIONAL MATCH and read/write/unit UNION | Supported query language, entity values |
Atomic executemany, streaming results and snapshot-bound physical scan cursors |
Integration recipes |
| Automatic PK/endpoint/identity indexes; custom hash/ordered indexes; foreground rebuild/rehash | Indexes and vectors |
| Exact and approximate vector search with declared space, metric and precision | Indexes and vectors |
| 0.0.6 development: table-qualified shared-space vector/hybrid retrieval, typed vector SET and collision-free durable owner names | Physical vector ownership, durable naming and qualification |
| 0.0.6 development: owner-qualified vector memory/rebuild operations, detached physical IDs and explicit missing-index repair | Maintenance contract, legacy repair qualification |
| Native full-text indexes, versioned analyzers, weighted BM25 and bounded snapshot search (0.0.5 development) | Full-text search |
| Snapshot-consistent weighted RRF text/vector fusion with bounded graph evidence (0.0.5 development) | Hybrid search |
| Indexed hybrid BFS, aggregate search-memory diagnostics and cooperative vector controls; opt-in durable FTS totals (0.0.5 development) | Hybrid contracts, FTS modes |
| Per-picture HNSW memory admission/diagnostics and bounded durable historical FTS totals (0.0.5 development) | Vector memory, historical totals |
| Explicit hash directories up to 65,536 buckets and bounded, key-private skew diagnostics (0.0.5 development) | Index sizing |
| Versioned additive application migrations, checksum ledger and read-only dry-run (0.0.5 development) | Schema migrations |
| Opt-in durable commit provenance, qualified lookup and snapshot-paged history (0.0.5 development) | Commit history |
| Query/transaction budgets, optional spill, acceleration and metrics | All configuration fields |
| Verification, evidence ledger/quarantine, recovery/checkpoint, manual vacuum and WAL compression | Operations |
| Bounded physical backup and verified offline replacement restore (0.0.5 development) | Backup and restore |
| Streaming logical export/import, opt-in crash resumption, fresh identities and verified promotion (0.0.5 development) | Logical transfer |
| Cooperative read cancellation/deadlines and quiescent orphan-index inventory/removal (0.0.5 development) | Read control and cleanup |
| Embedded Python, machine-readable CLI, configurable ports/adapters | API, CLI, ports |
| 0.0.6: CLI schema/index inventory and text/vector/hybrid search; JS/TS recipe | CLI and contracts |
| 0.0.6: native scalar/list expressions, ordered clauses, multi-branch read/write and unit UNION, returning/read-write and unit writing subqueries, explicit/wildcard/leading-WITH imports, typed CALL/YIELD (development) | Composable queries, updating UNION, import scopes, compatibility |
| 0.0.6: trusted unit procedures, no result columns, input-cardinality preservation and statement rollback (development) | Unit CALL contract, complete native profile and follow-up |
| 0.0.6: explicit writing procedures, short-lived mutation capability, shared budgets and outer-statement rollback (development; bounded DML door) | Writing procedure contract, qualification |
| 0.0.6: native temporal, LIST/MAP/ANY and vector procedure signatures with bounded ownership and transactional persistence (development) | Native value signatures, qualification |
| 0.0.6: NODE/RELATIONSHIP/PATH procedure signatures and typed entity lists with invocation-scoped native identity (development) | Entity signatures and usage, qualification |
| 0.0.6: permissioned procedure readers and native returning-query authority with shared budgets, snapshot and rollback (development) | Query authority API, qualification |
| 0.0.6: recursive native CALL with inherited depth/root budgets and explicit callback determinism (development) | Nesting and effects, qualification |
| 0.0.6: standalone CALL with declared implicit argument names, automatic/wildcard outputs and native signature diagnostics (development) | Invocation contract, qualification |
| 0.0.6: NUMBER procedure inputs/results and validated integer-to-DOUBLE widening; all 52 original procedure cases pass (development; writing/query/schema authority documented above) | Numeric signatures and qualification |
| 0.0.6: bounded SQLite ingestion, offline HTML viewer, topological ordering | SQLite, HTML, algorithms |
Concurrent transactions do not imply lock-free commits: publication has an exclusive section, different rows can conflict on physical pages, and operations may wait or time out. Recovery repairs only states that the WAL and durable identity prove safe; it does not silently rebuild or discard damaged authoritative data.
There is no native async/HTTP/MCP server, SQLAlchemy backend, valid-time/bitemporal API or no-pause streaming hot-backup API in this release surface. Proposed capabilities are explicitly separated in the roadmap.
Current measured performance
Latest recorded real-consumer sample: September 8, 2026, Grafx
0.0.4@fa8f188 with [accel], Pulse 0.3.3, Windows/Python 3.13. This is not a
benchmark of the later GX-CAP-1 recovery checkpoint or a universal latency promise.
| Operation / workload | Observed time | Boundary |
|---|---|---|
| Consolidation commit, 11 new nodes / 22 edges | 10.726 s | Full Pulse MCP call, not native commit only |
| Global delivery of that commit | 54.952 s | Outbox creation to processed ACK; includes scheduling/verification |
| Exact readback of the 11 nodes | 0.376 s | MCP call; executor 91.1 ms |
| Readback of 11 judgement links / 11 source links | 0.408 / 0.182 s | Separate MCP calls |
| Exact-title natural retrieval | 2.709 s | One query; not broad-query recall/latency |
These are one-sample observations, not p50/p99 statistics or an identical-input comparison with Ladybug. Latest full KG UI cold/warm latency at the current source checkpoint is not measured. Native component measurements and their limitations are in performance; no marginal timing gate blocks delivery.
Documentation
Start with the documentation index. It separates tutorials, consumer references, operational procedures, implementation specifications and historical evidence; integrating the library does not require reading the latter.
- Getting started
- Integration: services, workers, cursors and agents
- Public API and result types
- Configuration
- Query language
- Native temporal values: query functions, operators, Python API and persistence
- Composable queries, CALL/YIELD and migration semantics
- Fixed Cypher compatibility target and TCK evidence
- Operations, concurrency, errors and upgrades
- Performance and measurement boundaries
- Feature comparison: Grafx vs Ladybug vs Neo4j
- Roadmap: evolution, known limitations and corrective work — the sole active backlog
- Changelog, contributing, security
- Repository governance and public-release checklist
Deployment and license
The host application owns authorization, input policy and filesystem permissions. Do not place live database files on cloud-sync/network filesystems or replace them while participants are using them. OpenMetrics has no authentication/TLS; remote binding requires explicit consent. See operational safety.
Licensed under Elastic License 2.0 with the SaaS/Branding Addendum. This is a custom, source-available license, not unmodified ELv2 and not an OSI-approved open-source license. The addendum remains part of the terms; making the repository public does not remove it. Check the complete license before embedding, redistributing or offering a hosted service.
Metadata
Release files for okto-grafx 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| okto_grafx-0.0.6.tar.gz | 1.7 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| okto_grafx-0.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.4 MB
Release files / okto_grafx-0.0.6.tar.gz
| Download URL | okto_grafx-0.0.6.tar.gz |
|---|---|
| Size | 1.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d2623e1c76578efcc21ca59c51321a5a0c57b4eceac4d6da0f3f6680f872e7f
|
|
BLAKE2b-256 checksum How to use checksums |
af4dd6eb8a7172feb51d4b21878a29e27029166a3820e54e6ba78708f383960b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.1
|
Release files / okto_grafx-0.0.6-py3-none-any.whl
| Download URL | okto_grafx-0.0.6-py3-none-any.whl |
|---|---|
| Size | 1.8 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0b98a1f9b20f68b88e9f8d53b655539b9a92fc7b667b2284c5a0361166382c46
|
|
BLAKE2b-256 checksum How to use checksums |
5b8a31725f452ba875527ec85fbec4e45428512be5a9cf8d6cecc43f38fed07d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.1
|