Skip to main content

simple data store using google drive

Project description

gdstore

simple data store using google drive




🎛️ requirements

  • python 3.9 or higher
  • tested on
OS Tested Pass
Mac 13(Ventura)
Windows 10 🚫
Linux(WSL) 🚫



🌐 install

- using pip

python -m pip install gdstore

- using git(dev)

python -m pip install git+https://github.com/oyajiDev/gdstore.git



🛠 usage

get credentials

from google.oauth2.service_account import Credentials

creds = Credentials.from_service_account_file(
    "{credential_file}"
)

create root tree by id

from gdstore import Root

root = Root(creds, "{google_drive_folder_id}")

browse by tree

# tree
tree = root.tree("/path/of/tree", "{error or create}")

# store
store = root.tree("/path/of/tree.store", "{error or create}")

get, set item by tree from store

# find item by tree
item = store.tree("/path/of/tree/item")
# set value to item
item.set({some value})
# get value from item
print(item.get())

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

gdstore-0.0.1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

gdstore-0.0.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file gdstore-0.0.1.tar.gz.

File metadata

  • Download URL: gdstore-0.0.1.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for gdstore-0.0.1.tar.gz
Algorithm Hash digest
SHA256 295a6fa820fecf44b5c6e91e86503ea4b706936dd8da3cc848e262e442b40857
MD5 7ecc54c15afabdb079e4518b48056361
BLAKE2b-256 873813c244ce417d3fa7b593a3361ab61b7e28a95d4284eb82056043e1776efb

See more details on using hashes here.

File details

Details for the file gdstore-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: gdstore-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for gdstore-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c69cececee04ab9b68c4b617b6ccadc0d39509fb4bb2804fb68856c41a90658e
MD5 87b6689c9d6860def4072d9fbd692e83
BLAKE2b-256 6152c80ebd79dde549d0c931219ae657b4eab70c15d87c18d2484f4cf400f1d6

See more details on using hashes here.

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