Giter Site home page Giter Site logo

houseblaster / signatures Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anticompositenumber/signatures

0.0 0.0 0.0 686 KB

Validates user signatures, checking for technical and policy issues

Home Page: https://signatures.toolforge.org

License: GNU Affero General Public License v3.0

Shell 0.43% Python 83.99% HTML 15.58%

signatures's Introduction

signatures

GitHub Workflow Status Uptime Robot status Coverage Status Python version 3.9 Code style: black

Validates user signatures, checking for technical and policy issues

Operation

This tool consists of two parts: a webservice and a backend batch report runner.

Webservice

On Toolforge, the repo is symlinked to ~/www/python/

To start the webservice, run webservice --backend=kubernetes python3.9 start

To stop the webservice, run webservice stop

Batch reports

On Toolforge, reports are run from a Kubernetes Job. A custom script is used to start the job. Any arguments passed to the start script will be passed to the report script.

See python3 src/sigprobs.py --help for CLI details.

To create or update a report, run ./sigprobs_start.py <site>

For example, a report for the English Wikipedia can be run with ./sigprobs_start.py en.wikipedia.org

Translating

$ cd src/
$ pybabel extract -F babel.cfg -k N_ -o messages.pot .  # Extract translatable strings
$ pybabel update -d translations/ -i messages.pot  # Update existing message catalogs
$ pybabel init -i messages.pot -d translations/ -l <lang>  # Create new message catalog

Update the translations in src/translations/<lang>/LC_MESSAGES/messages.po

$ pybabel compile -d translations

signatures's People

Contributors

anticompositenumber avatar dependabot[bot] avatar houseblaster 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.