The Agora Connector for Python
Project description
gtagora-connector
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
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
gtagora-connector-0.0.4.tar.gz
(13.3 kB
view hashes)
Built Distribution
Close
Hashes for gtagora_connector-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbc2d3b6f4bbc21f8dc6752043c99ebaa76127837bc6e4276c5ac1520304b2fe |
|
MD5 | 2d2603a929eeb7b289dfc061dc20f2ed |
|
BLAKE2b-256 | ec9656d39d83c18e4a11b29e884802614940b711405d380142858b51c4ab3750 |