Skip to main content

Common feature for json data handling

Project description

learningdhara community (Learning Community towards new era technology learning)

Author - Learningdhara Community (www.learningdhara.com) Date - 7th July 2024

Handling of json data
  1. select.py

a) select_all()

  • Parameters:

    • file_path : It expects a relative path of the json data file
    • entity : It expects the name of the entity like customer, department or organization etc.
  • Return

    • It will return a entity json data
  1. insert.py

a) insert_me(file_path, entity, **data)

  • Parameters:

    • file_path : It expects a relative path of the json data file
    • entity : It expects the name of the entity like customer, department or organization etc.
    • data : It expects the keyword arguments having json data.
  • Return

    • It will return a entity json data
Sample json data

{ "data": [ { "name": "Prashant", "age": "50", "sex": "Male", "organization": "TCS", "department": "RnD", "isActive": "true" }, { "name": "Nishant", "age": "50", "sex": "Male", "organization": "TCS", "department": "RnD", "isActive": "true" }, { "name": "Ranjan", "age": "50", "sex": "Female", "organization": "TCS", "department": "RnD", "isActive": "true" }, { "name": "Appu", "age": "27", "sex": "Male", "organization": "TCS", "department": "RnD", "isActive": "true" } ] }

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

learningdhara-0.1.0.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

learningdhara-0.1.0-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file learningdhara-0.1.0.tar.gz.

File metadata

  • Download URL: learningdhara-0.1.0.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.7 Darwin/23.5.0

File hashes

Hashes for learningdhara-0.1.0.tar.gz
Algorithm Hash digest
SHA256 87d06e3e1f036f09836bbaff442c266d15671a334a4956ba324b6910ba1a85fc
MD5 216c5de1e99098a4a43ed9822097be67
BLAKE2b-256 5b286d88de93e667b7a3bc78a256d43929cb3440ec548114cd0f121645d49d4f

See more details on using hashes here.

File details

Details for the file learningdhara-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: learningdhara-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.7 Darwin/23.5.0

File hashes

Hashes for learningdhara-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 90e1f0e082b2438eeaa82378e2201b9dffe76b7a87af606dc0449346d904aef7
MD5 bbfcaae1f6033c6ecce637f0be85404f
BLAKE2b-256 f1990d6c4ad488c43c73253fbb3cf7ca943e43fe2bfc3b99be7777120678ab8a

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