This release is a pre-release and may not be stable for production use.
Python module to facilitate accessing the memoQ API.
Installation
This module is available on the Python Package Index (PyPI) and can be installed as follows:
pip install pymemoq
Dependencies
This module is dependent on the following additional packages:
Available classes
The following classes are currently available (eventual goal is to provide wrappers for all of the APIs):
Under memoq.server:
MemoQServer - Wraps around a memoQ server and exposes a limited subset of the API
Under memoq.webservice:
MemoQAsynchronousTasksService - Asynchronous Tasks management API
MemoQELMService - License (ELM) management API
MemoQFileManagerService - File upload/download API
MemoQLightResourceService - Light resource management API
MemoQLiveDocsService - LiveDocs management API
MemoQSecurityService - Security API
MemoQServerProjectService - Server projects API
MemoQTBService - Term base management API
MemoQTMService - Translation memory management API
Example API Usage
>>> from memoq import MemoQServer
>>> memoq_server = MemoQServer('http://localhost:8080')
>>> memoq_server.api_version
'9.2.5'
>>> from memoq.webservice import MemoQServerProjectService
>>> project_service = MemoQServerProjectService('http://localhost:8080')
>>> project_service.GetApiVersion()
'9.2.5'
>>> from memoq.util import response_object_to_dict
>>> projects = [response_object_to_dict(project) for project in memoq_server.projects]
>>> from collections import Counter
>>> Counter([proj['DocumentStatus'] for proj in projects])
Counter({'TranslationInProgress': 65, 'TranslationFinished': 43, 'ProofreadingFinished': 21})
>>>
Implementation Notes
Per the recommendation to enable caching of WSDL and XSD files, we are using an instance of the zeep.CachingClient() under the hood. Since the memoQ WSDL and XSD files should not be changing except when the server is upgraded, this should improve performance without causing any issues.
References
License
This is released under an MIT license. See the LICENSE file in this repository for more information.
Release files for pymemoq 0.2.dev6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pymemoq-0.2.dev6.tar.gz | 7.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pymemoq-0.2.dev6-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 14.4 kB
Release files / pymemoq-0.2.dev6.tar.gz
| Download URL | pymemoq-0.2.dev6.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
40661b9cd58dba13ab5cae9aaac34d49a14310181e1fd4e5b53845f2c6a27b8f
|
|
BLAKE2b-256 checksum How to use checksums |
86537c1b7eccf20aec5badcf5706c762a6c7b45d19f26afe57147da691cc22cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.1
|
Release files / pymemoq-0.2.dev6-py2.py3-none-any.whl
| Download URL | pymemoq-0.2.dev6-py2.py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
352d5d8f4ff8519a8af67e5caa04af81341631bbfea3c281ab0ad49ed2238e07
|
|
BLAKE2b-256 checksum How to use checksums |
8f7cbd2a531e1aab361dd301a850f70a4f77b6db7bef16eb8792b053ec5e109d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.1
|