Skip to main content

An art of writing json

Project description

Json Justify

docs

Documentation Status

coverage

coverage

tests

Travis-CI Build Status Requirements Status

package

PyPI Package latest release PyPI Wheel Supported versions

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

justify-0.3.tar.gz (9.8 kB view hashes)

Uploaded Source

Built Distribution

justify-0.3-py3-none-any.whl (11.6 kB view hashes)

Uploaded Python 3

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