Skip to main content

a db api

Project description

YCCDB

A database api for yorkson creek coding club hosted databases

EXAMPLE CODE :

(replace exampleToken with db token if you want to actually do this)

(also replace main with another .db files name you can add the .db extentsion but you can do it without the extension for that file but main is the default added file so it works.)

1 (pushdb):

import yccdb as db
import time
db.pushdb("exampleToken", "time", "time", str(time.time()) )

2 (dumpdb):

import yccdb as db
import time
db.dumpdb("exampleToken", "time", {"time": str(time.time())} )

3 (clr):

import yccdb as db
def resetUsers():
    db.clrdb("exampleToken", "users" )

4 (deldb):

import yccdb as db
def remove(key: str):
    db.deldb("exampleToken", "Settings", key) # deletes a key in the db not the entire db lol

5 (getdb):

import yccdb as db
def get(key: str):
    return db.getdb("exampleToken", "Settings")[key]

6 (attrdb):

import yccdb as db
def created():
    return int(db.attrdb("exampleToken")["created at"])

7 (isonline):

import yccdb as db
# some code

if not db.isonline():
    print("db is not online. please check later")
    exit(0)

# some more code

Keep in mind you don't need to import it as db instead of the default yccdb and you can import it as anything you want
other packages by us :

That's it for now...

CREDITS:

Th3ou1d3x : Project owner. dev for backend (api links) and frontend (actual package) protocols

Anthony : Project co-owner and friend of owner. dev for backend (debugging and creating api links) and frontend (debugging actual package and creating more protocols)

We basicly did the same thing. Anthony just did more frontend and I (Th3ou1d3x) did more backend I did like very little frontend

- Th3ou1d3x and Anthony

ABOUT US:

Th3ou1d3x

Anthony

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

yccdb-0.5.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

yccdb-0.5.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file yccdb-0.5.0.tar.gz.

File metadata

  • Download URL: yccdb-0.5.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for yccdb-0.5.0.tar.gz
Algorithm Hash digest
SHA256 8751dd214eb4940a3c1d80a4c1b1d0346c8389371753e20d8c7ae1ae8bd5dd60
MD5 b16d40bb0e394cc7e7abcb8624a40ed8
BLAKE2b-256 8cc9e8be67f2165a70897e0a69f8c1ee61c99caf7d00445a4e5f6dafac17fe21

See more details on using hashes here.

File details

Details for the file yccdb-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: yccdb-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for yccdb-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4b1cd4869f41b0e16aa7dec565c20acd3275bf339d03b6cc8ce7a8ead78e13a7
MD5 1573b71b60a35394fa59de7a8eff9941
BLAKE2b-256 498da0bffd0ea10bb7b8fe717f565fb3601109e1709de77020cd8c7f740f46d2

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