Skip to main content

File System Database - A simple file-based database library

Project description

FSTDB - File System Database

A simple file-based database library for Python.

Installation

pip install fstdb

Usage

from fstdb import FSTDB

# Initialize database
db = FSTDB("my_database")

# Set a value
db.set("user:1", {"name": "John", "age": 30})

# Get a value
user = db.get("user:1")
print(user)  # {'name': 'John', 'age': 30}

# Check if key exists
if db.exists("user:1"):
    print("User exists!")

# Get all keys
all_keys = db.keys()

# Delete a key
db.delete("user:1")

# Clear all data
db.clear()

Features

  • Simple key-value storage
  • JSON-based storage
  • Thread-safe file operations
  • Easy to use API

License

MIT License

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

fstdb-0.1.7.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

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

fstdb-0.1.7-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file fstdb-0.1.7.tar.gz.

File metadata

  • Download URL: fstdb-0.1.7.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for fstdb-0.1.7.tar.gz
Algorithm Hash digest
SHA256 58d23b65b462b85989abbd32be13cfc421965db39cada223dc67496652f34f83
MD5 ce489edcb549af242bc4434eb72408a1
BLAKE2b-256 9127ea295ca6aeeee1cb772e7623660a39107432947baa5a18feafb03240fe38

See more details on using hashes here.

File details

Details for the file fstdb-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: fstdb-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 18.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for fstdb-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 e97314c12143fe5a855b77b11618b598bb83e8a6d103df766aa54dd32126d37c
MD5 a1155726b2938f8554bd2aee8466dd6b
BLAKE2b-256 f93d615e7c62643b2979ce005e0077f1a8f033009a6d9f1185a8433010aea9a7

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