This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Package jsoncatalogue allows reading set of JSON files from directory structure resembling urls.

Files are loaded and provided as simple url: jsoncontent dictionary.

Such a dictionary can be used as catalogue of JSON schemas for JSON Schema validation.


$ pip install jsoncatalogue

Structure of directory with JSON files

If you want to have catalogue for Swagger v1.2 validation:



  • catalogue - is catalogue “home” directory (can be deeper)
  • http- is protocol name. Can be any other, like ftp
  • - domain name
  • schemas/v1.2 - local path to JSON files
  • apiDeclaration.json - actual JSON file - must be valid JSON file (no other requirement exist)

As you see, there are no complex rules to follow, just have uri leading to valid JSON file (which is not even required to have an extension “.json”)

Loading JSON Catalogue from directory

>>> from jsoncatalogue import Catalogue
>>> catalogue = Catalogue()
>>> catalogue.add_directory("catalog")
>>> catalogue.add_directory("../other/catalog")
{"http://exam.ple/schema/one.json": {...},
 "http://exam.ple/schema/two.json": {...},
 "": {...}
 "http://no.extensi.on/schema/pets": {...}

And this is all. You now have a dictionary with uris and related JSON content. The JSON content is already loaded and is represented as dictionary.

Using catalogue for JSON Schema validator

This can be assigned e.g. to jsonschema validator:

>>> from jsonschema import Draft4Validator
>>> validator = Draft4Validator()
>>> =

From now on, validator will know about schemas from catalogue


Initial development done during work for CDV on project SUPERHUB. The package is published under MIT license with permision of CDV.

Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
jsoncatalogue-0.1.1.tar.gz (9.0 kB) Copy SHA256 Checksum SHA256 Source Oct 25, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting