Skip to main content

crud operation with database using json.

Project description

DBjson

crud operation with database using json.

PyPI version Downloads Downloads

Features

  • create data.
  • read data.
  • delete data
  • update data
  • search data

Install

pip install dbjsonpy

Example

minimal example

from dbjson import DBjson

db = DBjson('sqlite:///test.db')

class User(db.Model):
    name = db.Column(db.String)

# insert data
add_data = {"name": "Jak","city": "india"}
print(db.add(User, add_data))

# read all data
print(db.get_all(User))

see full example here

Todo

  • update data
  • add multiple data
  • search data
  • paginate data

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

dbjsonpy-1.0.7-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file dbjsonpy-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: dbjsonpy-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for dbjsonpy-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 5236a0ce317b17feda1b55deb66b6653eb8cca625e064c7d0b23337e5fd33857
MD5 722a6ff24b70955e24c5d9258c603583
BLAKE2b-256 7be1e7510be880450ad096928f47746a0101e5b1172fa94a26f039fd0b24d29c

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