-
Notifications
You must be signed in to change notification settings - Fork 39
/
setup.py
68 lines (59 loc) · 2.16 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# -*- coding: utf-8 -*-
"""
Microsoft translator API
The Microsoft Translator services can be used in web or client
applications to perform language translation operations. The services
support users who are not familiar with the default language of a page or
application, or those desiring to communicate with people of a different
language group.
This module implements the AJAX API for the Microsoft Translator service.
An example::
>>> from microsofttranslator import Translator
>>> translator = Translator('<Your API Key>')
>>> print translator.translate("Hello", "pt")
"Olá"
The documentation for the service can be obtained here:
http://msdn.microsoft.com/en-us/library/ff512423.aspx
The project is hosted on GitHub where your could fork the project or report
issues. Visit https://github.com/openlabs/Microsoft-Translator-Python-API
:copyright: © 2011 by Openlabs Technologies & Consulting (P) Limited
:license: BSD, see LICENSE for more details.
"""
import codecs
from setuptools import setup
setup(
name="microsofttranslator",
version="0.7",
packages=[
'microsofttranslator',
],
package_dir={
'microsofttranslator': '.'
},
author="Openlabs Technologies & Consulting (P) Limited",
author_email="[email protected]",
description="Microsoft Translator V2 - Python API",
long_description=codecs.open(
'README.rst', encoding='UTF-8'
).read(),
license="BSD",
keywords="translation microsoft",
url="http://openlabs.co.in/",
include_package_data=True,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Topic :: Software Development :: Internationalization",
"Topic :: Utilities",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 2",
],
test_suite="microsofttranslator.test.test_all",
install_requires=[
'requests >= 1.2.3',
'six',
]
)