Skip to main content

A python client for the Keva Database

Project description

Keva

Downloads

Keva is a simple Key-Value database. Learn more about it here : https://keva.pancakedev.repl.co
This package is a ptyhon client to make interacting with the database even simpler than it already is

Usage

This package is a wrapper for using the Keva API, so you basically have all the endpoints in functions.

import keva

keva.db_key = "ddPpkgsPsnSd5xF6" # Enter your Keva database key here

keva.set("name", "gugu256") # Sets a new key-value pair in your database
keva.set("age", 29) # The type is automatically detected, so no need to specify it

name = keva.get("name") # Gets a certain key in your Keva database and returns its value
print(name)

keys = keva.get_keys() # Fetches all the keys of your Keva database and returns them in a list
print(keys)

database = keva.get_entire() # Returns your entire Keva database as a dictionary
print(database)

keva.delete("age") # Deletes a key out of your Keva database

keva.reset() # Resets your entire Keva database to zero (or in other terms, just {} )

And that's it!

Now you understand why I call it a beginner-friendly database ;)

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Keva-0.1.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

Keva-0.1-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page