-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
65 lines (57 loc) · 2.07 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
# -*- 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:
https://docs.microsoft.com/en-us/azure/cognitive-services/translator/
The project is hosted on GitHub where your could fork the project or report
issues. Visit https://github.com/fulfilio/Microsoft-Translator-Python-API
"""
import codecs
from setuptools import setup
setup(
name='microsofttranslator',
version='0.9',
packages=[
'microsofttranslator',
],
package_dir={
'microsofttranslator': '.'
},
author='Fulfil.IO Inc., Openlabs Technologies & Consulting (P) Limited',
author_email='info@fulfil.io',
description='Microsoft Translator V3 - Python API',
long_description=codecs.open(
'README.rst', encoding='UTF-8'
).read(),
license='BSD',
keywords='translation microsoft',
url='https://www.fulfil.io/',
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',
]
)