neuropacs Python API
Project description
neuropacs™ Python API
Connect to neuropacs™ diagnostic capabilities with our Python API.
Getting Started
Installation
pip install neuropacs
Usage
import neuropacs
api_key = "api_key"
server_url = "neuropacs_url"
product_name = "Atypical/MSAp/PSP-v1.0"
prediction_format = "XML"
origin_type = "my_application"
# INITIALIZE NEUROPACS API
npcs = neuropacs.init(server_url=server_url, api_key=api_key, origin_type=origin_type)
# CONNECT TO NEUROPACS
connection = npcs.connect()
# CREATE A NEW JOB
order_id = npcs.new_job()
# UPLOAD A DATASET
upload_status = npcs_admin.upload_dataset_from_path(order_id=order_id, path="/path/to/dataset/")
# START A JOB
# --> Valid product_name options: Atypical/MSAp/PSP-v1.0
job_start_status = npcs.run_job(order_id=order_id, product_name=product_name)
# CHECK JOB STATUS
job_status = npcs.check_status(order_id=order_id)
# RETRIEVE JOB RESULTS
# --> Valid prediction_format options: TXT, PDF, XML, PNG
job_results = npcs.get_results(order_id=order_id, prediction_format=prediction_format)
Authors
Kerrick Cavanaugh - kerrick@neuropacs.com
Version History
- 1.0.0
- 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.8.2.tar.gz
(12.0 kB
view details)
Built Distribution
neuropacs-1.8.2-py3-none-any.whl
(12.0 kB
view details)
File details
Details for the file neuropacs-1.8.2.tar.gz
.
File metadata
- Download URL: neuropacs-1.8.2.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0c7fa3414c744109d5990eef1558a66626311d6c800dd5eb8d1749bbaafabed |
|
MD5 | 45844412c901d14804bcaba981be7abe |
|
BLAKE2b-256 | ac677e99b4be5a464b32693a6f6b3b13118de5a2d71128d4528d68357515f562 |
File details
Details for the file neuropacs-1.8.2-py3-none-any.whl
.
File metadata
- Download URL: neuropacs-1.8.2-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a97963d1d749655e3a36cdd6bbe0545d3843dd433b485514849b4e2ea14d9142 |
|
MD5 | 14e4678b71ee3ec063048e0a0ff93662 |
|
BLAKE2b-256 | c5e4246cb87e00b7a523d901dd0da5935dbd5f405379fe4288e6ef3738f29c3d |