Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

betamax-serializers

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

betamax-serializers

A set of third-party serializers for Betamax

  • 0.2.1
  • PyPI
  • Socket score

Maintainers
1

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

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc