Skip to main content

DB1 Python client

Project description

DB1

Store one item in the cloud with one line. No login. Share, visualize and embed live view in Notion.

Getting started

DB1 is like a global python dict. Upload anything, access anywhere. For Javascript client, CLI and more examples see documentation.

1. Install

pip install db1

2. Upload and retrieve data

Choose a key and replace 'example_key' with your own.

from db1 import DB1
import numpy as np

# upload anything
DB1['example_key'] = {
    "message" : "Hey, I'm using DB1! 🤙",
    "temperature" : 21.2421,
    "numbers" : [1, 2, 3, "four"],
    "matrix" : np.eye(5)
}

# retrieve anywhere
my_value = DB1['example_key']

3. View your item in the browser

Go to https://db1.io/ and enter your key in the text field.

4. Embed item in Notion

To embed the item above in your Notion page, simply paste the URL https://db1.io/?key=example_key in any page and click “Create embed”.

Notion examples.

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

db1-0.1.6.tar.gz (13.3 kB view hashes)

Uploaded Source

Built Distribution

db1-0.1.6-py3-none-any.whl (16.6 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