CodernityDB

discontinued

by Codernity · since 2012 · also known as Codernity DB

Pure-Python embedded NoSQL database with pluggable hash and B+tree indexes; abandoned since 2015.

documentkey-valueembedded libraryopen source (permissive)legacy

discontinued. Abandoned: last release 0.5.0 (July 2015, Python 2 only); the original repository and website are gone.

Overview

CodernityDB was an open-source, schema-less database written entirely in Python by the Polish company Codernity. It stored Python dictionaries as documents and let you define indexes as Python classes, choosing a hash or B+tree structure and writing the key-making function yourself, which made it unusually flexible for an embedded store with no native dependencies. An optional HTTP server mode exposed the same operations over the network. The last release, 0.5.0, came out in July 2015 and supports only Python 2; the original Bitbucket repository no longer exists and the project domain now hosts unrelated content. A community fork, CodernityDB3, made a single Python 3 release in 2020. New Python projects should use SQLite, TinyDB or LMDB instead.

Strengths & trade-offs

Strengths

  • +No native dependencies: pure Python, installable anywhere CPython 2 runs
  • +Indexes are Python classes, so keys can be computed by arbitrary code
  • +Choice of hash or B+tree structure per index

Trade-offs

  • −Last official release supports Python 2 only
  • −Unmaintained since 2015; the source host and website are gone
  • −No transactions or replication
  • −Pure-Python storage is slow next to C-backed stores

Great for

  • +Maintaining legacy Python 2 applications that embed it
  • +Studying index design in a small pure-Python database

Think twice for

  • −New projects
  • −Python 3 environments (without the community fork)
  • −Concurrent multi-process writes

Capabilities

Native or official first-party support · 2 of 25 tracked

✓Secondary indexes
✓Durable persistence
–Transactions
–Joins
–Full-text search
–Vector search
–Geospatial
–JSON
–Change data capture
–Triggers
–Stored procedures
–Materialized views
–TTL / expiry
–Pub/Sub
–Columnar storage
–In-memory
–Compression
–Encryption at rest
–Role-based access
–Time travel
–Branching
–Online schema changes
–Streaming ingest
–Offline sync
–Runs in WebAssembly

Scale & consistency

Comfortable data size
Small · ≤ 100 GB
Horizontal scaling
None
Multi-region
No
Transactions
None
Consistency
Strong
Schema
Schemaless
Architecture
Embedded, Client server
Query languages
Python API

Deployment

Self-hosted Vendor-managed cloud Serverless Embedded Edge Kubernetes operator

Ecosystem

apis & protocolsPython API, HTTP server mode
client languagesPython

Alternatives to CodernityDB

Compare all→
TinyDBDocument21.3

Pure-Python document store that keeps every table in one human-readable JSON file.

codernitydb vs tinydb →
SQLiteRelational75.5

The in-process SQL engine that ships in every phone, browser and OS: one file, zero servers.

codernitydb vs sqlite →
ZODBObject22.7

Transparent persistence for Python objects with ACID transactions and history.

codernitydb vs zodb →
UnQLiteKey-Value4.1

Embedded, transactional key-value and JSON document engine in a single C file, with Jx9 scripting.

codernitydb vs unqlite →
LMDBKey-Value39.7

Tiny memory-mapped B+tree with ACID transactions and lock-free readers; reached 1.0 in 2026.

codernitydb vs lmdb →
Dexie.jsDocument25.8

The most popular IndexedDB wrapper, with live queries and an optional Dexie Cloud sync service.

codernitydb vs dexie →

CodernityDB FAQ

What is CodernityDB?

CodernityDB is a document database by Codernity, first released in 2012. CodernityDB was an open-source, schema-less database written entirely in Python by the Polish company Codernity. It stored Python dictionaries as documents and let you define indexes as Python classes, choosing a hash or B+tree structure and writing the key-making function yourself, which made it unusually flexible for an embedded store with no native dependencies. An optional HTTP server mode exposed the same operations over the network. The last release, 0.5.0, came out in July 2015 and supports only Python 2; the original Bitbucket repository no longer exists and the project domain now hosts unrelated content. A community fork, CodernityDB3, made a single Python 3 release in 2020. New Python projects should use SQLite, TinyDB or LMDB instead.

Is CodernityDB open source?

Yes. CodernityDB is open source. License: Apache License 2.0.

Does CodernityDB support ACID transactions?

No. CodernityDB does not provide ACID transactions; its consistency model is strong.

Does CodernityDB scale horizontally?

CodernityDB does not scale horizontally; it runs on a single node, so you scale it up rather than out. It is comfortable at small scale (≤ 100 GB).

How can I run CodernityDB?

You can self-host it and embed it in your application.

What is CodernityDB best for?

CodernityDB is a strong fit for maintaining legacy Python 2 applications that embed it and studying index design in a small pure-Python database. Think twice for new projects.

What are the best alternatives to CodernityDB?

Common alternatives to CodernityDB include TinyDB, SQLite, ZODB, UnQLite and LMDB. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

Is CodernityDB still maintained?

CodernityDB is discontinued. Abandoned: last release 0.5.0 (July 2015, Python 2 only); the original repository and website are gone.

How popular is CodernityDB?

CodernityDB ranks #584 of 844 databases on the WhichDB Score (1.0/100), and #52 among document databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.