Giter Site home page Giter Site logo

hieroglyphics's Introduction

Build Status

Coverage

Quality Gate

GitHub issues

Releases

License

Language

GitHub code size in bytes

English to Hieroglyphics Transliterator

The English to hieroglyphics transliterator is an application for performing a simplistic transliteration of words and phrases entered in English to their hieroglyphic equivalent.

Structure

Package Contents
hieroglyphics.transliteration Business logic for the application
hieroglyphics.web A simple Flask-based web site providing a user-interface

Running the Application

Pre-requisites

To run the application, a virtual environment should be created, the requirements should be installed using pip and the environment should be activated.

Running the Web Application

To run the web-based application in the Flask development web server, enter the following from the root of the working copy of the project:

::

export PYTHONPATH=`pwd`/src export FLASK_DEBUG=1 python -m hieroglyphics

The first four commands will need to be modified based on the current operating system. Once the development server is running, browse to the following URL in a web browser:

http://127.0.0.1:5000/

Unit Tests and Coverage

To run the unit tests, a virtual environment should be created, the requirements should be installed using pip and the environment should be activated.

The tests can then be run from the command line, at the root of the project folder, as follows:

export PYTHONPATH=`pwd`/src/
python -m pytest

The first command adds the source folder, containing the packages under test, to the PYTHONPATH environment variable so the packages will be found when the tests attempt to import them. The command will need to be modified based on the current operating system.

Similarly, a coverage report can be generated by running the following commands from the root of the project folder:

export PYTHONPATH=`pwd`/src/
python -m pytest --cov=src --cov-branch --cov-report html

This will create a folder "htmlcov" containing the coverage report in HTML format.

Generating Documentation

To generate the documentation, a virtual environment should be created, the requirements should be installed using pip and the environment should be activated.

HTML documentation can then be created by running the following commands from the "docs" sub-folder:

export PYTHONPATH=`pwd`/../src/
make html

The resulting documentation is written to the docs/build/html folder and can be viewed by opening "index.html" in a web browser.

Dependencies

The application has dependencies listed in requirements.txt.

Distribution

A distribution can be created by running the following from a command prompt at the root of the project:

pip install wheel
python setup.py bdist_wheel

Note that the project's virtual environment should not be activated when creating distributions.

License

This software is licensed under the MIT License:

https://opensource.org/licenses/MIT

Copyright 2022 David Walker

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

hieroglyphics's People

Contributors

davewalker5 avatar

Stargazers

Ilona Brinkmeier avatar

Watchers

 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.