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.
Metadata
Release files for atwc 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| atwc-1.1.0.tar.gz | 7.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| atwc-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.4 kB
Release files / atwc-1.1.0.tar.gz
| Download URL | atwc-1.1.0.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8908bea1aa3481bbb800fa87d50f017333b6188cda06a7e05b5685ca679785c7
|
|
BLAKE2b-256 checksum How to use checksums |
3170067a3c389281bd068309284d72ffe237227b1fff378c640679f4e0d4df89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.9.12 Darwin/24.4.0
|
Release files / atwc-1.1.0-py3-none-any.whl
| Download URL | atwc-1.1.0-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
98385980d8f50d79a890cc45fa7aa4765170ecbbee31227c01795263f015abee
|
|
BLAKE2b-256 checksum How to use checksums |
ddf1c669e9bcd694dc459e2a3bc8d47e44d9ce3c18c6c304de7bea5ec06f5702
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.9.12 Darwin/24.4.0
|