= commited on
Commit
0d45729
·
1 Parent(s): 2996bb8

updated the docs

Browse files
Files changed (4) hide show
  1. README.rst +12 -2
  2. deep_translator/__init__.py +1 -1
  3. setup.cfg +1 -1
  4. setup.py +2 -2
README.rst CHANGED
@@ -45,6 +45,16 @@ Features
45
  * Get multiple translation for a word
46
  * Automate the translation of different paragraphs in different languages
47
 
 
 
 
 
 
 
 
 
 
 
48
 
49
  Usage
50
  =====
@@ -55,10 +65,10 @@ Usage
55
 
56
  english_text = 'happy coding'
57
 
58
- result_german = GoogleTranslator(source='auto', target='de').translate(payload=english_text)
59
 
60
  # Alternatively, you can pass languages by their name:
61
- translated = GoogleTranslator(source='english', target='german').translate(payload=english_text)
62
 
63
  # or maybe you want to translate a text file ?
64
  translated = GoogleTranslator(source='auto', target='german').translate_file('path/to/file')
 
45
  * Get multiple translation for a word
46
  * Automate the translation of different paragraphs in different languages
47
 
48
+ Installation
49
+ =============
50
+
51
+ Install the stable release:
52
+
53
+ .. code-block:: console
54
+
55
+ $ pip install deep_translator
56
+
57
+ take a look at the docs if you want to install from source.
58
 
59
  Usage
60
  =====
 
65
 
66
  english_text = 'happy coding'
67
 
68
+ result_german = GoogleTranslator(source='auto', target='de').translate(text=english_text)
69
 
70
  # Alternatively, you can pass languages by their name:
71
+ translated = GoogleTranslator(source='english', target='german').translate(text=english_text)
72
 
73
  # or maybe you want to translate a text file ?
74
  translated = GoogleTranslator(source='auto', target='german').translate_file('path/to/file')
deep_translator/__init__.py CHANGED
@@ -8,7 +8,7 @@ from .mymemory import MyMemoryTranslator
8
 
9
  __author__ = """Nidhal Baccouri"""
10
  __email__ = '[email protected]'
11
- __version__ = '1.0.4'
12
 
13
  __all__ = [GoogleTranslator,
14
  PonsTranslator,
 
8
 
9
  __author__ = """Nidhal Baccouri"""
10
  __email__ = '[email protected]'
11
+ __version__ = '1.0.5'
12
 
13
  __all__ = [GoogleTranslator,
14
  PonsTranslator,
setup.cfg CHANGED
@@ -1,5 +1,5 @@
1
  [bumpversion]
2
- current_version = 1.0.4
3
  commit = True
4
  tag = True
5
 
 
1
  [bumpversion]
2
+ current_version = 1.0.5
3
  commit = True
4
  tag = True
5
 
setup.py CHANGED
@@ -24,7 +24,7 @@ setup(
24
  author_email='[email protected]',
25
  python_requires='>=3.0',
26
  classifiers=[
27
- 'Development Status :: 4 - Beta',
28
  'Intended Audience :: Developers',
29
  'License :: OSI Approved :: MIT License',
30
  'Natural Language :: English',
@@ -51,6 +51,6 @@ setup(
51
  test_suite='tests',
52
  tests_require=test_requirements,
53
  url='https://github.com/nidhaloff/deep_translator',
54
- version='1.0.4',
55
  zip_safe=False,
56
  )
 
24
  author_email='[email protected]',
25
  python_requires='>=3.0',
26
  classifiers=[
27
+ 'Development Status :: 5 - Production/Stable',
28
  'Intended Audience :: Developers',
29
  'License :: OSI Approved :: MIT License',
30
  'Natural Language :: English',
 
51
  test_suite='tests',
52
  tests_require=test_requirements,
53
  url='https://github.com/nidhaloff/deep_translator',
54
+ version='1.0.5',
55
  zip_safe=False,
56
  )