sqlitedict
Persistent dict in Python, backed up by sqlite3 and pickle, multithread-safe.
Decision gist · record as of 2026-08-14
No. The package is abandoned (last commit 1350 days ago) with two unpatched known vulnerabilities and no maintenance signal. While the code is stable for simple use cases, the lack of active maintenance and security patches makes it unsuitable for new projects or production systems. Consider alternatives like `shelve` (stdlib), `diskcache`, or a proper database library instead.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires explicit commit() calls to persist changes unless autocommit=True is set; uncommitted data is lost on close.
- High install friction with no runtime dependencies.
- The package is marked abandoned (last commit 2022-12-07, 1350 days ago) despite being marked Production/Stable.
License · maintenance · safety
Apache 2.0 (permissive) — Apache 2.0 is permissive; you can use this in commercial projects and modify it freely, but must include a copy of the license and state significant changes.
last release 2022-12-03 (1350 days) · last repo commit 2022-12-07 · 1,244 stars
2 known vulnerabilities (OSV.dev, 2026-08-14) · 1,818,385 downloads/mo, #3,519 on PyPI
Alternatives
Verify before relying
from sqlitedict import SqliteDict
db = SqliteDict('example.sqlite')
db['key'] = {'data': 'value'}
db.commit()
print(db['key'])
db.close()- Whether the two known vulnerabilities (GHSA-g4r7-86gm-pgqc, PYSEC-2026-1939) affect your use case or have workarounds.
- Current maintenance status and whether the project has been forked or adopted elsewhere.
- Performance characteristics with large databases or high write concurrency in your specific workload.
What it is and what it does
SqliteDict wraps Python's sqlite3 module to present a persistent dictionary interface backed by SQLite files. Instead of storing data in RAM, you get a dict-like object that reads from and writes to a SQLite database, making it suitable for caching, configuration storage, or small-to-medium persistent key-value needs that don't require a separate database server.
The package handles serialization (pickle by default, but JSON or custom codecs are supported), supports multiple named tables in a single database file, and provides multi-threaded access by serializing concurrent writes internally. Keys are strings; values can be any picklable Python object. You must explicitly call commit() to persist changes unless autocommit mode is enabled.
Use it for
- Cache application state or computed results to disk without running a separate database service.
- Store configuration or session data as Python objects without manual serialization.
- Persist large collections that exceed available RAM by using SQLite's disk-backed storage.
- Share data across multiple threads in the same process while avoiding sqlite3's thread-safety limitations.
- Prototype or test applications that need persistent storage before migrating to a full database.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
The package is abandoned (last commit 1350 days ago) with two unpatched known vulnerabilities and no maintenance signal. While the code is stable for simple use cases, the lack of active maintenance and security patches makes it unsuitable for new projects or production systems. Consider alternatives like `shelve` (stdlib), `diskcache`, or a proper database library instead.
Install
sqlitedict on PyPI
Before you install
High install friction with no runtime dependencies. The package is marked abandoned (last commit 2022-12-07, 1350 days ago) despite being marked Production/Stable. Two known vulnerabilities (GHSA-g4r7-86gm-pgqc, PYSEC-2026-1939) are unpatched.
Requires explicit commit() calls to persist changes unless autocommit=True is set; uncommitted data is lost on close.
License in practice
Apache 2.0 is permissive; you can use this in commercial projects and modify it freely, but must include a copy of the license and state significant changes.
Quickstart
from sqlitedict import SqliteDict
db = SqliteDict('example.sqlite')
db['key'] = {'data': 'value'}
db.commit()
print(db['key'])
db.close()
Verify before relying
- Whether the two known vulnerabilities (GHSA-g4r7-86gm-pgqc, PYSEC-2026-1939) affect your use case or have workarounds.
- Current maintenance status and whether the project has been forked or adopted elsewhere.
- Performance characteristics with large databases or high write concurrency in your specific workload.
Package facts
| License | Apache 2.0 permissive |
| Python support | Not specified |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Abandoned 1,350 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,818,385 / month, #3,519 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | 2 GHSA-g4r7-86gm-pgqc, PYSEC-2026-1939 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Database :: Front-Ends |
Evidence: sqlitedict-2.1.0.tar.gz
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “sqlite persistent dictionary”
- sqlitedictProvides a dict-like interface to SQLite databases, allowing you to…
- historydictHistoryDict provides a persistent dictionary backed by SQLite that…
- persist-queueProvides thread-safe, disk-based queue implementations using file…
Give your agent the search over MCP, or paste the wish link into any chat.
More Front-Ends packages
SQLAlchemy is a Python SQL toolkit and Object Relational Mapper (ORM) that provides both a high-level ORM layer for declarative object persistence and a Core SQL construction system for direct database abstraction and query building.
psycopg2-binary is a PostgreSQL database adapter for Python that implements the DB API 2.0 specification, enabling Python applications to connect to and query PostgreSQL databases with thread-safe concurrent operations.
Alembic generates and manages database schema migrations for SQLAlchemy applications, handling version control of database structure changes with support for upgrades, downgrades, and auto-generation from model changes.
Install it if you use SQLAlchemy and need to version-control schema changes; skip it only if you manage migrations manually or use a different ORM entirely.
A Python client library for connecting to and querying Weaviate, a vector database that enables semantic search and AI-powered data retrieval.
A Python client library that connects to Databricks clusters and SQL warehouses using a Thrift-based protocol, conforming to the Python DB API 2.0 specification and supporting Arrow-based data exchange.
Install it if you need to query Databricks clusters or SQL warehouses from Python.
Psycopg 3 is a PostgreSQL database adapter for Python that enables applications to connect to, query, and manage PostgreSQL databases using Python code.
Install it if you need to connect Python to PostgreSQL.
See also historydict · speedict · rocksdict · persist-queue · aiosqlite · plyvel · apswutils · apsw · plucky · pickleshare