Giter Site home page Giter Site logo

dionyself / flask-job-factory Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 68 KB

Flask based HTTP processing API using RestMQ as queue manager and Redis as KV storage, upload an image or file, and process it using remote workers for your command line based tools.

flask-job-factory's Introduction

Little project using flask + redis + memcached + restmq

just a processing factory for a command line OCR basically the http api frontend puts jobs on restmq queue a worker is polling with a few threads to the restmq queue pickup a job, process it, put the result in a redis key and in a duplicates key, so when the same image come in the worker will pick up the result without call the OCR, and when you poll for the result from the http api it will look for a result on the UID based key.Memcached is used as counter storage. Thats all!

You will need: Python 2.7.x RestMQ Memcached and the Memcache for Python interface Redis and Redis client for Python and Flask. Fire up RestMQ Fire up memcached Fire up Redis and finally: $ python servers/http_api.py

I hope you find this useful.

NOTE: This is not and doesn't include any OCR software!

*This is not too much but is released as GPL, have you heard that? yes! it's GPL'ed!

flask-job-factory's People

Watchers

 avatar

Forkers

miguelivan

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.