Skip to content
This repository has been archived by the owner on Mar 6, 2022. It is now read-only.

Fix exception syntax error (used a comma instead of "as") #20

Open
wants to merge 53 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
efad6aa
adapting unbabel py to new architecture
Jun 25, 2014
d0ae963
Merge branch 'master' of https://github.com/Unbabel/unbabel-py into n…
Jun 25, 2014
1e04a68
Added status 'insufficient_balance'.
Jun 25, 2014
2f3f6ef
increased version for new architecture
hugofvs Jul 2, 2014
a37ed78
Added missing resources and params.
Jul 4, 2014
d08031b
Added missing params.
Jul 4, 2014
129b938
Fixed failing tests.
Jul 4, 2014
8d86623
Merge branch 'new_architecture' of https://github.com/Unbabel/unbabel-py
gracaninja Jul 4, 2014
562977c
new updates to new architecture
gracaninja Jul 4, 2014
1c6b4f1
change field translation to translationText to match the output from …
gracaninja Jul 7, 2014
9d821f0
small fix on api
gracaninja Jul 7, 2014
1fc2d5a
small bug fix
gracaninja Jul 7, 2014
ab790c0
added target_text to unbabel-py
gracaninja Jul 8, 2014
53158e3
added origin keyword
gracaninja Jul 16, 2014
56ec95f
fixed broken argument ttype to type
gracaninja Aug 12, 2014
49c942d
get_user implemented using the internal api
samkempner Aug 22, 2014
ad29b43
inc version number
samkempner Aug 22, 2014
fc12d76
fixed link to documentation
arne-cl Sep 4, 2014
6a35bb7
changing to unbabel.com
samkempner Sep 15, 2014
0add1ef
incrementing version
samkempner Sep 15, 2014
d052132
www.unbabel.com -> unbabel.com
samkempner Sep 15, 2014
481bcfe
update get translation so that id does not blow up on error
gracaninja Oct 28, 2014
27d547d
added filter to get_translations
gracaninja Nov 5, 2014
b1df5d0
added simple xliff parser
gracaninja Feb 17, 2015
7f1be61
small fixes on xliff to remove languages from headers. Added bs4 to s…
gracaninja Feb 18, 2015
2283480
small hack on building dictionary
gracaninja Mar 31, 2015
ea88066
Merge pull request #2 from arne-cl/patch-1
gracaninja Apr 29, 2015
f839dfd
addec client_owner_email_param
gracaninja Apr 29, 2015
07baa14
Fixes the BeautifulSoup call.
davidgomes Jul 16, 2015
aa5ecbb
Merge pull request #4 from davidgomes/patch-1
hugofvs Jul 16, 2015
9e5ef65
Removed slash from package_dir
hugofvs Jan 12, 2016
747e4ff
Bumped version
hugofvs Jan 12, 2016
a14ad96
Merge pull request #5 from Unbabel/remove_slash
hugofvs Jan 12, 2016
4601c67
added endpoints for progressive translation
gracaninja May 10, 2016
dd5289d
Passing new argument on mt upgrade to overwrite some properties
hugofvs May 27, 2016
33d3372
Merge pull request #6 from Unbabel/feature_mt_endpoint
hugofvs Jun 7, 2016
36273ff
Bugfix raise error when not able to contact Unbabel
nurv Dec 19, 2016
95423fc
Merge pull request #8 from Unbabel/fix/emptyLanguageOnError
hugofvs Dec 19, 2016
d92c178
Bumped setup version
hugofvs Dec 19, 2016
5013cb1
fix #7
Jan 11, 2017
38b25dc
Merge pull request #10 from LLCampos/fix/missing_order_number_attrib
hugofvs Apr 24, 2017
09ec51f
Fix sandbox url
hugofvs Jun 9, 2017
3326f86
Bump version to 0.49
hugofvs Jun 9, 2017
8315c46
PEP8
hugofvs Jun 9, 2017
c875917
Update setup.py
hugofvs Jun 9, 2017
647cfc0
Undo changes to post_mt_translations method
hugofvs Mar 15, 2018
f3ffd18
Bump version to 0.50
hugofvs Mar 15, 2018
f0ead56
Add MIT License to repository
tomaspinho Oct 10, 2018
21c06be
Adding brand support
gustavoalmeida Jan 17, 2019
268e7fd
Refactoring tests
gustavoalmeida Jan 17, 2019
ca29695
updating version and removing localhost settings
gustavoalmeida Jan 18, 2019
3bd6397
Merge pull request #19 from Unbabel/brand-support
andreffs18 Jan 18, 2019
e4d80fc
Fix syntax error on python 3
brunoais Jun 11, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2018 Unbabel

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Python SDK for the Unbabel REST API
Documentation:
=============

Please visit our documentation page at https://github.com/Unbabel
Please visit our documentation page at https://github.com/Unbabel/unbabel_api



Expand All @@ -23,7 +23,13 @@ Getting started:

## Request a Translation

`api.post_translations(text="This is a test translation",target_language="pt",source_language="en")`
```
api.post_translations(text="This is a test translation",target_language="pt",
source_language="en",
callback_url="http://my-awesome-service.com/unbabel_endpoint")
```

Check out the [API documentation](https://github.com/Unbabel/unbabel_api#translation) for additional options.

## Get a Translation

Expand Down
5 changes: 5 additions & 0 deletions release_to_pypy.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
http://peterdowns.com/posts/first-time-with-pypi.html

python setup.py register -r pypi

python setup.py sdist upload -r pypi
1 change: 1 addition & 0 deletions requirements.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
requests
beautifulsoup4
2 changes: 2 additions & 0 deletions runtests
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export $(cat .env)
python -m unittest discover -s 'tests/' -p '*test*.py'
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[metadata]
description-file = README.md
description-file = README.md
31 changes: 14 additions & 17 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
from setuptools import setup

setup(name='unbabel-py',
version='0.26',
version='0.51',
description='Python Wrapper around Unbabel HTTP API',
author='Joao Graca',
author_email='[email protected]',
packages=[
'unbabel',
],
package_dir={
'unbabel': 'unbabel/',
},
author_email='[email protected]',
packages=['unbabel'],
package_dir={'unbabel': 'unbabel',},
install_requires=[
'requests',
],
url = 'https://github.com/Unbabel/unbabel-py',
download_url = 'https://github.com/Unbabel/unbabel-py/tarball/0.1',
classifiers = ['Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Programming Language :: Python ',
'Topic :: Text Processing'
]
'requests',
'beautifulsoup4',
],
url='https://github.com/Unbabel/unbabel-py',
download_url='https://github.com/Unbabel/unbabel-py/archive/0.50.tar.gz',
classifiers=['Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Programming Language :: Python ',
'Topic :: Text Processing'
]
)
Loading