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 :)
Metadata
Release files for justify 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| justify-0.3.tar.gz | 9.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| justify-0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.3 kB
Release files / justify-0.3.tar.gz
| Download URL | justify-0.3.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
05d03e5ffd04895019ea5db55a081a9f35c21a1bfe5abfe73274a6ee5fce3da9
|
|
BLAKE2b-256 checksum How to use checksums |
463fba41716293bfeff359f7ecc22293ce2ac01ebcf5a6d6e8326cc7185b99ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / justify-0.3-py3-none-any.whl
| Download URL | justify-0.3-py3-none-any.whl |
|---|---|
| Size | 11.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dc093d608a4bdbf702d014bc4050826fb9f551fec1138cd1ef75602b39859394
|
|
BLAKE2b-256 checksum How to use checksums |
05a13f047def418c471fbf4696925297a291b0fcf6620ea43c07e1c936174892
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|