Skip to main content

A small package that turns a .json into a database !

Project description

Friendlier Json

Bored of the normal json? Fed up with SQL? Then Friendlier Json will be exactly the right thing for you!

Why should you use it?

  • It was made with ❤️ !
  • It is comparatively fast ⏩ ! (more about this soon)
  • It is easy to understand 🧠 !

Little Example:

from friendlier_json import Reader
reader = Reader()
reader.file = 'path/to/your/json' Limits the number of results to 2 👍

"Advanced" Examples


Inserting ✍️:

from friendlier_json import Reader, Object
reader = Reader()
reader.file = 'path/to/your/json'
person1 = Object(name='Maik', age=15)
#the reader can take both the class and a JSON object or a dict as argument. There are 2 methods
reader.insert(person1) # method 1
reader.insert(person1.to_json()) #method 2

Your .json will look like this:

    "1": {
        "name": "Maik",
        "age": 15

Selecting 🔭:

from friendlier_json import Reader
reader = Reader()
reader.file = 'path/to/your/json'
result ='Maik', age=15)
# this will return a list object

Benchmarks 📊:

Quantity Time required (s)
1 0.000429
10 0.004077
100 0.110214
1000 6.013882
Quantity Time required (s)
1 0.002409
10 0.003234
100 0.00242
1000 0.003081

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

friendlier json- (3.0 kB view hashes)

Uploaded source

Built Distribution

friendlier_json- (3.4 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page