semvec/pypi-packages huggingface dataset:
younited 1.0.0
Python library for YOUnited
Keywords: younited

# Python Library for YOUnited

**Stable**

[![docs master](https://readthedocs.org/projects/python-bitshares/badge/?version=latest)](http://python-bitshares.readthedocs.io/en/latest/)
[![Travis master](https://travis-ci.org/xeroc/python-bitshares.png?branch=master)](https://travis-ci.org/xeroc/python-bitshares)
[![codecov](https://codecov.io/gh/xeroc/python-bitshares/branch/master/graph/badge.svg)](https://codecov.io/gh/xeroc/python-bitshares)

**Develop**

[![docs develop](https://readthedocs.org/projects/python-bitshares/badge/?version=develop)](http://python-bitshares.readthedocs.io/en/develop/)
[![Travis develop](https://travis-ci.org/xeroc/python-bitshares.png?branch=develop)](https://travis-ci.org/xeroc/python-bitshares)
[![codecov develop](https://codecov.io/gh/xeroc/python-bitshares/branch/develop/graph/badge.svg)](https://codecov.io/gh/xeroc/python-bitshares)

---

## Documentation

Visit the [pybitshares website](http://docs.pybitshares.com/en/latest/) for in depth documentation on this Python library.

## Installation

### Install with pip3:
```
$ sudo apt-get install libffi-dev libssl-dev python-dev python3-dev python3-pip
$ pip3 install younited
```

### Manual installation:
```
$ git clone git@gitlab.com:cryptohouse/younited/python-younited.git
$ cd python-younited
$ python3 setup.py install --user
```

### Upgrade
```
$ pip3 install --user --upgrade
```
chain-py 0.1.7
An expressive clean way to interact with RESTful APIs.

chain
=====

.. image:: https://img.shields.io/pypi/v/chain-py.svg
    :target: https://pypi.python.org/pypi/chain-py/
    :alt: Latest PyPI version

.. image:: https://travis-ci.org/ajpen/chain.svg?branch=master
    :target: https://travis-ci.org/ajpen/chain
    :alt: Latest Travis CI build status

An expressive clean way to interact with REsTful APIs. It was inspired by `zmallen's pygraylog`_.

Chain is a small enhancement to the popular `requests`_ package. By referencing the endpoints as
attributes to the client, it effectively "chains" the endpoints together, building the target url.

Chain is an attempt to make REsTful API clients look more like python objects, by removing the
hardcoded URL strings in the code.

Chain uses the `requests`_ package as its http client, keeping its parameters and response objects.
If you already use `requests`_ as your http client, then adopting chain would be easy.

Usage
-----

Lets take for example `this API`_:

.. code-block:: pycon

    # create a new client for the API
    >>> import chain
    >>> blogs = chain.Client('http://jsonplaceholder.typicode.com')

    # if you want the posts:
    >>> response = blogs.get.posts()

    # the response is the response object from the requests package
    >>> print response.json()


Numbers and special characters are also supported using dictionary notation

.. code-block:: pycon

    # Get the first post
    >>> response = blogs.get.posts[1]()
    >>> print response.json()


chain parameters are requests.requests parameters:

.. code-block:: pycon

    # parameters are the same as requests.requests parameters
    >>> response = blogs.get.comments(params={'postId': '1'})
    >>> print response.json()

    >>> comment = {'postId': 1, 'id':501, 'name':'chain', 'email':'chain@code.com', 'body':'meh.'}
    >>> response = blogs.post.comments(json=comment)


Installation
------------
::

    pip install chain_py


Testing
-------
::

    python setup.py test

Or:
::

    tox


Compatibility
-------------

Works with Python version 2.7, 3.3, 3.4, 3.5 and 3.6


Licence
-------
MIT licensed. Requests is licensed by the Apache License. See full `LICENSE`_

Authors
-------

`chain` was written by `Anfernee Jervis <anferneejervis@gmail.com>`_.


.. _this API: https://jsonplaceholder.typicode.com/
.. _LICENSE: https://github.com/ajpen/chain/blob/master/LICENSE.md
.. _`zmallen's pygraylog`: https://github.com/zmallen/pygraylog
.. _requests: https://pypi.python.org/pypi/requests