betamax_serializers
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
Metadata
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)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| betamax-serializers-0.2.1.tar.gz | 3.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| betamax_serializers-0.2.1-py2.py3-none-any.whl | Python 3, Python 2 | 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
|
Security for betamax-serializers 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.