Skip to main content

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

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:

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

Release files for betamax-serializers 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for betamax-serializers 0.2.1
File Size Uploaded
betamax-serializers-0.2.1.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for betamax-serializers 0.2.1
File Interpreter ABI Platform
betamax_serializers-0.2.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 7.5 kB

Release files / betamax-serializers-0.2.1.tar.gz

Download URL betamax-serializers-0.2.1.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
345c419b1b73171f2951c62ac3c701775ac4b76e13e86464ebf0ff2a978e4949
BLAKE2b-256 checksum
How to use checksums
1941bb325c131204a3feb7f4cf1611d38e6fa676a31615e9513427b115bb0cfa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

Release files / betamax_serializers-0.2.1-py2.py3-none-any.whl

Download URL betamax_serializers-0.2.1-py2.py3-none-any.whl
Size 4.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
1b23c46429c40a8873682854c88d805c787c72d252f3fa0c858e9c300682ceac
BLAKE2b-256 checksum
How to use checksums
90729bfb9eabcd19246d377ed05067e7a8c07a41817c7a87c76779700de86fe1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.1

3 release files

0.0.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page