Giter VIP home page Giter VIP logo

python_highlighter's Introduction

Highlighter

Sample Python application that demonstrate the possibility to find and mark text sequence in web page

Install dependencies

To install dependencies run:

pip install -r requirements.txt

Install package

To install highlighter:

pip install -e .

How to run

To run highlighter app (On Windows use set instead of export):

export FLASK_APP=highlighter
flask run

then go to localhost:5000

image

Tests

The application contains tests. To run tests:

pytest -v

Code style check

Code must satisfy PEP008 code style requirements

pylint -r y **/*.py

TODO

  • Create dev branch. You can do it either via Pycharm' menu (see the Pycharm how to for details) or via terminal like this:
git checkout master
git pull
git checkout -b dev
  • Add an implementation to methods in the __init__.py module that covers the demands
    • markup_text
    • highlight_text
  • Add tests to the implemented methods in the tests/test_highlighter.py module. You can find examples of tests on Flask testing howto page.
  • Run tests
  • Run code check
  • Commit and push your local changes to the remote git repository. You can do it either via Pycharm view (Ctrl + K) or via terminal
git commit -a -m 'type your commit message here'
git push origin dev
  • Create MR (merge request). See how to do it here
  • Send the link to the MR to your reviewer

python_highlighter's People

Contributors

onidzelskyi 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.