Skip to content
This repository has been archived by the owner on Feb 9, 2022. It is now read-only.

Collection+JSON library in Python with extensions

License

Notifications You must be signed in to change notification settings

avatao/collection-json.python

 
 

Repository files navigation

collection-json

image

image

image

collection-json is a small library, written in Python, to work with Collection+JSON documents.

Installation

The easiest way to install collection-json is to run :

$ pip install collection-json

For other ways of installing it, please refer to the documentation.

Examples

Parsing a Collection+JSON document is really simple :

>>> import requests
>>> from collection_json import Collection
>>> data = requests.get('http://www.youtypeitwepostit.com/api/').text
>>> collection = Collection.from_json(data)
>>> collection
<Collection: version='1.0' href='http://www.youtypeitwepostit.com/api/'>

The documentation includes several usage examples, go and check it out!

Contributing

  1. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug.
  2. Fork the repository on GitHub to start making your changes to the master branch (or branch off of it).
  3. Write a test which shows that the bug was fixed or that the feature works as expected.
  4. Send a pull request and bug the maintainer until it gets merged and published. :) Make sure to add yourself to AUTHORS.

About

Collection+JSON library in Python with extensions

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.1%
  • Makefile 0.9%