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.1.tar.gz (15.6 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.1-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fstdb-0.1.1.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.20

File hashes

Hashes for fstdb-0.1.1.tar.gz
Algorithm Hash digest
SHA256 01892c50eb6f684c3436940ed74ca72769810c0fe0940d8f50972a8850c6f302
MD5 d09fccc99431c2a20a32c0bdcc3e35a7
BLAKE2b-256 e72535a3c4f0866a3541ed1527cc6ccc8d79228c058b0ef3b1247443f5fcff98

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fstdb-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 17.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.20

File hashes

Hashes for fstdb-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 46ef153b4ad4b3f4d3fed73ecc9a89b8ea392b92960d02bd420ce2117307d288
MD5 6efd69bf948fa3f1062e8f1197bba2b5
BLAKE2b-256 3477b33f1d8168034a2a673cd0ac92edc4e5cdc22a0c8fdd4ed06606df6a2367

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