jsonapi-client


Namejsonapi-client JSON
Version 0.9.9 PyPI version JSON
download
home_pagehttps://github.com/qvantel/jsonapi-client
SummaryComprehensive, yet easy-to-use, pythonic, ORM-like access to JSON API services
upload_time2020-03-12 10:24:19
maintainer
docs_urlNone
authorTuomas Airaksinen
requires_python
licenseBSD-3
keywords jsonapi json api client
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            .. image:: https://travis-ci.org/qvantel/jsonapi-client.svg?branch=master
   :target: https://travis-ci.org/qvantel/jsonapi-client

.. image:: https://coveralls.io/repos/github/qvantel/jsonapi-client/badge.svg
   :target: https://coveralls.io/github/qvantel/jsonapi-client

.. image:: https://img.shields.io/pypi/v/jsonapi-client.svg
   :target: https://pypi.python.org/pypi/jsonapi-client

.. image:: https://img.shields.io/pypi/pyversions/jsonapi-client.svg
   :target: https://pypi.python.org/pypi/jsonapi-client

.. image:: https://img.shields.io/badge/licence-BSD%203--clause-blue.svg
   :target: https://github.com/qvantel/jsonapi-client/blob/master/LICENSE.txt

==========================
JSON API client for Python
==========================

Introduction
============

Package repository: https://github.com/qvantel/jsonapi-client

