A Tickaroo plugin for Livebridge.
It allows to use Tickaroo tickers as target for Livebridge.
Converter from Liveblog to Tickaroo are part of this plugin.
Python>=3.5 is needed.
pip3 install livebridge-tickaroo
The plugin will be automatically detected and included from livebridge at start time, but it has to be available in PYTHONPATH.
See https://pythonhosted.org/livebridge/plugins.html#installing-plugins for more infos.
Under auth:
- client_id - your Tickaroo client_id
- client_secret - your Tickaroo client_secret
Under bridges: and targets:
- type: "tickaroo"
- ticker_id - id from the Tickaroo ticker
- endpoint - the Tickaroo server Endpoint (e.g. https://staging.tickaroo.com/api/v5/ for staging, https://www.tickaroo.com/api/v5/ for live)
Example:
auth:
tickaroo:
client_id: "012345678909876543231XYZ"
client_secret: "XYZ012345678909876543231"
bridges:
- source_id: "56fceedda505e600f7195cch"
endpoint: "https://liveblog.pro/api/"
type: "liveblog"
label: "Example"
targets:
- type: "tickaroo"
ticker_id: "01238XYZ"
auth: "tickaroo"
endpoint: "https://staging.tickaroo.com/api/v5/"
See https://pythonhosted.org/livebridge/control.html for more infos.
Livebridge uses py.test and asynctest for testing.
Run tests:
py.test -v tests/
Config ~/.pypirc
[livebridge-tickaroo]
repository = https://upload.pypi.org/legacy/
username = __token__
password = GET_FROM_PYPI
Commands:
rm -rf dist
python setup.py sdist
python3 -m twine upload dist/livebridge-tickaroo-0.0.*.tar.gz -r livebridge-tickaroo
Copyright 2016 Tickaroo GmbH
Apache License, Version 2.0 - see LICENSE for details