NeuroPACS Python SDK
Project description
NeuroPACS Python SDK
Install neuropacs from pip
pip install neuropacs
Usage
import neuropacs
api_key = "user_api_key"
server_url = "https://your_neuropacs_url"
product_id = "PD/MSA/PSP-v1.0"
prediction_format = "TXT"
# PRINT CURRENT VERSION
version = neuropacs.PACKAGE_VERSION
#INITIALIZE NEUROPACS SDK
npcs = neuropacs.init(api_key, server_url)
#GENERATE AN AES KEY
aes_key = npcs.generate_aes_key()
#CONNECT TO NEUROPACS
connection_id = npcs.connect(api_key,aes_key)
#CREATE A NEW JOB
order_id = npcs.new_job(connection_id, aes_key)
#UPLOAD AN IMAGE
upload_status = npcs.upload("your/image/path",connection_id, order_id, aes_key)
#UPLOAD A DATASET
upload_status = npcs.upload_dataset("your/dataset/path",connection_id, order_id, aes_key)
#START A JOB
job_start_status = npcs.run_job(connection_id, aes_key, product_id, order_id)
#CHECK JOB STATUS
job_status = npcs.check_status(connection_id, aes_key, order_id)
#RETRIEVE JOB RESULTS
job_results = npcs.get_results(connection_id, aes_key, order_id, prediction_format)
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.2.1.tar.gz
(5.7 kB
view hashes)
Built Distribution
Close
Hashes for neuropacs-1.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 733f9650bbe8c2ef61e180115b345c900fa8b3a47d6447c6cd087ebff079b696 |
|
MD5 | 1f075ba1b71a1389e57e2ebdf0cf2ede |
|
BLAKE2b-256 | 3e5804152d622f35921c005f0bef089db861f1f3dae607efd17d2e54e5cd9e7a |