This Python (3.6+) library provides easy-to-use, pythonic, ORM-like access to
JSON API ( http://jsonapi.org )

 - Optional asyncio implementation
 - Optional model schema definition and validation (=> easy reads even without schema)
 - Resource caching within session


Installation
============

From Pypi::

    pip install jsonapi-client

Or from sources::

    ./setup.py install


Usage
=====

Client session
--------------

.. code-block:: python

   from jsonapi_client import Session, Filter, ResourceTuple

   s = Session('http://localhost:8080/')
   # To start session in async mode
   s = Session('http://localhost:8080/', enable_async=True)

   # You can also pass extra arguments that are passed directly to requests or aiohttp methods,
   # such as authentication object
   s = Session('http://localhost:8080/',
               request_kwargs=dict(auth=HTTPBasicAuth('user', 'password'))


   # You can also use Session as a context manager. Changes are committed in the end
   # and session is closed.
   with Session(...) as s:
       your code

   # Or with enable_async=True
   async with Session(..., enable_async=True):
       your code

   # If you are not using context manager, you need to close session manually
   s.close()

   # Again, don't forget to await in the AsyncIO mode
   await s.close()

   # Fetching documents
   documents = s.get('resource_type')
   # Or if you want only 1, then
   documents = s.get('resource_type', 'id_of_document')

   # AsyncIO the same but remember to await:
   documents = await s.get('resource_type')

Filtering and including
-----------------------

.. code-block:: python

   # You need first to specify your filter instance.
   # - filtering with two criteria (and)
   filter = Filter(attribute='something', attribute2='something_else')
   # - filtering some-dict.some-attr == 'something'
   filter = Filter(some_dict__some_attr='something'))

   # Same thing goes for including.
   # - including two fields
   include = Inclusion('related_field', 'other_related_field')

   # Custom syntax for request parameters.
   # If you have different URL schema for filtering or other GET parameters,
   # you can implement your own Modifier class (derive it from Modifier and
   # reimplement appended_query).
   modifier = Modifier('filter[post]=1&filter[author]=2')

   # All above classes subclass Modifier and can be added to concatenate
   # parameters
   modifier_sum = filter + include + modifier

   # Now fetch your document
   filtered = s.get('resource_type', modifier_sum) # AsyncIO with await

   # To access resources included in document:
   r1 = document.resources[0]  # first ResourceObject of document.
   r2 = document.resource      # if there is only 1 resource we can use this

Pagination
----------

.. code-block:: python

   # Pagination links can be accessed via Document object.
   next_doc = document.links.next.fetch()
   # AsyncIO
   next_doc = await document.links.next.fetch()

   # Iteration through results (uses pagination):
   for r in s.iterate('resource_type'):
       print(r)

   # AsyncIO:
   async for r in s.iterate('resource_type'):
       print(r)

Resource attribute and relationship access
------------------------------------------

.. code-block:: python

   # - attribute access
   attr1 = r1.some_attr
   nested_attr = r1.some_dict.some_attr
   #   Attributes can always also be accessed via __getitem__:
   nested_attr = r1['some-dict']['some-attr']

   # If there is namespace collision, you can also access attributes via .fields proxy
   # (both attributes and relationships)
   attr2 = r1.fields.some_attr

   # - relationship access.
   #   * Sync, this gives directly ResourceObject
   rel = r1.some_relation
   attr3 = r1.some_relation.some_attr  # Relationship attribute can be accessed directly

   #   * AsyncIO, this gives Relationship object instead because we anyway need to
   #     call asynchronous fetch function.
   rel = r1.some_relation
   #     To access ResourceObject you need to first fetch content
   await r1.some_relation.fetch()
   #     and then you can access associated resourceobject
   res = r1.some_relation.resource
   attr3 = res.some_attr  # Attribute access through ResourceObject

   # If you need to access relatinoship object itself (with sync API), you can do it via
   # .relationships proxy. For example, if you are interested in links or metadata
   # provided within relationship, or intend to manipulate relationship.
   rel_obj = r1.relationships.relation_name

Resource updating
-----------------

.. code-block:: python

   # Updating / patching existing resources
   r1.some_attr = 'something else'
   # Patching element in nested json
   r1.some_dict.some_dict.some_attr = 'something else'

   # change relationships, to-many. Accepts also iterable of ResourceObjects/
   # ResourceIdentifiers/ResourceTuples
   r1.comments = ['1', '2']
   # or if resource type is not known or can have multiple types of resources
   r1.comments_or_people = [ResourceTuple('1', 'comments'), ResourceTuple('2', 'people')]
   # or if you want to add some resources you can
   r1.comments_or_people += [ResourceTuple('1', 'people')]
   r1.commit()

   # change to-one relationships
   r1.author = '3'  # accepts also ResourceObjects/ResourceIdentifiers/ResourceTuple
   # or resource type is not known (via schema etc.)
   r1.author = ResourceTuple('3', 'people')

   # Committing changes (PATCH request)
   r1.commit(meta={'some_meta': 'data'})  # Resource committing supports optional meta data
   # AsyncIO
   await r1.commit(meta={'some_meta': 'data'})


Creating new resources
----------------------


.. code-block:: python

   # Creating new resources. Schema must be given. Accepts dictionary of schema models
   # (key is model name and value is schema as json-schema.org).

   models_as_jsonschema = {
       'articles': {'properties': {
           'title': {'type': 'string'},
           'author': {'relation': 'to-one', 'resource': ['people']},
           'comments': {'relation': 'to-many', 'resource': ['comments']},
       }},
       'people': {'properties': {
           'first-name': {'type': 'string'},
           'last-name': {'type': 'string'},
           'twitter': {'type': ['null', 'string']},
       }},
       'comments': {'properties': {
           'body': {'type': 'string'},
        'author': {'relation': 'to-one', 'resource': ['people']}
    }}
   }
   # If you type schema by hand, it could be more convenient to type it as yml in a file
   # instead

   s = Session('http://localhost:8080/', schema=models_as_jsonschema)
   a = s.create('articles') # Creates empty ResourceObject of 'articles' type
   a.title = 'Test title'

   # Validates and performs POST request, and finally updates resource based on server response
   a.commit(meta={'some_meta': 'data'})
   # Or with AsyncIO, remember to await
   await a.commit(meta={'some_meta': 'data'})

   # Commit metadata could be also saved in advance:
   a.commit_metadata = {'some_meta': 'data'}
   # You can also commit all changed resources in session by
   s.commit()
   # or with AsyncIO
   await s.commit()

   # Another example of resource creation, setting attributes and relationships & committing:
   # If you have underscores in your field names, you can pass them in fields keyword argument as
   # a dictionary:
   cust1 = s.create_and_commit('articles',
                               attribute='1',
                               dict_object__attribute='2',
                               to_one_relationship='3',
                               to_many_relationship=['1', '2'],
                               fields={'some_field_with_underscore': '1'}
                               )

   # Async:
   cust1 = await s.create_and_commit('articles',
                                     attribute='1',
                                     dict_object__attribute='2',
                                     to_one_relationship='3',
                                     to_many_relationship=['1', '2'],
                                     fields={'some_field_with_underscore': '1'}
                                     )

Deleting resources
------------------

.. code-block:: python

    # Delete resource
    cust1.delete() # Mark to be deleted
    cust1.commit() # Actually delete


Credits
=======

- Work was supported by Qvantel (http://qvantel.com).
- Author and package maintainer: Tuomas Airaksinen (https://github.com/tuomas2/).


License
=======

Copyright (c) 2017, Qvantel

All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

 - Redistributions of source code must retain the above copyright
   notice, this list of conditions and the following disclaimer.
 - Redistributions in binary form must reproduce the above copyright
   notice, this list of conditions and the following disclaimer in the
   documentation and/or other materials provided with the distribution.
 - Neither the name of the Qvantel nor the
   names of its contributors may be used to endorse or promote products
   derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL QVANTEL BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


CHANGELOG
=========


0.9.9 (2020-03-12)
------------------

- Adapt to aiohttp>3.0
- Workaround a weird bug
- Fix deprecation warnings
- Prevent AttributeDict() from modifying its input
- #24: Fix error handling of server response


0.9.8 (2020-02-14)
------------------

- #25: Fix for fetching resources without attributes
- Stop following next when there are no more items
- Fix build
- Use custom_url logic for all request methods
- #27: Await close on async sessions
- Add apk libffi-dev dependency
- Fix pytest.raise exception validation e.value
- Added .venv, .vscode, .pytest_cache to .gitignore
- Add support for extra headers as request_kwargs


0.9.7 (2019-02-01)
------------------

- Support __getitem__ in Meta
- Handle empty relationship data list
- Allow returning link to relationship as an iterator
- Fix handling null one-to-one-relationship
- Don't explicitly quote filter values
- Include support

0.9.6 (2017-06-26)
------------------

 - When creating new resources, use default value specified in
   jsonschema, when available.


0.9.5 (2017-06-16)
------------------

 - Change Session.create_and_commit signature similarly as Session.create

0.9.4 (2017-06-16)
------------------

 - Remove ? from filenames (illegal in Windows)
 - Pass event loop aiohttp's ClientSession
 - Return resource from .commit if return status is 202
 - Support underscores in field names in Session.create() through fields keyword argument.
 - Add support for extra arguments such as authentication object
 - AsyncIO support for context manager usage of Session


0.9.3 (2017-04-03)
------------------

 - Added aiohttp to install requirements


0.9.2 (2017-04-03)
------------------

 - Github release.


0.9.1 (2017-03-23)
------------------

 - Fix async content_type checking
 - Use Python 3's new typing.NamedTuple instead of collections.NamedTuple
 - Make included resources available from Document
 - ResourceObject.json property



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/qvantel/jsonapi-client",
    "name": "jsonapi-client",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "JSONAPI JSON API client",
    "author": "Tuomas Airaksinen",
    "author_email": "tuomas.airaksinen@qvantel.com",
    "download_url": "https://files.pythonhosted.org/packages/8e/b0/c0ff1c3c9716c84bdf32e676ea836e8db9a3c137fbefb2cf228fb7c4de1c/jsonapi_client-0.9.9.tar.gz",
    "platform": "",
    "description": ".. image:: https://travis-ci.org/qvantel/jsonapi-client.svg?branch=master\n   :target: https://travis-ci.org/qvantel/jsonapi-client\n\n.. image:: https://coveralls.io/repos/github/qvantel/jsonapi-client/badge.svg\n   :target: https://coveralls.io/github/qvantel/jsonapi-client\n\n.. image:: https://img.shields.io/pypi/v/jsonapi-client.svg\n   :target: https://pypi.python.org/pypi/jsonapi-client\n\n.. image:: https://img.shields.io/pypi/pyversions/jsonapi-client.svg\n   :target: https://pypi.python.org/pypi/jsonapi-client\n\n.. image:: https://img.shields.io/badge/licence-BSD%203--clause-blue.svg\n   :target: https://github.com/qvantel/jsonapi-client/blob/master/LICENSE.txt\n\n==========================\nJSON API client for Python\n==========================\n\nIntroduction\n============\n\nPackage repository: https://github.com/qvantel/jsonapi-client\n\nThis Python (3.6+) library provides easy-to-use, pythonic, ORM-like access to\nJSON API ( http://jsonapi.org )\n\n - Optional asyncio implementation\n - Optional model schema definition and validation (=> easy reads even without schema)\n - Resource caching within session\n\n\nInstallation\n============\n\nFrom Pypi::\n\n    pip install jsonapi-client\n\nOr from sources::\n\n    ./setup.py install\n\n\nUsage\n=====\n\nClient session\n--------------\n\n.. code-block:: python\n\n   from jsonapi_client import Session, Filter, ResourceTuple\n\n   s = Session('http://localhost:8080/')\n   # To start session in async mode\n   s = Session('http://localhost:8080/', enable_async=True)\n\n   # You can also pass extra arguments that are passed directly to requests or aiohttp methods,\n   # such as authentication object\n   s = Session('http://localhost:8080/',\n               request_kwargs=dict(auth=HTTPBasicAuth('user', 'password'))\n\n\n   # You can also use Session as a context manager. Changes are committed in the end\n   # and session is closed.\n   with Session(...) as s:\n       your code\n\n   # Or with enable_async=True\n   async with Session(..., enable_async=True):\n       your code\n\n   # If you are not using context manager, you need to close session manually\n   s.close()\n\n   # Again, don't forget to await in the AsyncIO mode\n   await s.close()\n\n   # Fetching documents\n   documents = s.get('resource_type')\n   # Or if you want only 1, then\n   documents = s.get('resource_type', 'id_of_document')\n\n   # AsyncIO the same but remember to await:\n   documents = await s.get('resource_type')\n\nFiltering and including\n-----------------------\n\n.. code-block:: python\n\n   # You need first to specify your filter instance.\n   # - filtering with two criteria (and)\n   filter = Filter(attribute='something', attribute2='something_else')\n   # - filtering some-dict.some-attr == 'something'\n   filter = Filter(some_dict__some_attr='something'))\n\n   # Same thing goes for including.\n   # - including two fields\n   include = Inclusion('related_field', 'other_related_field')\n\n   # Custom syntax for request parameters.\n   # If you have different URL schema for filtering or other GET parameters,\n   # you can implement your own Modifier class (derive it from Modifier and\n   # reimplement appended_query).\n   modifier = Modifier('filter[post]=1&filter[author]=2')\n\n   # All above classes subclass Modifier and can be added to concatenate\n   # parameters\n   modifier_sum = filter + include + modifier\n\n   # Now fetch your document\n   filtered = s.get('resource_type', modifier_sum) # AsyncIO with await\n\n   # To access resources included in document:\n   r1 = document.resources[0]  # first ResourceObject of document.\n   r2 = document.resource      # if there is only 1 resource we can use this\n\nPagination\n----------\n\n.. code-block:: python\n\n   # Pagination links can be accessed via Document object.\n   next_doc = document.links.next.fetch()\n   # AsyncIO\n   next_doc = await document.links.next.fetch()\n\n   # Iteration through results (uses pagination):\n   for r in s.iterate('resource_type'):\n       print(r)\n\n   # AsyncIO:\n   async for r in s.iterate('resource_type'):\n       print(r)\n\nResource attribute and relationship access\n------------------------------------------\n\n.. code-block:: python\n\n   # - attribute access\n   attr1 = r1.some_attr\n   nested_attr = r1.some_dict.some_attr\n   #   Attributes can always also be accessed via __getitem__:\n   nested_attr = r1['some-dict']['some-attr']\n\n   # If there is namespace collision, you can also access attributes via .fields proxy\n   # (both attributes and relationships)\n   attr2 = r1.fields.some_attr\n\n   # - relationship access.\n   #   * Sync, this gives directly ResourceObject\n   rel = r1.some_relation\n   attr3 = r1.some_relation.some_attr  # Relationship attribute can be accessed directly\n\n   #   * AsyncIO, this gives Relationship object instead because we anyway need to\n   #     call asynchronous fetch function.\n   rel = r1.some_relation\n   #     To access ResourceObject you need to first fetch content\n   await r1.some_relation.fetch()\n   #     and then you can access associated resourceobject\n   res = r1.some_relation.resource\n   attr3 = res.some_attr  # Attribute access through ResourceObject\n\n   # If you need to access relatinoship object itself (with sync API), you can do it via\n   # .relationships proxy. For example, if you are interested in links or metadata\n   # provided within relationship, or intend to manipulate relationship.\n   rel_obj = r1.relationships.relation_name\n\nResource updating\n-----------------\n\n.. code-block:: python\n\n   # Updating / patching existing resources\n   r1.some_attr = 'something else'\n   # Patching element in nested json\n   r1.some_dict.some_dict.some_attr = 'something else'\n\n   # change relationships, to-many. Accepts also iterable of ResourceObjects/\n   # ResourceIdentifiers/ResourceTuples\n   r1.comments = ['1', '2']\n   # or if resource type is not known or can have multiple types of resources\n   r1.comments_or_people = [ResourceTuple('1', 'comments'), ResourceTuple('2', 'people')]\n   # or if you want to add some resources you can\n   r1.comments_or_people += [ResourceTuple('1', 'people')]\n   r1.commit()\n\n   # change to-one relationships\n   r1.author = '3'  # accepts also ResourceObjects/ResourceIdentifiers/ResourceTuple\n   # or resource type is not known (via schema etc.)\n   r1.author = ResourceTuple('3', 'people')\n\n   # Committing changes (PATCH request)\n   r1.commit(meta={'some_meta': 'data'})  # Resource committing supports optional meta data\n   # AsyncIO\n   await r1.commit(meta={'some_meta': 'data'})\n\n\nCreating new resources\n----------------------\n\n\n.. code-block:: python\n\n   # Creating new resources. Schema must be given. Accepts dictionary of schema models\n   # (key is model name and value is schema as json-schema.org).\n\n   models_as_jsonschema = {\n       'articles': {'properties': {\n           'title': {'type': 'string'},\n           'author': {'relation': 'to-one', 'resource': ['people']},\n           'comments': {'relation': 'to-many', 'resource': ['comments']},\n       }},\n       'people': {'properties': {\n           'first-name': {'type': 'string'},\n           'last-name': {'type': 'string'},\n           'twitter': {'type': ['null', 'string']},\n       }},\n       'comments': {'properties': {\n           'body': {'type': 'string'},\n        'author': {'relation': 'to-one', 'resource': ['people']}\n    }}\n   }\n   # If you type schema by hand, it could be more convenient to type it as yml in a file\n   # instead\n\n   s = Session('http://localhost:8080/', schema=models_as_jsonschema)\n   a = s.create('articles') # Creates empty ResourceObject of 'articles' type\n   a.title = 'Test title'\n\n   # Validates and performs POST request, and finally updates resource based on server response\n   a.commit(meta={'some_meta': 'data'})\n   # Or with AsyncIO, remember to await\n   await a.commit(meta={'some_meta': 'data'})\n\n   # Commit metadata could be also saved in advance:\n   a.commit_metadata = {'some_meta': 'data'}\n   # You can also commit all changed resources in session by\n   s.commit()\n   # or with AsyncIO\n   await s.commit()\n\n   # Another example of resource creation, setting attributes and relationships & committing:\n   # If you have underscores in your field names, you can pass them in fields keyword argument as\n   # a dictionary:\n   cust1 = s.create_and_commit('articles',\n                               attribute='1',\n                               dict_object__attribute='2',\n                               to_one_relationship='3',\n                               to_many_relationship=['1', '2'],\n                               fields={'some_field_with_underscore': '1'}\n                               )\n\n   # Async:\n   cust1 = await s.create_and_commit('articles',\n                                     attribute='1',\n                                     dict_object__attribute='2',\n                                     to_one_relationship='3',\n                                     to_many_relationship=['1', '2'],\n                                     fields={'some_field_with_underscore': '1'}\n                                     )\n\nDeleting resources\n------------------\n\n.. code-block:: python\n\n    # Delete resource\n    cust1.delete() # Mark to be deleted\n    cust1.commit() # Actually delete\n\n\nCredits\n=======\n\n- Work was supported by Qvantel (http://qvantel.com).\n- Author and package maintainer: Tuomas Airaksinen (https://github.com/tuomas2/).\n\n\nLicense\n=======\n\nCopyright (c) 2017, Qvantel\n\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n - Redistributions of source code must retain the above copyright\n   notice, this list of conditions and the following disclaimer.\n - Redistributions in binary form must reproduce the above copyright\n   notice, this list of conditions and the following disclaimer in the\n   documentation and/or other materials provided with the distribution.\n - Neither the name of the Qvantel nor the\n   names of its contributors may be used to endorse or promote products\n   derived from this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL QVANTEL BE LIABLE FOR ANY\nDIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\nON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n\nCHANGELOG\n=========\n\n\n0.9.9 (2020-03-12)\n------------------\n\n- Adapt to aiohttp>3.0\n- Workaround a weird bug\n- Fix deprecation warnings\n- Prevent AttributeDict() from modifying its input\n- #24: Fix error handling of server response\n\n\n0.9.8 (2020-02-14)\n------------------\n\n- #25: Fix for fetching resources without attributes\n- Stop following next when there are no more items\n- Fix build\n- Use custom_url logic for all request methods\n- #27: Await close on async sessions\n- Add apk libffi-dev dependency\n- Fix pytest.raise exception validation e.value\n- Added .venv, .vscode, .pytest_cache to .gitignore\n- Add support for extra headers as request_kwargs\n\n\n0.9.7 (2019-02-01)\n------------------\n\n- Support __getitem__ in Meta\n- Handle empty relationship data list\n- Allow returning link to relationship as an iterator\n- Fix handling null one-to-one-relationship\n- Don't explicitly quote filter values\n- Include support\n\n0.9.6 (2017-06-26)\n------------------\n\n - When creating new resources, use default value specified in\n   jsonschema, when available.\n\n\n0.9.5 (2017-06-16)\n------------------\n\n - Change Session.create_and_commit signature similarly as Session.create\n\n0.9.4 (2017-06-16)\n------------------\n\n - Remove ? from filenames (illegal in Windows)\n - Pass event loop aiohttp's ClientSession\n - Return resource from .commit if return status is 202\n - Support underscores in field names in Session.create() through fields keyword argument.\n - Add support for extra arguments such as authentication object\n - AsyncIO support for context manager usage of Session\n\n\n0.9.3 (2017-04-03)\n------------------\n\n - Added aiohttp to install requirements\n\n\n0.9.2 (2017-04-03)\n------------------\n\n - Github release.\n\n\n0.9.1 (2017-03-23)\n------------------\n\n - Fix async content_type checking\n - Use Python 3's new typing.NamedTuple instead of collections.NamedTuple\n - Make included resources available from Document\n - ResourceObject.json property\n\n\n",
    "bugtrack_url": null,
    "license": "BSD-3",
    "summary": "Comprehensive, yet easy-to-use, pythonic, ORM-like access to JSON API services",
    "version": "0.9.9",
    "project_urls": {
        "Homepage": "https://github.com/qvantel/jsonapi-client"
    },
    "split_keywords": [
        "jsonapi",
        "json",
        "api",
        "client"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "55a58dc66076d41bad206914326dd18212e3815ceeed201cbd04b0f1244be037",
                "md5": "4530b42eefcb04fc1ae88e08e8bcd885",
                "sha256": "6d9aa3d6f0146c03b2a169cec8554c6be268f750d89c32a0f43cf85a4105912f"
            },
            "downloads": -1,
            "filename": "jsonapi_client-0.9.9-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4530b42eefcb04fc1ae88e08e8bcd885",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 33989,
            "upload_time": "2020-03-12T10:24:17",
            "upload_time_iso_8601": "2020-03-12T10:24:17.431281Z",
            "url": "https://files.pythonhosted.org/packages/55/a5/8dc66076d41bad206914326dd18212e3815ceeed201cbd04b0f1244be037/jsonapi_client-0.9.9-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8eb0c0ff1c3c9716c84bdf32e676ea836e8db9a3c137fbefb2cf228fb7c4de1c",
                "md5": "be0a4f1b400a403b037146a304b291c5",
                "sha256": "348bb9efb5f98421f865f8258dae5aa781552a5910351ff578f084292e659cd1"
            },
            "downloads": -1,
            "filename": "jsonapi_client-0.9.9.tar.gz",
            "has_sig": false,
            "md5_digest": "be0a4f1b400a403b037146a304b291c5",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 40882,
            "upload_time": "2020-03-12T10:24:19",
            "upload_time_iso_8601": "2020-03-12T10:24:19.174777Z",
            "url": "https://files.pythonhosted.org/packages/8e/b0/c0ff1c3c9716c84bdf32e676ea836e8db9a3c137fbefb2cf228fb7c4de1c/jsonapi_client-0.9.9.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-03-12 10:24:19",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "qvantel",
    "github_project": "jsonapi-client",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "jsonapi-client"
}
        
Elapsed time: 0.18943s