[Python-modules-commits] [betamax] 01/08: Import betamax_0.5.1.orig.tar.gz

Daniele Tricoli eriol-guest at moszumanska.debian.org
Sun Jan 3 19:29:56 UTC 2016


This is an automated email from the git hooks/post-receive script.

eriol-guest pushed a commit to branch master
in repository betamax.

commit 17740df0d5f5a8d4a0b3d3037f3ae48e746cf12d
Author: Daniele Tricoli <eriol at mornie.org>
Date:   Sun Jan 3 16:42:19 2016 +0100

    Import betamax_0.5.1.orig.tar.gz
---
 AUTHORS.rst                                        |  20 ++
 HISTORY.rst                                        | 168 ++++++++++++
 LICENSE                                            |  13 +
 MANIFEST.in                                        |   8 +
 PKG-INFO                                           | 291 +++++++++++++++++++++
 README.rst                                         |  87 ++++++
 betamax.egg-info/PKG-INFO                          | 291 +++++++++++++++++++++
 betamax.egg-info/SOURCES.txt                       |  52 ++++
 betamax.egg-info/dependency_links.txt              |   1 +
 betamax.egg-info/entry_points.txt                  |   3 +
 betamax.egg-info/requires.txt                      |   1 +
 betamax.egg-info/top_level.txt                     |   2 +
 betamax/__init__.py                                |  25 ++
 betamax/adapter.py                                 | 132 ++++++++++
 betamax/cassette/__init__.py                       |   5 +
 betamax/cassette/cassette.py                       | 178 +++++++++++++
 betamax/cassette/headers.py                        | 244 +++++++++++++++++
 betamax/cassette/interaction.py                    |  88 +++++++
 betamax/cassette/mock_response.py                  |  27 ++
 betamax/cassette/util.py                           | 178 +++++++++++++
 betamax/configure.py                               |  78 ++++++
 betamax/decorator.py                               |  59 +++++
 betamax/exceptions.py                              |   6 +
 betamax/fixtures/__init__.py                       |   0
 betamax/fixtures/pytest.py                         |  49 ++++
 betamax/fixtures/unittest.py                       | 114 ++++++++
 betamax/matchers/__init__.py                       |  22 ++
 betamax/matchers/base.py                           |  62 +++++
 betamax/matchers/body.py                           |  21 ++
 betamax/matchers/digest_auth.py                    |  41 +++
 betamax/matchers/headers.py                        |  15 ++
 betamax/matchers/host.py                           |  13 +
 betamax/matchers/method.py                         |  10 +
 betamax/matchers/path.py                           |  13 +
 betamax/matchers/query.py                          |  24 ++
 betamax/matchers/uri.py                            |  32 +++
 betamax/options.py                                 |  84 ++++++
 betamax/recorder.py                                | 168 ++++++++++++
 betamax/serializers/__init__.py                    |  13 +
 betamax/serializers/base.py                        |  91 +++++++
 betamax/serializers/json_serializer.py             |  25 ++
 betamax/serializers/proxy.py                       |  70 +++++
 setup.cfg                                          |   8 +
 setup.py                                           |  61 +++++
 tests/integration/__init__.py                      |   0
 tests/integration/helper.py                        |  17 ++
 tests/integration/test_backwards_compat.py         |  43 +++
 tests/integration/test_fixtures.py                 |  26 ++
 tests/integration/test_multiple_cookies.py         |  42 +++
 tests/integration/test_placeholders.py             |  43 +++
 .../integration/test_preserve_exact_body_bytes.py  |  46 ++++
 tests/integration/test_record_modes.py             | 118 +++++++++
 tests/integration/test_unicode.py                  |  13 +
 53 files changed, 3241 insertions(+)

