Python interface to TWC's API
Project description
aTWC - Python interface to Teamwork Cloud
Python interface to NoMagic/CATIA Teamwork Cloud Server.
Teamwork Cloud server is a central repository service to store and retrieve Cameo and MagicDraw models.
TWC exposes a REST API that allows interaction with the stored models.
This library has been primarily written as interface abstraction for Archimedes Exhibitions GmbH's Cameo Collaborator Publisher service, hence it's not intended as a general-purpose solution.
aTWC is developed and maintained by Archimedes Exhibitions GmbH.
Installation
$ pip3 install atwc
Usage example
import asyncio
import atwc
async def main():
client = atwc.client.Client('https://twc.local:8111/osmc/', 'user', 'password')
async with client.create_session():
browser = atwc.browsers.ResourceBrowser(client)
await browser.fetch()
print('MagicDraw resources:')
for resource in browser.md_resources:
print(f' {await browser.get_category_path(resource)}/'
f'{resource["dcterms:title"]}')
asyncio.run(main())
Running the examples
Copy the file config.py.dist
into config.py
in the examples
folder:
$ cd examples
$ cp config.py.dist config.py
Edit the file config.py
and replace the placeholders for all the entries.
More information can be found in the docstring of each script.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file atwc-1.0.0.tar.gz
.
File metadata
- Download URL: atwc-1.0.0.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.1 CPython/3.9.12 Linux/5.15.0-46-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d8c979c4584e674342409aa49e15783267c1a9d84e0c57da4137dea7439ddfb |
|
MD5 | 8a4c97f8b4ed0e088b83bf17ee3f8fd8 |
|
BLAKE2b-256 | fd11ad405b655d8597d1f41267f7e226262d95f594cebc2d0d6bf51c88e5c334 |
File details
Details for the file atwc-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: atwc-1.0.0-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.1 CPython/3.9.12 Linux/5.15.0-46-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8b8ce1e921e7a8c10f211fcde8b455debb5e1a05777c052b8a9044839a05f79 |
|
MD5 | 7b833a3e667ef85af8d800a9973de2ba |
|
BLAKE2b-256 | b8267d2d970e3e29ea39868ca39803f03e88264de7f77a665bcadd2be0cb5f3a |