Metadata-Version: 2.0
Name: aiofb
Version: 0.1.1
Summary: Asyncio Python client for Facebook API
Home-page: https://github.com/tehamalab/aiofb
Author: Tehamalab
Author-email: developers@tehamalab.com
License: BSD license
Keywords: aiofb
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Requires-Dist: aiohttp

=====
aiofb
=====

.. image:: https://img.shields.io/pypi/v/aiofb.svg
        :target: https://pypi.python.org/pypi/aiofb

.. image:: https://img.shields.io/travis/tehamalab/aiofb.svg
        :target: https://travis-ci.org/tehamalab/aiofb

.. image:: https://readthedocs.org/projects/aiofb/badge/?version=latest
        :target: https://aiofb.readthedocs.io/en/latest/?badge=latest
        :alt: Documentation Status

A thin asynchronous Python wrapper for Facebook graph API.

This library requires Python 3.5+

Installation
-------------
Using pip

.. code-block:: console

    $ pip install tarakimu


Basic usage
------------
Example

.. code-block:: python

    import asyncio
    import aiofb

    # initialize Graph API
    graph = aiofb.GraphAPI(access_token='YOUR_ACCESS_TOKEN')

    async def get_something():
        """Makes a request to some-endpoint."""
        return await graph.get('/{some-endpoint}')

    # Get event loop
    loop = asyncio.get_event_loop()

    # Run it. Usually GraphAP methods return `aiohttp.ClientResponse` object
    response = loop.run_until_complete(get_something())

    # Get payload from response
    payload = loop.run_until_complete(response.json())

More info about aiohttp.ClientResponse can be found at
http://aiohttp.readthedocs.io/en/stable/client_reference.html#response-object


=======
History
=======

0.1.0 (2018-04-06)
------------------

* Packege created.

0.1.1 (2018-05-17)
------------------

* Clean up
* First release on PyPI


