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"
# PRINT CURRENT VERSION
version = neuropacs.PACKAGE_VERSION
print(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
npcs.upload("your_image_path",connection_id, order_id, aes_key)
#START A JOB
job_status = npcs.run_job(connection_id, aes_key, product_id, order_id)
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.1.3.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for neuropacs-1.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 294103ec4819e697e55f072686403bab38f4000db0c7d68bfe621d9664f932c8 |
|
MD5 | ca60ab4b14d0174f3ccc93d50a81f724 |
|
BLAKE2b-256 | e7864afb48bce0df3e6b1931f408440bc01c028a4778d1c41d426a4e12fc76d0 |