A package, implemented as a Class, to generalize JSON traversal and processing.
Project description
Colchis
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 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file colchis-0.1.0.tar.gz.
File metadata
- Download URL: colchis-0.1.0.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b1e742f867a47012e501b05ca183a0950c83f7604c515ed59bc2b3bd01432a4
|
|
| MD5 |
905e4edbe806262ee4367a8b94db96ec
|
|
| BLAKE2b-256 |
a6c23e54abc771ff2bb6b96bbecf1e9111911e8e3e15bccd031bc6d03f94c973
|
File details
Details for the file colchis-0.1.0-py3-none-any.whl.
File metadata
- Download URL: colchis-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
902317bd9e64097b9f1f4047c5fb7e1f4d75beaf7128c96543c85b55d7575ee7
|
|
| MD5 |
1d9412ee23f934b4472397830c31ed17
|
|
| BLAKE2b-256 |
122cd50f339628331368f3eb5c77828e595d2278e86f3476ed37d71a0fbc4ea8
|