Skip to main content

neuropacs Python API

Project description

Integration Tests CodeQL

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

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Project details


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.3.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

neuropacs-1.8.3-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file neuropacs-1.8.3.tar.gz.

File metadata

  • Download URL: neuropacs-1.8.3.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.6

File hashes

Hashes for neuropacs-1.8.3.tar.gz
Algorithm Hash digest
SHA256 40a4c81b753335b9d6178197e9ac5e82a585eea22ccfc00961c6442b6eef09e9
MD5 89bc3a4a0481f982e47440cd00197bbf
BLAKE2b-256 d8a6c494be942d1fb30bb371e9c79847a0830bd2b6449951a26c4722842362c1

See more details on using hashes here.

File details

Details for the file neuropacs-1.8.3-py3-none-any.whl.

File metadata

  • Download URL: neuropacs-1.8.3-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.6

File hashes

Hashes for neuropacs-1.8.3-py3-none-any.whl
Algorithm Hash digest
SHA256 393bd2e8663a2548173f4f1055964095367fafbda0192dc8857ddae52ae8d8fc
MD5 c7186b182260c8700bc376a86077022c
BLAKE2b-256 5354cd36f4d2e15c65e1059abb1da9808226a1e5e067dbe454a6840ee5c0e4ee

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page