Skip to main content

A package, implemented as a Class, to generalize JSON traversal and processing.

Project description

Colchis

A work in progress...

A package, implemented as a Class, to generalize JSON traversal and processing.

See IETF RFC8259: The Javascript Object Notation (JSON) Data Interchange Format https://datatracker.ietf.org/doc/html/rfc8259

Purpose

I seem to spend a lot of time writing code to perform operations on a JSON structure. I wonder if I can automate this?

The minimum goal is a package that does the 'heavy lifting':

  • Reduce duplication of effort
  • Maximize compute performance
  • Minimize coding errors
  • Minimize coding effort

Imports

import os

from pathlib import Path

import config

from colchis.classes.argo import Argo

Instantiation

x = Argo(file_path)

Where file_path is the valid path to a valid JSON file; 'x' is the class object of the json file

Methods Implemented

write_json_data

validate_json_data

depict_json

depict_struct

__read_json_data

__good_params

Methods awaiting implementation

create_key_list

create_value_list

add_key_value

delete_key_value

update_key

update_value

find_key

find_value

find_except

find_element

delete_element

update_element

append_element

insert_element

Background

Jason was a character in Greek mythology. He set off on a quest in a ship (the Argo), with a crew (the Argonauts) to a foreign land (Colchis, present day Georgia) to recover a legendary Golden Fleece in order to regain his rightful throne. To gain the Golden Fleece, he was assigned several arduous tasks, which he completed though divine intervention. Despite his triumph, Jason continued to encounter serious problems in life and ultimately died a poor man while asleep under the rotting Argo, which fell and killed him. Hopefully, history doesn't repeat itself.

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

colchis-0.2.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

colchis-0.2.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file colchis-0.2.0.tar.gz.

File metadata

  • Download URL: colchis-0.2.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.11

File hashes

Hashes for colchis-0.2.0.tar.gz
Algorithm Hash digest
SHA256 380abf0cf798280d3e9537eb4b0222afe67807a3dd6c5e9bfac18eb921e7c586
MD5 cd730ed755f6615df71d7d2891f633e6
BLAKE2b-256 3374df295ed29707482b47830dee13b24c4ff863b03eac68ef498875192da8cf

See more details on using hashes here.

File details

Details for the file colchis-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: colchis-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.11

File hashes

Hashes for colchis-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e6a03665b90ee2c4ed99cd42ef6e9a50b5c297acb67dbfa31b1146ae1100ee05
MD5 b9b4edfd557aaf501a79d6f8fb9b9374
BLAKE2b-256 f1f407166a340d6b3d1e683b1e7bf8aa913ee1595f914ac1942c6591215d7086

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