nikhilraju / polyglot

A skeleton python service to wrap calls made to Google Translate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

polyglot

What is This?

A skeleton python service to wrap calls made to Google Translate.

pipenv

This project uses pipenv

Pipenv automatically creates and manages a virtualenv for your projects, as well as adds/removes packages from your Pipfile as you install/uninstall packages. It also generates the ever-important Pipfile.lock, which is used to produce deterministic builds.

To install pipenv:

pip install pipenv

To install the dependencies mentioned in Pipfile.lock:

pipenv install

To generate Pipfile.lock and installs all packages in it:

pipenv update

To sync the dev requirements

pipenv sync --dev

To install a 3rd party package

pipenv install <name-of-package e.g flask==0.12.1> 

To install a package that is only needed for development but not in production.

Providing the --dev argument will put the dependency in a special [dev-packages] location in the Pipfile.

pipenv install <package-name> --dev

To enter the a shell with the pipenv:

pipenv shell
export PYTHONPATH="<root directory of this project>" # so it can find the library module

Development

🚧 Under Construction

Exploration

Goolge APIs explorer

Testing

The pytest framework is being used for testing

pipenv install pytest --dev

The tests are organized into the unit and integration directories within the test directory.

To run all tests use

pipenv run pytest

Selecting tests to run

Stopping after the first ( or N) failures

About

A skeleton python service to wrap calls made to Google Translate

License:Apache License 2.0


Languages

Language:Python 100.0%