Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

atwc-1.1.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

atwc-1.1.0-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file atwc-1.1.0.tar.gz.

File metadata

  • Download URL: atwc-1.1.0.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.9.12 Darwin/24.4.0

File hashes

Hashes for atwc-1.1.0.tar.gz
Algorithm Hash digest
SHA256 8908bea1aa3481bbb800fa87d50f017333b6188cda06a7e05b5685ca679785c7
MD5 39f20b2aa991dded1c7b9e8e1b639548
BLAKE2b-256 3170067a3c389281bd068309284d72ffe237227b1fff378c640679f4e0d4df89

See more details on using hashes here.

File details

Details for the file atwc-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: atwc-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.9.12 Darwin/24.4.0

File hashes

Hashes for atwc-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 98385980d8f50d79a890cc45fa7aa4765170ecbbee31227c01795263f015abee
MD5 dd0d0e1d2cd04f9fda18d2915d5bd763
BLAKE2b-256 ddf1c669e9bcd694dc459e2a3bc8d47e44d9ce3c18c6c304de7bea5ec06f5702

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page