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 details)

Uploaded Source

Built Distribution

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

db1-0.1.6-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file db1-0.1.6.tar.gz.

File metadata

  • Download URL: db1-0.1.6.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for db1-0.1.6.tar.gz
Algorithm Hash digest
SHA256 9e199a3c2845ce1fb59b2a1bce0a9063cb1935d7bf46d876d84dcae04be81ec2
MD5 96ccc1f801b9077d0f04a20b827ad5ec
BLAKE2b-256 6aadfac70fb426c24dd2716b1da659808199e48e83fba5f775e3f6db9eb3d9d7

See more details on using hashes here.

File details

Details for the file db1-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: db1-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for db1-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 899d0df981699d8b63d69dcfb38ebf43209a69150a60a123b7a41da760f7fb07
MD5 8b3a6f9550acf0af5f734cfe437dd717
BLAKE2b-256 20d837e794d619e373edf94e4578fa391e2634f9391d7f3ade976410efbe4538

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