'''
Scribe client
=============

This is a Python client for scribe that can be installed using pip::

    pip install facebook-scribe


Usage
-----

Connect to ``HOST:9999`` using *Thrift*::

    from scribe import scribe
    from thrift.transport import TTransport, TSocket
    from thrift.protocol import TBinaryProtocol

    socket = TSocket.TSocket(host="HOST", port=9999)
    transport = TTransport.TFramedTransport(socket)
    protocol = TBinaryProtocol.TBinaryProtocol(trans=transport, strictRead=False, strictWrite=False)
    client = scribe.Client(protocol)
    transport.open()

    category = 'LOGS'
    message = 'hello world'

    log_entry = scribe.LogEntry(category, message)
    result = client.Log(messages=[log_entry])
    if result == 0:
      print 'success'


Links
-----

* `Facebook Scribe on GitHub <https://github.com/facebook/scribe>`_

'''

try:
	from setuptools import setup
except ImportError:
	from distutils.core import setup

setup(name='facebook-scribe-py3',
      version='0.1',
      url='http://github.com/vears91/scribe-python/',
      author='Tom Primozic',
      author_email='tom.primozic@zemanta.com',
      description='A Python 3-compatible client for Facebook Scribe',
      long_description=__doc__,
      packages=['fb303', 'scribe'],
      install_requires=['thrift>=0.9.0'],
)
