Skip to content

Matvey-Kuk/cspark-python

Repository files navigation

Cspark-python Build Version Updates Python 3 codecov

Cspark-python is a library for Cisco Spark 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) 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
  1. Then go to developer website, create new bot 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

  1. 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:

  • Build prototype
  • Stabilize interfaces
  • UT
  • Document
  • Web Hooks
  • Deploy instructions & Dockerfile
  • Starter Project Repo

Releases

No releases published

Packages

No packages published

Languages