Skip to main content

A Python interface for the MeowDB in-memory database server.

Project description

MeowDB Python Library

This library provides a Python interface for the MeowDB in-memory database server.

Features

  • Create: Add a new key-value pair to the database.
  • Insert: Insert or update a key-value pair.
  • Select: Retrieve the value associated with a key.
  • Update: Modify the value of an existing key.
  • Delete: Remove a key-value pair from the database.
  • Hello: A simple command to test the library connection.

Installation

You can install this library by running pip install meowdb

Usage

from meowdb import MeowDB

# Connect to the MeowDB server
db = MeowDB(host='localhost', port=6969)

print(db.hello())  # Test the connection
print(db.create("mykey", "myvalue"))  # Create a new key-value pair
print(db.select("mykey"))               # Retrieve the value for 'mykey'
print(db.update("mykey", "newvalue"))  # Update the value for 'mykey'
print(db.select("mykey"))               # Retrieve the updated value
print(db.delete("mykey"))               # Delete the key-value pair for 'mykey'

# Close the connection when done
db.close()

Command Descriptions

  • create : Create a new key-value pair.
  • insert : Insert or update a key-value pair.
  • select : Retrieve the value associated with a key.
  • update : Update the value of an existing key.
  • delete : Delete a key-value pair.
  • hello: Test the server connection.

License

This project is licensed under the 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

meowdb-0.1.3.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

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

meowdb-0.1.3-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: meowdb-0.1.3.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for meowdb-0.1.3.tar.gz
Algorithm Hash digest
SHA256 8a9f7d85bdce78ca2dff579af142cd2a4d712834fc7d8f138f77c76f3ccca166
MD5 2a759fc2e6fffff16292ab9fe2d4c4fd
BLAKE2b-256 d609936b3cc8272ffce8e6855fc046534637bfc1f3be1e02a1796d9f2e7cfa9b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: meowdb-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for meowdb-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9f42d87f4b3a1e21cf4af08982cd7a0fefce9ad9b7e5c3ebe0a7c7f6dc78f889
MD5 6bc72356a8af2012fb134ab1ea76715e
BLAKE2b-256 926489cdbc36e0682759eb6b9b353e0146056069a75640d865afffc652c6d64a

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