Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Python client library for the Storymarket API

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 docs
Octocat-spinner-32 storymarket
Octocat-spinner-32 tests
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 MANIFEST.in
Octocat-spinner-32 README.rst
Octocat-spinner-32 TODO
Octocat-spinner-32 setup.cfg
Octocat-spinner-32 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!

Something went wrong with that request. Please try again.