semvec/pypi-packages huggingface dataset:
pygtaw 0.0.9
A tiny Google Translate API wrapper written in Python.
License: MIT
Keywords: google translate API wrapper

pygtaw
======

A tiny Google Translate API wrapper written in Python. An API key is needed to use this. More information on obtaining the API key can be found on the `Google Translate API site`_.

.. _Google Translate API site: https://cloud.google.com/translate/.

The full list of `supported languages`_.

.. _supported languages: https://cloud.google.com/translate/v2/using_rest#language-params.


Usage
-----
To install: ``pip install pygtaw``.

Identify your api key and make a new Client object.

.. code-block:: python

    >>> import pygtaw
    >>> api_key = 'ENTER_API_KEY'
    >>> client = pygtaw.Client(api_key)

To make the translation request:

.. code-block:: python

    >>> query = 'Hello, world!'
    >>> target = 'Korean'
    >>> source = 'English'
    >>> translation = client.translate(query, target, source)
    >>> 
    >>> print translation.translated_text
    안녕하세요

You can send a translation request without a source as well--the Google Translate API can detect the source language:

.. code-block:: python

    >>> translation = client.translate('Hello', target='Spanish')
    >>> print translation.translated_text
    Hola
    >>> print translation.detected_source_language
    English


Tests
-----
Currently, tests are made by making requests to Google Translate API. To run the tests, make a ``key`` file in the ``tests`` folder and make sure it's added to ``.gitignore``.
TableMongo 1.0.3
TableMongo. A MongoDB ORM based on Google's BigTable Syntax
License: MIT
Keywords: mongodb tablemongo table mongo db database storage orm

# TableMongo. A MongoDB ORM

Contributers&ensp;·&ensp;[Hunter Larco](http://hunterlarco.com)

> TableMongo syntax emulates Google's Python BigTable ORM, making it easier to transition from Google Cloud Platform to a MongoDB based systems.

## Example

```python
import TableMongo as db

class User(db.Model):
  email = db.StringProperty()
  password = db.StringProperty()
  favourite_things = db.StringProperty(multiple=True)

User(
  email='john@doe.com',
  password='p@ssword', 
  favourite_things=['apples', 'pie']
).save()

users = User.query(User.email == 'john@doe.com')
```

## Installation

Installation is super friendly using `pip`

```
$ pip install TableMongo
```

## Documentation

* [Quickstart](./Documentation/quickstart.md)