GithubHelp home page GithubHelp logo

coreygirard / puppy Goto Github PK

View Code? Open in Web Editor NEW
14.0 1.0 0.0 49 KB

A pub/sub architecture genetically engineered to make your project simpler, not more complicated. And to be adorable.

License: MIT License

Python 100.00%
pubsub pub-sub publisher-subscriber publish-subscribe python python3 simple elegant easy topic

puppy's Introduction

puppy

Build Status
Code style: black

A featherweight pub/sub architecture genetically engineered to make your project simpler, not more complicated. And to be adorable.

What's in a name?

Publisher–Subscriber + Python → Pub/Sub + .py → Pub + py → puppy

Hello World

import puppy as pup

puppy = pup.Puppy()

pub = puppy.Pub('topic1')
sub = puppy.SubPull('topic1')

pub.send('hello')
pub.send('world')

print(sub.recv_all())
['hello', 'world']

For those unfamiliar with the Pub/Sub pattern, Google and Wikipedia have pretty useful overviews.

Installation

pip install puppy-pubsub

Usage

basic usage

advanced usage

reference

Philosophy

  • Prefer simplicity to speed
  • Do few things elegantly, rather than many things clumsily
  • Puppy is a tool, not a solution

Contributing

guidelines and tutorial

License

MIT

puppy's People

Contributors

coreygirard avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.