Skip to main content

Python library for Cisco Spark

Project description

Cspark-python `|Build| <https://travis-ci.org/Matvey-Kuk/cspark-python>`_ `|Version| <https://pypi.python.org/pypi/cspark-python>`_ `|Updates| <https://pyup.io/repos/github/matvey-kuk/cspark-python/>`_ `|Python 3| <https://pyup.io/repos/github/matvey-kuk/cspark-python/>`_ `|codecov| <https://codecov.io/gh/Matvey-Kuk/cspark-python>`_
==============================================================================================================================================================================================================================================================================================================================================

Cspark-python is a library for `Cisco
Spark <https://www.ciscospark.com/>`_ bots.

Why Cspark-python?
~~~~~~~~~~~~~~~~~~

1. Spark API provides only one mechanism to notify bot about updates:
Webhooks. "Webhooks require that the Cisco Spark Cloud be able to
reach your backend over HTTP"
`(link) <https://developer.ciscospark.com/webhooks-explained.html#auth>`_
It's not comfortable to develop and test bots on public server so
Cspark-python emulates update mechanism using REST API.
2. Class-based routers and request handlers allow you to use
Django-style project structure for complex projects.
3. Event-based callbacks allows you to build prototype fast.

Howto:
~~~~~~

1. Install with PIP: ``pip install cspark-python``

2. Then go to developer website, `create new
bot <https://developer.ciscospark.com/apps.html>`_ and achieve
**Access Token**. Be careful and don't copy your own **Access Token**
it will cause funny situation.

If you stacked with icon uploading mechanism (as I always do), you
can use random photo of a cat:
https://pbs.twimg.com/profile\_images/562466745340817408/\_nIu8KHX.jpeg

3. Use examples to start your first bot. Don't forget to change **Access
Token**.

Hello, google: **Cisco Spark Python SDK**, **Cisco Spark Python
Framework**, **Cisco Spark Bot**, **Bot For Cisco Spark Example**

Status:
~~~~~~~

- [x] Build prototype
- [ ] Stabilize interfaces
- [ ] UT
- [ ] Document
- [ ] Web Hooks
- [ ] Deploy instructions & Dockerfile
- [ ] Starter Project Repo

.. |Build| image:: https://travis-ci.org/Matvey-Kuk/cspark-python.svg?branch=master
.. |Version| image:: https://img.shields.io/pypi/v/cspark-python.svg
.. |Updates| image:: https://pyup.io/repos/github/matvey-kuk/cspark-python/shield.svg
.. |Python
3| image:: https://pyup.io/repos/github/matvey-kuk/cspark-python/python-3-shield.svg
.. |codecov| image:: https://codecov.io/gh/Matvey-Kuk/cspark-python/branch/master/graph/badge.svg

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cspark-python-0.0.13.tar.gz (5.4 kB view details)

Uploaded Source

File details

Details for the file cspark-python-0.0.13.tar.gz.

File metadata

File hashes

Hashes for cspark-python-0.0.13.tar.gz
Algorithm Hash digest
SHA256 ae425c00a907c92c207e826b67b20fef8303490bac3cdcab9ed0d982334d549b
MD5 599bd97d55cc61cc16ac6a901f0c7f9a
BLAKE2b-256 da6cb470064e03d4f4e325ee98eab614add96e43995a3cda669b0a2ae9ed73f4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page