Metadata-Version: 2.1
Name: neuropacs
Version: 1.1.6
Summary: NeuroPACS Python SDK
Home-page: https://github.com/neuropacs/neuropacs-py-sdk
Author: Kerrick Cavanaugh
Author-email: kerrick@neuropacs.com
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Healthcare Industry
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown
Requires-Dist: certifi ==2023.5.7
Requires-Dist: cffi ==1.15.1
Requires-Dist: charset-normalizer ==3.1.0
Requires-Dist: cryptography ==41.0.1
Requires-Dist: idna ==3.4
Requires-Dist: Naked ==0.1.32
Requires-Dist: pip ==23.3.1
Requires-Dist: pycparser ==2.21
Requires-Dist: pycryptodome ==3.18.0
Requires-Dist: PyYAML ==6.0
Requires-Dist: requests ==2.31.0
Requires-Dist: setuptools ==69.0.2
Requires-Dist: shellescape ==3.8.1
Requires-Dist: socketio ==0.2.1
Requires-Dist: urllib3 ==1.26.6
Requires-Dist: wheel ==0.41.2
Requires-Dist: python-socketio ==5.10.0

# NeuroPACS Python SDK

## Install neuropacs from pip

```bash
pip install neuropacs
```

## Usage

```py
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)
```