diff --git a/AUTHORS.rst b/AUTHORS.rst
new file mode 100644
index 0000000..5a640cb
--- /dev/null
+++ b/AUTHORS.rst
@@ -0,0 +1,20 @@
+Development Lead
+----------------
+
+- Ian Cordasco <graffatcolmingov at gmail.com>
+
+Requests
+````````
+
+- Kenneth Reitz <me at kennethreitz.com>
+
+Design Advice
+-------------
+
+- Cory Benfield
+
+Contributors
+------------
+
+- Marc Abramowitz (@msabramo)
+- Bryce Boe <bbzbryce at gmail.com> (@bboe)
diff --git a/HISTORY.rst b/HISTORY.rst
new file mode 100644
index 0000000..2dfb05b
--- /dev/null
+++ b/HISTORY.rst
@@ -0,0 +1,168 @@
+History
+=======
+
+0.5.1 - 2015-10-24
+------------------
+
+- Fix bugs with requests 2.8.x integration
+
+- Fix bugs with older versions of requests that were missing an HTTPHeaderDict
+  implementation
+
+0.5.0 - 2015-07-15
+------------------
+
+- Add unittest integration in ``betamax.fixtures.unittest``
+
+- Add pytest integration in ``betamax.fixtures.pytest``
+
+- Add a decorator as a short cut for ``use_cassette``
+
+- Fix bug where body bytes were not always encoded on Python 3.2+
+
+  Fixed by @bboe
+
+0.4.2 - 2015-04-18
+------------------
+
+- Fix issue #58 reported by @bboe
+
+  Multiple cookies were not being properly stored or replayed after being
+  recorded.
+
+- @leighlondon converted ``__all__`` to a tuple
+
+0.4.1 - 2014-09-24
+------------------
+
+- Fix issue #39 reported by @buttscicles
+
+  This bug did not properly parse the Set-Cookie header with multiple cookies
+  when replaying a recorded response.
+
+0.4.0 - 2014-07-29
+------------------
+
+- Allow the user to pass placeholders to ``Betamax#use_cassette``.
+
+- Include Betamax's version number in cassettes
+
+0.3.2 - 2014-06-05
+------------------
+
+- Fix request and response bodies courtesy of @dgouldin
+
+0.3.1 - 2014-05-28
+------------------
+
+- Fix GitHub Issue #35 - Placeholders were not being properly applied to
+  request bodies. This release fixes that so placeholders are now behave as
+  expected with recorded request bodies.
+
+0.3.0 - 2014-05-23
+------------------
+
+- Add ``Betamax#start`` and ``Betamax#stop`` to allow users to start recording
+  and stop without using a context-manager.
+
+- Add ``digest-auth`` matcher to help users match the right request when using
+  requests' ``HTTPDigestAuth``.
+
+- Reorganize and refactor the cassettes, matchers, and serializers modules.
+
+- Refactor some portions of code a bit.
+
+- ``Cassette.cassette_name`` no longer is the relative path to the file in
+  which the cassette is saved. To access that information use
+  ``Cassette.cassette_path``. The ``cassette_name`` attribute is now the name
+  that you pass to ``Betamax#use_cassette``.
+
+0.2.0 - 2014-04-12
+------------------
+
+- Fix bug where new interactions recorded under ``new_episodes`` or ``all``
+  were not actually saved to disk.
+
+- Match URIs in a far more intelligent way.
+
+- Use the Session's original adapters when making new requests
+
+  In the event the Session has a custom adapter mounted, e.g., the SSLAdapter
+  in requests-toolbelt, then we should probably use that.
+
+- Add ``on_init`` hook to ``BaseMatcher`` so matcher authors can customize
+  initialization
+
+- Add support for custom Serialization formats. See the docs for more info.
+
+- Add support for preserving exact body bytes.
+
+- Deprecate ``serialize`` keyword to ``Betamax#use_cassette`` in preference
+  for ``serialize_with`` (to be more similar to VCR).
+
+0.1.6 - 2013-12-07
+------------------
+
+- Fix how global settings and per-invocation options are persisted and
+  honored. (#10)
+
+- Support ``match_requests_on`` as a parameter sent to
+  ``Betamax#use_cassette``. (No issue)
+
+0.1.5 - 2013-09-27
+------------------
+
+- Make sure what we pass to ``base64.b64decode`` is a bytes object
+
+0.1.4 - 2013-09-27
+------------------
+
+- Do not try to sanitize something that may not exist.
+
+0.1.3 - 2013-09-27
+------------------
+
+- Fix issue when response has a Content-Encoding of gzip and we need to
+  preserve the original bytes of the message.
+
+0.1.2 - 2013-09-21
+------------------
+
+- Fix issues with how requests parses cookies out of responses
+
+- Fix unicode issues with ``Response#text`` (trying to use ``Response#json``
+  raises exception because it cannot use string decoding on a unicode string)
+
+0.1.1 - 2013-09-19
+------------------
+
+- Fix issue where there is a unicode character not in ``range(128)``
+
+0.1.0 - 2013-09-17
+------------------
+
+- Initial Release
+
+- Support for VCR generated cassettes (JSON only)
+
+- Support for ``re_record_interval``
+
+- Support for the ``once``, ``all``, ``new_episodes``, ``all`` cassette modes
+
+- Support for filtering sensitive data
+
+- Support for the following methods of request matching:
+
+  - Method
+
+  - URI
+
+  - Host
+
+  - Path
+
+  - Query String
+
+  - Body
+
+  - Headers
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..7daabdf
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,13 @@
+Copyright 2013 Ian Cordasco
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
diff --git a/MANIFEST.in b/MANIFEST.in
new file mode 100644
index 0000000..9da1ed8
--- /dev/null
+++ b/MANIFEST.in
@@ -0,0 +1,8 @@
+include README.rst
+include LICENSE
+include HISTORY.rst
+include AUTHORS.rst
+recursive-include docs/
+recursive-include tests/
+prune *.pyc
+prune docs/_build
diff --git a/PKG-INFO b/PKG-INFO
new file mode 100644
index 0000000..f7942fb
--- /dev/null
+++ b/PKG-INFO
@@ -0,0 +1,291 @@
+Metadata-Version: 1.1
+Name: betamax
+Version: 0.5.1
+Summary: A VCR imitation for python-requests
+Home-page: https://github.com/sigmavirus24/betamax
+Author: Ian Cordasco
+Author-email: graffatcolmingov at gmail.com
+License: Copyright 2013 Ian Cordasco
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
+Description: betamax
+        =======
+        
+        Betamax is a VCR_ imitation for requests. This will make mocking out requests
+        much easier. It is tested on `Travis CI`_.
+        
+        Put in a more humorous way: "Betamax records your HTTP interactions so the NSA
+        does not have to."
+        
+        Example Use
+        -----------
+        
+        .. code-block:: python
+        
+            from betamax import Betamax
+            from requests import Session
+            from unittest import TestCase
+        
+            with Betamax.configure() as config:
+                config.cassette_library_dir = 'tests/fixtures/cassettes'
+        
+        
+            class TestGitHubAPI(TestCase):
+                def setUp(self):
+                    self.session = Session()
+                    self.headers.update(...)
+        
+                # Set the cassette in a line other than the context declaration
+                def test_user(self):
+                    with Betamax(self.session) as vcr:
+                        vcr.use_cassette('user')
+                        resp = self.session.get('https://api.github.com/user',
+                                                auth=('user', 'pass'))
+                        assert resp.json()['login'] is not None
+        
+                # Set the cassette in line with the context declaration
+                def test_repo(self):
+                    with Betamax(self.session).use_cassette('repo'):
+                        resp = self.session.get(
+                            'https://api.github.com/repos/sigmavirus24/github3.py'
+                            )
+                        assert resp.json()['owner'] != {}
+        
+        What does it even do?
+        ---------------------
+        
+        If you are unfamiliar with VCR_, you might need a better explanation of what
+        Betamax does.
+        
+        Betamax intercepts every request you make and attempts to find a matching
+        request that has already been intercepted and recorded. Two things can then
+        happen:
+        
+        1. If there is a matching request, it will return the response that is
+           associated with it.
+        2. If there is **not** a matching request and it is allowed to record new
+           responses, it will make the request, record the response and return the
+           response.
+        
+        Recorded requests and corresponding responses - also known as interactions -
+        are stored in files called cassettes. (An example cassette can be seen in
+        the `examples section of the documentation`_.) The directory you store your
+        cassettes in is called your library, or your `cassette library`_.
+        
+        VCR Cassette Compatibility
+        --------------------------
+        
+        Betamax can use any VCR-recorded cassette as of this point in time. The only
+        caveat is that python-requests returns a URL on each response. VCR does not
+        store that in a cassette now but we will. Any VCR-recorded cassette used to
+        playback a response will unfortunately not have a URL attribute on responses
+        that are returned. This is a minor annoyance but not something that can be
+        fixed.
+        
+        Contributing
+        ------------
+        
+        You can check out the project board on waffle.io_ to see what the status of
+        each issue is.
+        
+        .. _VCR: https://github.com/vcr/vcr
+        .. _Travis CI: https://travis-ci.org/sigmavirus24/betamax
+        .. _waffle.io: https://waffle.io/sigmavirus24/betamax
+        .. _examples section of the documentation:
+            http://betamax.readthedocs.org/en/latest/api.html#examples
+        .. _cassette library:
+            http://betamax.readthedocs.org/en/latest/cassettes.html
+        
+        
+        History
+        =======
+        
+        0.5.1 - 2015-10-24
+        ------------------
+        
+        - Fix bugs with requests 2.8.x integration
+        
+        - Fix bugs with older versions of requests that were missing an HTTPHeaderDict
+          implementation
+        
+        0.5.0 - 2015-07-15
+        ------------------
+        
+        - Add unittest integration in ``betamax.fixtures.unittest``
+        
+        - Add pytest integration in ``betamax.fixtures.pytest``
+        
+        - Add a decorator as a short cut for ``use_cassette``
+        
+        - Fix bug where body bytes were not always encoded on Python 3.2+
+        
+          Fixed by @bboe
+        
+        0.4.2 - 2015-04-18
+        ------------------
+        
+        - Fix issue #58 reported by @bboe
+        
+          Multiple cookies were not being properly stored or replayed after being
+          recorded.
+        
+        - @leighlondon converted ``__all__`` to a tuple
+        
+        0.4.1 - 2014-09-24
+        ------------------
+        
+        - Fix issue #39 reported by @buttscicles
+        
+          This bug did not properly parse the Set-Cookie header with multiple cookies
+          when replaying a recorded response.
+        
+        0.4.0 - 2014-07-29
+        ------------------
+        
+        - Allow the user to pass placeholders to ``Betamax#use_cassette``.
+        
+        - Include Betamax's version number in cassettes
+        
+        0.3.2 - 2014-06-05
+        ------------------
+        
+        - Fix request and response bodies courtesy of @dgouldin
+        
+        0.3.1 - 2014-05-28
+        ------------------
+        
+        - Fix GitHub Issue #35 - Placeholders were not being properly applied to
+          request bodies. This release fixes that so placeholders are now behave as
+          expected with recorded request bodies.
+        
+        0.3.0 - 2014-05-23
+        ------------------
+        
+        - Add ``Betamax#start`` and ``Betamax#stop`` to allow users to start recording
+          and stop without using a context-manager.
+        
+        - Add ``digest-auth`` matcher to help users match the right request when using
+          requests' ``HTTPDigestAuth``.
+        
+        - Reorganize and refactor the cassettes, matchers, and serializers modules.
+        
+        - Refactor some portions of code a bit.
+        
+        - ``Cassette.cassette_name`` no longer is the relative path to the file in
+          which the cassette is saved. To access that information use
+          ``Cassette.cassette_path``. The ``cassette_name`` attribute is now the name
+          that you pass to ``Betamax#use_cassette``.
+        
+        0.2.0 - 2014-04-12
+        ------------------
+        
+        - Fix bug where new interactions recorded under ``new_episodes`` or ``all``
+          were not actually saved to disk.
+        
+        - Match URIs in a far more intelligent way.
+        
+        - Use the Session's original adapters when making new requests
+        
+          In the event the Session has a custom adapter mounted, e.g., the SSLAdapter
+          in requests-toolbelt, then we should probably use that.
+        
+        - Add ``on_init`` hook to ``BaseMatcher`` so matcher authors can customize
+          initialization
+        
+        - Add support for custom Serialization formats. See the docs for more info.
+        
+        - Add support for preserving exact body bytes.
+        
+        - Deprecate ``serialize`` keyword to ``Betamax#use_cassette`` in preference
+          for ``serialize_with`` (to be more similar to VCR).
+        
+        0.1.6 - 2013-12-07
+        ------------------
+        
+        - Fix how global settings and per-invocation options are persisted and
+          honored. (#10)
+        
+        - Support ``match_requests_on`` as a parameter sent to
+          ``Betamax#use_cassette``. (No issue)
+        
+        0.1.5 - 2013-09-27
+        ------------------
+        
+        - Make sure what we pass to ``base64.b64decode`` is a bytes object
+        
+        0.1.4 - 2013-09-27
+        ------------------
+        
+        - Do not try to sanitize something that may not exist.
+        
+        0.1.3 - 2013-09-27
+        ------------------
+        
+        - Fix issue when response has a Content-Encoding of gzip and we need to
+          preserve the original bytes of the message.
+        
+        0.1.2 - 2013-09-21
+        ------------------
+        
+        - Fix issues with how requests parses cookies out of responses
+        
+        - Fix unicode issues with ``Response#text`` (trying to use ``Response#json``
+          raises exception because it cannot use string decoding on a unicode string)
+        
+        0.1.1 - 2013-09-19
+        ------------------
+        
+        - Fix issue where there is a unicode character not in ``range(128)``
+        
+        0.1.0 - 2013-09-17
+        ------------------
+        
+        - Initial Release
+        
+        - Support for VCR generated cassettes (JSON only)
+        
+        - Support for ``re_record_interval``
+        
+        - Support for the ``once``, ``all``, ``new_episodes``, ``all`` cassette modes
+        
+        - Support for filtering sensitive data
+        
+        - Support for the following methods of request matching:
+        
+          - Method
+        
+          - URI
+        
+          - Host
+        
+          - Path
+        
+          - Query String
+        
+          - Body
+        
+          - Headers
+        
+Platform: UNKNOWN
+Classifier: Development Status :: 4 - Beta
+Classifier: License :: OSI Approved
+Classifier: Intended Audience :: Developers
+Classifier: Programming Language :: Python
+Classifier: Programming Language :: Python :: 2
+Classifier: Programming Language :: Python :: 2.6
+Classifier: Programming Language :: Python :: 2.7
+Classifier: Programming Language :: Python :: 3
+Classifier: Programming Language :: Python :: 3.2
+Classifier: Programming Language :: Python :: 3.3
+Classifier: Programming Language :: Python :: Implementation :: CPython
diff --git a/README.rst b/README.rst
new file mode 100644
index 0000000..40e8894
--- /dev/null
+++ b/README.rst
@@ -0,0 +1,87 @@
+betamax
+=======
+
+Betamax is a VCR_ imitation for requests. This will make mocking out requests
+much easier. It is tested on `Travis CI`_.
+
+Put in a more humorous way: "Betamax records your HTTP interactions so the NSA
+does not have to."
+
+Example Use
+-----------
+
+.. code-block:: python
+
+    from betamax import Betamax
+    from requests import Session
+    from unittest import TestCase
+
+    with Betamax.configure() as config:
+        config.cassette_library_dir = 'tests/fixtures/cassettes'
+
+
+    class TestGitHubAPI(TestCase):
+        def setUp(self):
+            self.session = Session()
+            self.headers.update(...)
+
+        # Set the cassette in a line other than the context declaration
+        def test_user(self):
+            with Betamax(self.session) as vcr:
+                vcr.use_cassette('user')
+                resp = self.session.get('https://api.github.com/user',
+                                        auth=('user', 'pass'))
+                assert resp.json()['login'] is not None
+
+        # Set the cassette in line with the context declaration
+        def test_repo(self):
+            with Betamax(self.session).use_cassette('repo'):
+                resp = self.session.get(
+                    'https://api.github.com/repos/sigmavirus24/github3.py'
+                    )
+                assert resp.json()['owner'] != {}
+
+What does it even do?
+---------------------
+
+If you are unfamiliar with VCR_, you might need a better explanation of what
+Betamax does.
+
+Betamax intercepts every request you make and attempts to find a matching
+request that has already been intercepted and recorded. Two things can then
+happen:
+
+1. If there is a matching request, it will return the response that is
+   associated with it.
+2. If there is **not** a matching request and it is allowed to record new
+   responses, it will make the request, record the response and return the
+   response.
+
+Recorded requests and corresponding responses - also known as interactions -
+are stored in files called cassettes. (An example cassette can be seen in
+the `examples section of the documentation`_.) The directory you store your
+cassettes in is called your library, or your `cassette library`_.
+
+VCR Cassette Compatibility
+--------------------------
+
+Betamax can use any VCR-recorded cassette as of this point in time. The only
+caveat is that python-requests returns a URL on each response. VCR does not
+store that in a cassette now but we will. Any VCR-recorded cassette used to
+playback a response will unfortunately not have a URL attribute on responses
+that are returned. This is a minor annoyance but not something that can be
+fixed.
+
+Contributing
+------------
+
+You can check out the project board on waffle.io_ to see what the status of
+each issue is.
+
+.. _VCR: https://github.com/vcr/vcr
+.. _Travis CI: https://travis-ci.org/sigmavirus24/betamax
+.. _waffle.io: https://waffle.io/sigmavirus24/betamax
+.. _examples section of the documentation:
+    http://betamax.readthedocs.org/en/latest/api.html#examples
+.. _cassette library:
+    http://betamax.readthedocs.org/en/latest/cassettes.html
diff --git a/betamax.egg-info/PKG-INFO b/betamax.egg-info/PKG-INFO
new file mode 100644
index 0000000..f7942fb
--- /dev/null
+++ b/betamax.egg-info/PKG-INFO
@@ -0,0 +1,291 @@
+Metadata-Version: 1.1
+Name: betamax
+Version: 0.5.1
+Summary: A VCR imitation for python-requests
+Home-page: https://github.com/sigmavirus24/betamax
+Author: Ian Cordasco
+Author-email: graffatcolmingov at gmail.com
+License: Copyright 2013 Ian Cordasco
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
+Description: betamax
+        =======
+        
+        Betamax is a VCR_ imitation for requests. This will make mocking out requests
+        much easier. It is tested on `Travis CI`_.
+        
+        Put in a more humorous way: "Betamax records your HTTP interactions so the NSA
+        does not have to."
+        
+        Example Use
+        -----------
+        
+        .. code-block:: python
+        
+            from betamax import Betamax
+            from requests import Session
+            from unittest import TestCase
+        
+            with Betamax.configure() as config:
+                config.cassette_library_dir = 'tests/fixtures/cassettes'
+        
+        
+            class TestGitHubAPI(TestCase):
+                def setUp(self):
+                    self.session = Session()
+                    self.headers.update(...)
+        
+                # Set the cassette in a line other than the context declaration
+                def test_user(self):
+                    with Betamax(self.session) as vcr:
+                        vcr.use_cassette('user')
+                        resp = self.session.get('https://api.github.com/user',
+                                                auth=('user', 'pass'))
+                        assert resp.json()['login'] is not None
+        
+                # Set the cassette in line with the context declaration
+                def test_repo(self):
+                    with Betamax(self.session).use_cassette('repo'):
+                        resp = self.session.get(
+                            'https://api.github.com/repos/sigmavirus24/github3.py'
+                            )
+                        assert resp.json()['owner'] != {}
+        
+        What does it even do?
+        ---------------------
+        
+        If you are unfamiliar with VCR_, you might need a better explanation of what
+        Betamax does.
+        
+        Betamax intercepts every request you make and attempts to find a matching
+        request that has already been intercepted and recorded. Two things can then
+        happen:
+        
+        1. If there is a matching request, it will return the response that is
+           associated with it.
+        2. If there is **not** a matching request and it is allowed to record new
+           responses, it will make the request, record the response and return the
+           response.
+        
+        Recorded requests and corresponding responses - also known as interactions -
+        are stored in files called cassettes. (An example cassette can be seen in
+        the `examples section of the documentation`_.) The directory you store your
+        cassettes in is called your library, or your `cassette library`_.
+        
+        VCR Cassette Compatibility
+        --------------------------
+        
+        Betamax can use any VCR-recorded cassette as of this point in time. The only
+        caveat is that python-requests returns a URL on each response. VCR does not
+        store that in a cassette now but we will. Any VCR-recorded cassette used to
+        playback a response will unfortunately not have a URL attribute on responses
+        that are returned. This is a minor annoyance but not something that can be
+        fixed.
+        
+        Contributing
+        ------------
+        
+        You can check out the project board on waffle.io_ to see what the status of
+        each issue is.
+        
+        .. _VCR: https://github.com/vcr/vcr
+        .. _Travis CI: https://travis-ci.org/sigmavirus24/betamax
+        .. _waffle.io: https://waffle.io/sigmavirus24/betamax
+        .. _examples section of the documentation:
+            http://betamax.readthedocs.org/en/latest/api.html#examples
+        .. _cassette library:
+            http://betamax.readthedocs.org/en/latest/cassettes.html
+        
+        
+        History
+        =======
+        
+        0.5.1 - 2015-10-24
+        ------------------
+        
+        - Fix bugs with requests 2.8.x integration
+        
+        - Fix bugs with older versions of requests that were missing an HTTPHeaderDict
+          implementation
+        
+        0.5.0 - 2015-07-15
+        ------------------
+        
+        - Add unittest integration in ``betamax.fixtures.unittest``
+        
+        - Add pytest integration in ``betamax.fixtures.pytest``
+        
+        - Add a decorator as a short cut for ``use_cassette``
+        
+        - Fix bug where body bytes were not always encoded on Python 3.2+
+        
+          Fixed by @bboe
+        
+        0.4.2 - 2015-04-18
+        ------------------
+        
+        - Fix issue #58 reported by @bboe
+        
+          Multiple cookies were not being properly stored or replayed after being
+          recorded.
+        
+        - @leighlondon converted ``__all__`` to a tuple
+        
+        0.4.1 - 2014-09-24
+        ------------------
+        
+        - Fix issue #39 reported by @buttscicles
+        
+          This bug did not properly parse the Set-Cookie header with multiple cookies
+          when replaying a recorded response.
+        
+        0.4.0 - 2014-07-29
+        ------------------
+        
+        - Allow the user to pass placeholders to ``Betamax#use_cassette``.
+        
+        - Include Betamax's version number in cassettes
+        
+        0.3.2 - 2014-06-05
+        ------------------
+        
+        - Fix request and response bodies courtesy of @dgouldin
+        
+        0.3.1 - 2014-05-28
+        ------------------
+        
+        - Fix GitHub Issue #35 - Placeholders were not being properly applied to
+          request bodies. This release fixes that so placeholders are now behave as
+          expected with recorded request bodies.
+        
+        0.3.0 - 2014-05-23
+        ------------------
+        
+        - Add ``Betamax#start`` and ``Betamax#stop`` to allow users to start recording
+          and stop without using a context-manager.
+        
+        - Add ``digest-auth`` matcher to help users match the right request when using
+          requests' ``HTTPDigestAuth``.
+        
+        - Reorganize and refactor the cassettes, matchers, and serializers modules.
+        
+        - Refactor some portions of code a bit.
+        
+        - ``Cassette.cassette_name`` no longer is the relative path to the file in
+          which the cassette is saved. To access that information use
+          ``Cassette.cassette_path``. The ``cassette_name`` attribute is now the name
+          that you pass to ``Betamax#use_cassette``.
+        
+        0.2.0 - 2014-04-12
+        ------------------
+        
+        - Fix bug where new interactions recorded under ``new_episodes`` or ``all``
+          were not actually saved to disk.
+        
+        - Match URIs in a far more intelligent way.
+        
+        - Use the Session's original adapters when making new requests
+        
+          In the event the Session has a custom adapter mounted, e.g., the SSLAdapter
+          in requests-toolbelt, then we should probably use that.
+        
+        - Add ``on_init`` hook to ``BaseMatcher`` so matcher authors can customize
+          initialization
+        
+        - Add support for custom Serialization formats. See the docs for more info.
+        
+        - Add support for preserving exact body bytes.
+        
+        - Deprecate ``serialize`` keyword to ``Betamax#use_cassette`` in preference
+          for ``serialize_with`` (to be more similar to VCR).
+        
+        0.1.6 - 2013-12-07
+        ------------------
+        
+        - Fix how global settings and per-invocation options are persisted and
+          honored. (#10)
+        
+        - Support ``match_requests_on`` as a parameter sent to
+          ``Betamax#use_cassette``. (No issue)
+        
+        0.1.5 - 2013-09-27
+        ------------------
+        
+        - Make sure what we pass to ``base64.b64decode`` is a bytes object
+        
+        0.1.4 - 2013-09-27
+        ------------------
+        
+        - Do not try to sanitize something that may not exist.
+        
+        0.1.3 - 2013-09-27
+        ------------------
+        
+        - Fix issue when response has a Content-Encoding of gzip and we need to
+          preserve the original bytes of the message.
+        
+        0.1.2 - 2013-09-21
+        ------------------
+        
+        - Fix issues with how requests parses cookies out of responses
+        
+        - Fix unicode issues with ``Response#text`` (trying to use ``Response#json``
+          raises exception because it cannot use string decoding on a unicode string)
+        
+        0.1.1 - 2013-09-19
+        ------------------
+        
+        - Fix issue where there is a unicode character not in ``range(128)``
+        
+        0.1.0 - 2013-09-17
+        ------------------
+        
+        - Initial Release
+        
+        - Support for VCR generated cassettes (JSON only)
+        
+        - Support for ``re_record_interval``
+        
+        - Support for the ``once``, ``all``, ``new_episodes``, ``all`` cassette modes
+        
+        - Support for filtering sensitive data
+        
+        - Support for the following methods of request matching:
+        
+          - Method
+        
+          - URI
+        
+          - Host
+        
+          - Path
+        
+          - Query String
+        
+          - Body
+        
+          - Headers
+        
+Platform: UNKNOWN
+Classifier: Development Status :: 4 - Beta
+Classifier: License :: OSI Approved
+Classifier: Intended Audience :: Developers
+Classifier: Programming Language :: Python
+Classifier: Programming Language :: Python :: 2
+Classifier: Programming Language :: Python :: 2.6
+Classifier: Programming Language :: Python :: 2.7
+Classifier: Programming Language :: Python :: 3
+Classifier: Programming Language :: Python :: 3.2
+Classifier: Programming Language :: Python :: 3.3
+Classifier: Programming Language :: Python :: Implementation :: CPython
diff --git a/betamax.egg-info/SOURCES.txt b/betamax.egg-info/SOURCES.txt
new file mode 100644
index 0000000..492e7c2
--- /dev/null
+++ b/betamax.egg-info/SOURCES.txt
@@ -0,0 +1,52 @@
+AUTHORS.rst
+HISTORY.rst
+LICENSE
+MANIFEST.in
+README.rst
+setup.cfg
+setup.py
+betamax/__init__.py
+betamax/adapter.py
+betamax/configure.py
+betamax/decorator.py
+betamax/exceptions.py
+betamax/options.py
... 2615 lines suppressed ...

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/betamax.git



More information about the Python-modules-commits mailing list