Giter Site home page Giter Site logo

devlato / python-bing-translate-layer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wildeyes/python-bing-translate-layer

0.0 3.0 0.0 60 KB

Python Library for interfacing with Microsoft Translate API

Home Page: http://github.com/bahn/bingtrans

python-bing-translate-layer's Introduction

Python-bing-translate-layer

Python module for interfacing with the latest Windows Azure Marketplace \ Microsoft Translate API \ Whatever its name is now.

What's the name of the "Do whatever the fuck you want with this, just credit me\show me what your doing with it" license?

You are welcomed to expand this module or notify me about issues.

Last check that this module worked: 3th July 2013' (Microsoft could have changed the API by the time you're looking at this)

Features

  • translate a text or html file in a language into another language
  • Stores the access_token and the expiration date in the background. Uses that access_token unless 10 minutes have passed since it's generation (and then generate a new one).

TODO (someday)

  • test it with HTML requests (only tested with individual words)

Prerequisites

Install

Import this module from your code. No need to install anything.

Example

Look at the tests.py. OR:

import translate as tas
tas.set_credentials(app_id='YOURAPPID',client_id='YOURCLIENTID',client_secret='YOURCLIENTSECRET')
print tas.translate('hello', 'en', 'ko')

Homepage

https://github.com/wildeyes/python-bing-translate-layer

Wildeyes.

python-bing-translate-layer's People

Watchers

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