Metadata-Version: 2.0
Name: txdocumint
Version: 18.0.1
Summary: Twisted Python clj-documint client implementation
Home-page: https://github.com/fusionapp/txdocumint
Author: Jonathan Jacobs
Author-email: jonathan@jsphere.com
License: MIT
Description-Content-Type: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: Twisted[tls] (>=15.5.0)
Requires-Dist: treq (>=15.1.0)
Provides-Extra: test
Requires-Dist: pytest (>=2.7.1); extra == 'test'
Requires-Dist: testtools (>=2.0.0); extra == 'test'

==========
txdocumint
==========

Twisted Python client for `clj-documint <https://github.com/fusionapp/clj-documint>`.


Usage
-----

.. code-block:: python

   from StringIO import StringIO
   # inlineCallbacks affords the opportunity to be concise.
   from twisted.internet.defer import inlineCallbacks, returnValue
   from txdocumint import actions, create_session

   @inlineCallbacks
   def render_some_html(html_string):
       session = yield create_session(DOCUMINT_ENDPOINT_URI)
       html_uri = yield session.store_content(StringIO(html_string), 'text/plain')
       pdf_uri = yield session.perform_action(actions.render_html(html_uri))
       returnValue(pdf_uri)


Contribute
----------

See <https://github.com/fusionapp/txdocumint> for details.


