An art of writing json
Project description
Json Justify
docs |
|
---|---|
coverage |
|
tests |
|
package |
Installation
This project only supports python3 version python2 support may come in upcomming versions
via pip
# if under linux machiene
pip3 install justify
# if under windows
pip install justify
via github
#cloning git repo
git clone git@github.com:AngrySoilder/json-justify.git
cd json-justify
python3 setup.py install
Basic Usage
The basic usage of json_justify is shown here which is used to validate data from source
from json_justify import JsonManager
from json_justify.fields import String,Number,Boolean,Array
class Js(JsonManager):
name = String("name")
age = Number("age")
male = Boolean("male")
friends = Array("friends")
data = {
"name" : "john doe",
"age" : 120,
"male" : False,
"friends" : ["Jelly","Kelly"]
}
# This will return True
js = Js(data = data)
data.is_valid()
Contributing
Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.
Report Bugs
Report bugs at https://github.com/AngrySoilder/json-justify/issues
If you are reporting a bug, please include:
Your operating system name and version.
Any details about your local setup that might be helpful in troubleshooting.
If you can, provide detailed steps to reproduce the bug.
If you don’t have steps to reproduce the bug, just note your observations in as much detail as you can. Questions to start a discussion about the issue are welcome.
Submit Feedback
The best way to send feedback is to file an issue at https://github.com/AngrySoilder/json-justify/issues
If you are proposing a feature:
Explain in detail how it would work.
Keep the scope as narrow as possible, to make it easier to implement.
Remember that this is a volunteer-driven project, and that contributions are welcome :)
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
File details
Details for the file justify-0.3.tar.gz
.
File metadata
- Download URL: justify-0.3.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05d03e5ffd04895019ea5db55a081a9f35c21a1bfe5abfe73274a6ee5fce3da9 |
|
MD5 | 354937e5415a3aee5d6b6c0f0e2e36fd |
|
BLAKE2b-256 | 463fba41716293bfeff359f7ecc22293ce2ac01ebcf5a6d6e8326cc7185b99ee |
File details
Details for the file justify-0.3-py3-none-any.whl
.
File metadata
- Download URL: justify-0.3-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc093d608a4bdbf702d014bc4050826fb9f551fec1138cd1ef75602b39859394 |
|
MD5 | c25f65a9efbe9ec8ade0c2857687d372 |
|
BLAKE2b-256 | 05a13f047def418c471fbf4696925297a291b0fcf6620ea43c07e1c936174892 |