Git Product home page Git Product logo

isabella232 / labelgenerator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from statelessdao/labelgenerator

0.0 0.0 0.0 1.41 MB

The LabelGenerator is a simple webapp, build with Flask. It serves png and jpeg image of our labels with dynamic strings on it. You can choose any name/string just via the path to the image. Find a running instance here: labelgenerator.vspace.one.

License: GNU General Public License v3.0

Python 72.31% HTML 26.55% Dockerfile 0.99% Shell 0.15%

labelgenerator's Introduction

Build Status Docker Image

vspace.one e.V. LabelGenerator

The LabelGenerator is a simple webapp, build with Flask. It serves png and jpeg image of our labels with dynamic strings on it. You can choose any name/string just via the path to the image. Find a running instance here: https://labelgenerator.vspace.one/. Or the development branch here: https://dev.labelgenerator.vspace.one/.

API Access

Make requests to

GET http(s)://example.org/<labelname>/<your_name>.png

or

GET http(s)://example.org/<labelname>/<your_name>.jpeg

to receive the requested label as image.

Install

In the following is describe how to install and run the LabelGenerator.

You got the following options:

  • run as native Flask server
  • run via commandline locally
  • run as Docker Container

Install locally

python -m venv .venv
source .venv/bin/activate
pip install opencv-python flask Flask-Caching

Run the commandline tool

The Label Generator can be run as commandline tool. Execute:

source .venv/bin/activate
python src/CMDInterface.py -o <outputfile> -t <text> -l <label>

Alternative opts are -h for help and -v for version.

Run the server

The more common use case is to run the Label Generator as a Webapplication. There for run the following:

source .venv/bin/activate
python src/Server.py -p <port> -i <hostip> -d <debug>

The default port is 5007, the default host ip is 0.0.0.0. Both can be overwritten via opts. The debug flag is either 1 or 0.

TODO: Alternative opts are -h for help and -v for version.

Install as Docker Container

Beside running LabelGenerator locally you can deploy it as Docker Container. Therefore run the following:

docker build -t labelgenerator .
docker run -d -p 5007:5007 labelgenerator

Contribute

We use gitflow for the development. So please use the branch names develop, feature/, ... and use PullRequests for your contributions.

Licence

Please find the licence here licence.

labelgenerator's People

Contributors

djesionek avatar noppelmax 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.