Skip to main content

The Agora Connector for Python

Project description

gtagora-connector Build Status

gtagora-connector is a python library to access GyroTools' Agora system.

Installation

Use the package manager pip to install gtagora-connector.

pip install gtagora-connector

Currently gtagora-connector supports python 3.6 and 3.7.

Usage

from gtagora import Agora
from gtagora.models.dataset import DatasetType

agora = Agora.create('https://your.agora.domain.com', user='test', password='test')

root_folder = agora.get_folders()
subfolders = root_folder.get_folders() 
for s in subfolders:
    print(f' - {s.name}')

new_folder = root_folder.get_or_create_folder('New Folder')

exam = agora.get_exam_list(filters={'name': 'Wrist'})[0]
for s in exam.get_series():
    print(f'Series: {s.name}')

    for dataset in s.get_datasets(filters={'type': DatasetType.PHILIPS_RAW}):
        for datafile in dataset.get_datafiles():
            print(f'{datafile.original_filename}')

agora.import_data('/path/to/directroy', new_folder)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

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

gtagora-connector-0.0.4.tar.gz (13.3 kB view hashes)

Uploaded Source

Built Distribution

gtagora_connector-0.0.4-py3-none-any.whl (22.6 kB view hashes)

Uploaded Python 3

Supported by

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