betamax_serializers
===================
Experimental set of Serializers for `Betamax
<https://github.com/sigmavirus24/betamax>`_ that may possibly end up in the
main package.
Pretty JSON Serializer
----------------------
Usage:
.. code-block:: python
from betamax_serializers.pretty_json import PrettyJSONSerializer
from betamax import Betamax
import requests
Betamax.register_serializer(PrettyJSONSerializer)
session = requests.Session()
recorder = Betamax(session)
with recorder.use_cassette('testpretty', serialize_with='prettyjson'):
session.request(method=method, url=url, ...)
YAML 1.1 Serializer
-------------------
To use the YAML 1.1 Serializer, you **must** ensure that you have ``pyyaml``
installed either by using ``betamax_serializer[yaml11] >= 0.2.0`` as your
dependency or by explicity adding ``PyYAML`` to your list of dependencies.
Usage:
.. code-block:: python
from betamax import Betamax
from betamax_serializers.yaml11 import YAMLSerializer
import requests
Betamax.register_serializer(YAMLSerializer)
session = requests.Session()
recorder = Betamax(session)
with recorder.use_cassette('testyaml', serialize_with='yaml11'):
session.request(method=method, url=url, ...)
0.2.1 - 2019-07-27
------------------
- Fix bug in ``YAMLSerializer`` to work with new files
0.2.0 - 2016-04-12
------------------
- Add ``YAMLSerializer`` and ``yaml11`` extra for installation
0.1.0 - 2015-06-21
------------------
- Add ``PrettyJSONSerializer``
Raw data
{
"_id": null,
"home_page": "https://gitlab.com/betamax/serializers",
"name": "betamax-serializers",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Ian Cordasco",
"author_email": "graffatcolmingov@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/19/41/bb325c131204a3feb7f4cf1611d38e6fa676a31615e9513427b115bb0cfa/betamax-serializers-0.2.1.tar.gz",
"platform": "",
"description": "betamax_serializers\n===================\n\nExperimental set of Serializers for `Betamax \n<https://github.com/sigmavirus24/betamax>`_ that may possibly end up in the \nmain package.\n\nPretty JSON Serializer\n----------------------\n\nUsage:\n\n.. code-block:: python\n\n from betamax_serializers.pretty_json import PrettyJSONSerializer\n\n from betamax import Betamax\n\n import requests\n\n Betamax.register_serializer(PrettyJSONSerializer)\n\n session = requests.Session()\n recorder = Betamax(session)\n with recorder.use_cassette('testpretty', serialize_with='prettyjson'):\n session.request(method=method, url=url, ...)\n\nYAML 1.1 Serializer\n-------------------\n\nTo use the YAML 1.1 Serializer, you **must** ensure that you have ``pyyaml``\ninstalled either by using ``betamax_serializer[yaml11] >= 0.2.0`` as your\ndependency or by explicity adding ``PyYAML`` to your list of dependencies.\n\nUsage:\n\n.. code-block:: python\n\n from betamax import Betamax\n from betamax_serializers.yaml11 import YAMLSerializer\n import requests\n\n Betamax.register_serializer(YAMLSerializer)\n\n session = requests.Session()\n recorder = Betamax(session)\n with recorder.use_cassette('testyaml', serialize_with='yaml11'):\n session.request(method=method, url=url, ...)\n\n\n0.2.1 - 2019-07-27\n------------------\n\n- Fix bug in ``YAMLSerializer`` to work with new files\n\n0.2.0 - 2016-04-12\n------------------\n\n- Add ``YAMLSerializer`` and ``yaml11`` extra for installation\n\n0.1.0 - 2015-06-21\n------------------\n\n- Add ``PrettyJSONSerializer``\n\n\n",
"bugtrack_url": null,
"license": "Apache 2.0",
"summary": "A set of third-party serializers for Betamax",
"version": "0.2.1",
"project_urls": {
"Homepage": "https://gitlab.com/betamax/serializers"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "90729bfb9eabcd19246d377ed05067e7a8c07a41817c7a87c76779700de86fe1",
"md5": "0e1f99dc912e6a25a245fcf14dbc61ad",
"sha256": "1b23c46429c40a8873682854c88d805c787c72d252f3fa0c858e9c300682ceac"
},
"downloads": -1,
"filename": "betamax_serializers-0.2.1-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "0e1f99dc912e6a25a245fcf14dbc61ad",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 4237,
"upload_time": "2019-07-27T13:43:32",
"upload_time_iso_8601": "2019-07-27T13:43:32.439095Z",
"url": "https://files.pythonhosted.org/packages/90/72/9bfb9eabcd19246d377ed05067e7a8c07a41817c7a87c76779700de86fe1/betamax_serializers-0.2.1-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "1941bb325c131204a3feb7f4cf1611d38e6fa676a31615e9513427b115bb0cfa",
"md5": "2d959013419cc9a7e4c1abf2e735e1df",
"sha256": "345c419b1b73171f2951c62ac3c701775ac4b76e13e86464ebf0ff2a978e4949"
},
"downloads": -1,
"filename": "betamax-serializers-0.2.1.tar.gz",
"has_sig": false,
"md5_digest": "2d959013419cc9a7e4c1abf2e735e1df",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3261,
"upload_time": "2019-07-27T13:43:33",
"upload_time_iso_8601": "2019-07-27T13:43:33.962016Z",
"url": "https://files.pythonhosted.org/packages/19/41/bb325c131204a3feb7f4cf1611d38e6fa676a31615e9513427b115bb0cfa/betamax-serializers-0.2.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2019-07-27 13:43:33",
"github": false,
"gitlab": true,
"bitbucket": false,
"codeberg": false,
"gitlab_user": "betamax",
"gitlab_project": "serializers",
"lcname": "betamax-serializers"
}