Skip to main content

A set of third-party serializers for Betamax

Project description

Experimental set of Serializers for Betamax that may possibly end up in the main package.

Pretty JSON Serializer

Usage:

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, ...)

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

betamax-serializers-0.1.1.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distributions

betamax_serializers-0.1.1-py2.py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 2 Python 3

betamax_serializers-0.1.1-py2-none-any.whl (4.5 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page