Giter Club home page Giter Club logo

shirow's Introduction

build pypi npm

Shirow

Shirow

Shirow is an RPC server framework based on top of Tornado. It relies on the WebSocket protocol for transport and uses JSON-messages as payload.

The primary goal of Shirow is to simplify creating microservices using Tornado, allowing clients to leverage some of the Django facilities such as the Django authentication system. Thus, Shirow might help with the task of creating (micro)services which require the clients to be authenticated via the Django authentication system.

The project was named after Masamune Shirow, a mangaka who is best known for such mangas as Black Magic, Appleseed and Ghost in the Shell.

Features

  • Each (micro)service built using Shirow is an RPC server that relies on the WebSocket protocol for transport and uses JSON-messages as payload.
  • Shirow expands the Tornado implementation of the WebSocket protocol with an JWT-based authentication layer. So, a client has to pass a valid JWT token to the RPC server, which was received after a successful authentication procedure, to prove Shirow that it's an authenticated.
  • Shirow is fully compatible with the JWT tokens provided by Simple JWT, a JSON Web Token authentication plugin for the Django REST Framework. The main requirement to JWT tokens is they must contain the following fields:
    • user_id: the id of the user the the request was sent on behalf of;
    • exp: the expiration time stored as an absolute Unix timestamp.
  • The clients can be written in JavaScript using the Shirow NPM package.

Authors

See AUTHORS.

Licensing

Shirow is available under the Apache License, Version 2.0.

shirow's People

Contributors

cusdeb avatar denismosolov avatar dependabot[bot] avatar eugulixes avatar karpa4o4 avatar one001 avatar polina-popova avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

eugenedev87

shirow's Issues

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.