A set of third-party serializers for Betamax
Project description
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Description: 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.yaml 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.0 - 2016-04-12
------------------
- Add ``YAMLSerializer`` and ``yaml11`` extra for installation
0.1.0 - 2015-06-21
------------------
- Add ``PrettyJSONSerializer``
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: Implementation :: CPython
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Description: 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.yaml 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.0 - 2016-04-12
------------------
- Add ``YAMLSerializer`` and ``yaml11`` extra for installation
0.1.0 - 2015-06-21
------------------
- Add ``PrettyJSONSerializer``
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: Implementation :: CPython
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
Built Distribution
File details
Details for the file betamax-serializers-0.2.0.tar.gz
.
File metadata
- Download URL: betamax-serializers-0.2.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6da087c90317b2bef74972f314f26f97d5cfa3d99c11f02eed94540244e71ffb |
|
MD5 | fdbe36e46816ca1f697cb2a67e5478d9 |
|
BLAKE2b-256 | a1054bc8046928325f11b6cfbe5d8086a17d6c93c6d39874c3c5ab51b56f12b8 |
File details
Details for the file betamax_serializers-0.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: betamax_serializers-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7c4bd96f71d763debbec21e09bea932613cf651c2055514e6fd889358a46e3e |
|
MD5 | 37dbe828e4fe0b75698d876f1d8a490b |
|
BLAKE2b-256 | 62cc2b9395bbd45ef045f1b87f7fd81689043c37b989ded0d9b83c55a931993c |