GithubHelp home page GithubHelp logo

ternya's Introduction

ternya - Openstack notification library for Python

Version 0.1.2
Blog http://ndrlslz.github.io/2016/05/07/Ternya/
Download https://pypi.python.org/pypi/ternya
Source https://github.com/ndrlslz/ternya
Keywords openstack, notification, python, amqp

About

ternya is an openstack notification library for python.

The aim of ternya is to receive openstack notification and deal with notification easily.

Feature

  • Flexible to receive openstack notification, it controlled by config file.

  • Inject service logic according to use annotation. and annotation support wildcard.

  • The ability to auto reconnect openstack mq

Requirements

  • Python 3
  • Works on Linux, Windows. (not tested on Mac OS)

Quick overview

start ternya

from ternya import Ternya

if __name__ == "__main__":
     ternya = Ternya()
     ternya.read("config.ini")
     ternya.work()

deal with notification

from ternya import neutron

@neutron("network.create.start")
def test2(body, message):
    print("this is neutron process")
    print(body['event_type'])
    print(body)

Installation

You can install Ternya either via the Python Package Index (PyPI) or from source. To install using pip:

$ pip install ternya

To install using easy_install:

$ easy_install ternya

To install using source:

python setup.py install

Detail Document

Detail document

Chinese Version

Chinese document

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.