Python client library for the Storymarket API
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
docs
storymarket
tests
.gitignore
LICENSE
MANIFEST.in
README.rst
TODO
setup.cfg
setup.py

README.rst

Python bindings to the Storymarket API

This is a client for the Storymarket API.

You'll need a Storymarket account to use this library, and you'll need to generate an API token by visiting the Developer API page.

Usage

First create an instance of the API with your creds:

>>> import storymarket
>>> api = storymarket.Storymarket(YOUR_API_KEY)

Then call methods:

>>> api.orgs.all()
[<Org: My Org>]

>>> api.text.create({
...     'title': 'Man Bite Dog',
...     'content': '...',
...     'tags': ['man', 'dog', 'biting'],
...     'org': api.orgs.all()[0],
...     'category': api.categories.get(123)
... })
>>> <Text: Man Bites Dog>

For details, see the documentation and/or Storymarket's API documentation.

Contributing

Development takes place on GitHub; please file bugs/pull requests there.

Development on this project was funded by the Lawrence Journal-World - thanks!