Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

pypm install cassette

How to install cassette

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install cassette
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
0.2 Available View build log
Linux (64-bit)
0.2 Available View build log
Lastest release
version 0.2 on Aug 4th, 2013

Cassette stores and replays HTTP requests made in your Python app.

System Message: ERROR/3 (<string>, line 6)

Unknown directive type "code".

.. code:: python

    import urllib2

    import cassette

    with cassette.play("data/responses.yaml"):

        # If the request is not already stored in responses.yaml, cassette
        # will request the URL and store its response in the file.
        r = urllib2.urlopen("http://www.internic.net/domain/named.root")

        # This time, the request response must be in the file. The external
        # request is not made. cassette retrieves the response from the
        # file.
        r = urllib2.urlopen("http://www.internic.net/domain/named.root")

    assert "A.ROOT-SERVERS.NET" in r.read(10000)


System Message: ERROR/3 (<string>, line 28)

Unknown directive type "code-block".

.. code-block:: sh

    $ pip install cassette


Latest documentation: uber.github.io/cassette/


cassette is available under the MIT License.

Copyright Uber 2013, Charles-Axel Dein <charles@uber.com>

Subscribe to package updates

Last updated Aug 4th, 2013

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.