NeuroPACS Python SDK
Project description
NeuroPACS Python SDK
Connect to NeuroPACS diagnostic capabilities with our Python SDK.
Getting Started
Installation
pip install neuropacs
Usage
import neuropacs
api_key = "your_api_key"
server_url = "https://your_neuropacs_url"
product_id = "PD/MSA/PSP-v1.0"
prediction_format = "XML"
# PRINT CURRENT VERSION
version = neuropacs.PACKAGE_VERSION
#INITIALIZE NEUROPACS SDK
npcs = neuropacs.init(server_url, api_key)
#CONNECT TO NEUROPACS
connection = npcs.connect()
#CREATE A NEW JOB
order_id = npcs.new_job()
#UPLOAD AN IMAGE
# --> data must be a valid path <String> or byte array <Bytes>
# --> order_id param is optional
upload_status = npcs.upload(data)
#UPLOAD A DATASET
# --> dataset_path must be a valid path to a dataset <String>
# --> order_id param is optional
upload_status = npcs.upload_dataset(dataset_path)
#START A JOB
# --> Valid product_id options: PD/MSA/PSP-v1.0
# --> order_id param is optional
job_start_status = npcs.run_job(product_id)
#CHECK JOB STATUS
# --> order_id param is optional
job_status = npcs.check_status()
#RETRIEVE JOB RESULTS
# --> Valid prediction_format options: TXT, PDF, XML, JSON, DICOMSR
# --> order_id param is optional
job_results = npcs.get_results(prediction_format)
Authors
Kerrick Cavanaugh - kerrick@neuropacs.com
Version History
- 1.3.9
- Initial Release
- See release history
License
This project is licensed under the MIT License - see the LICENSE.md file for details
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
neuropacs-1.5.7.tar.gz
(12.8 kB
view hashes)
Built Distribution
neuropacs-1.5.7-py3-none-any.whl
(13.5 kB
view hashes)
Close
Hashes for neuropacs-1.5.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2277c6943f0f8f6fd1f1910a04fa05f5f8acca3f2bb6fa2f6c3f718a9c1eb8ec |
|
MD5 | 1b29eef92fc98cb5eadaca14ae9e26f4 |
|
BLAKE2b-256 | 5747c9d6bcf0fc80bce66192a251ab718e4aeb65734e662f1ea10762523222e4 |