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.3.tar.gz (15.5 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.3-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fstdb-0.1.3.tar.gz
  • Upload date:
  • Size: 15.5 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.3.tar.gz
Algorithm Hash digest
SHA256 046351f3fd4560a91e53438ecdb9c63fb8b61f2a29e7984cf790e0c65562a89a
MD5 4d7977e8ffad7059fa6578c056ce1b5c
BLAKE2b-256 cc5576e2540321b529717deb6cdd783dbde9da0066b35f9e6af534a975ac04ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fstdb-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 17.3 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2f863bd282b75f582ee6af13de0578dcf80eb58a33c9150224f99120a8022e49
MD5 e5cbccfca2de26bd3d638e936f1e77bb
BLAKE2b-256 663b5ce8a12ef5bb595212105e39a102d51fc82e4458063ae29407c1ddab5246

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