Metadata-Version: 2.2
Name: bazooka
Version: 0.0.3
Summary: Reliable HTTP client
Home-page: http://blog.pound-of-nails.com
Author: Alexey Zasimov
Author-email: zasimov@gmail.com
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
License-File: LICENSE
License-File: AUTHORS
Requires-Dist: pbr==5.1.1
Requires-Dist: requests==2.20.0
Requires-Dist: pyretries
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: home-page
Dynamic: requires-dist
Dynamic: summary

Bazooka - reliable HTTP client
==============================

.. image:: https://travis-ci.org/phantomii/bazooka.svg?branch=master
    :target: https://travis-ci.org/phantomii/bazooka

Features:

* retries out of box
* full-compatible interface with requests
* by default client raises exception if status code isn't 2xx
* curl-like logging out of box
* correlation-id support


Example
=======

.. code-block:: python

  >>  from bazooka import client
  >>
  >>  c = client.Client()
  >>
  >>  print c.get('http://eis/').json()

or

.. code-block:: python

  >>  import bazooka
  >>
  >>  c = bazooka.Client(...)


Duration logging is enabled by default for client.
You can use log_duration flag to enable duration logging

.. code-block:: python

  >>  c = client.Client(log_duration=False)

or

.. code-block:: python

  >>  c.log_duration = False


TODO
====

  * timeouts support

