A favicon of Pickledb

Pickledb

Store key-value data easily in Python with this lightweight, file-based library. Offers simple API, fast performance, and asynchronous support.

Visit Pickledb
A screenshot of PickledbVisit

pickleDB is a lightweight, simple, and fast key-value store written in Python. It offers asynchronous support and is designed for high performance, drawing inspiration from Redis. Its API is straightforward, making it easy to integrate into Python projects for basic, file-based data persistence needs without requiring a separate database server.

Key features include:

  • Simple set, get, rem operations.
  • Atomic saving (dump).
  • BSD 3-clause license.

Getting started is simple:

import pickledb

# Load or create database
db = pickledb.load('mydatabase.db', False)

# Set a key-value pair
db.set('mykey', 'myvalue')

# Get value
value = db.get('mykey')
print(value) # Output: myvalue

# Save changes
db.dump()

Installation is just a pip command away: pip install pickledb. It's a practical choice when you need a basic, file-based key-value store without the overhead of a full database system.

Categories:

Tags:

Share:
Featured tools:

Similar to Pickledb:

Native object persistence for Python applications.
DatabasesPython
Store Python objects directly in a transparent, ACID-compliant object-oriented database. Requires minimal code changes for native object persistence.
Visual profiler for Python
DebuggingProfiling+1 more
Python package providing rich and interactive visualizations for various Python program characteristics such as running time and memory usage.
Simple, lightweight document database for Python apps.
DatabasesPython
Use a lightweight, pure Python document database for small applications. Offers a simple API, no external dependencies, and easy extensibility.
Pythonic SQL toolkit and ORM for flexible database access.
ORMsPython
Access databases in Python with a powerful SQL toolkit and Object Relational Mapper. Gain full SQL flexibility and high-performance persistence patterns.
Create intelligent, beautiful, and linked documentation.
DocumentationPython
Generate versatile, cross-referenced technical documentation from reStructuredText or Markdown. Supports multiple output formats, themes, extensions, and API docs.
Async database access for Python with validation.
ORMsPython
An async Python ORM supporting Postgres, MySQL, and SQLite. Built with SQLAlchemy core, Databases, and Pydantic for validation and migrations.
Flexible toolkit for Python code tracing and debugging.
DebuggingPython
Trace Python code execution with powerful filters and custom actions. Debug, log, and inspect code behavior without complex setup or storage.
Database abstraction without the ORM overhead.
ORMsPython
Write database-agnostic Python code. This pure Python DAL dynamically generates SQL/NoSQL, mapping records to dictionaries for simpler data access.
Profile live Python code safely, with minimal overhead.
DebuggingProfiling+1 more
Profile running Python programs with extremely low overhead. Visualize time spent without restarting or modifying code. Safe for production environments.

Command Menu