Skip to main content

neurostore api

Project description

neurostore-sdk

Create studysets for meta-analysis

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 1.1
  • Package version: 1.1
  • Generator version: 7.17.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://github.com/jdkent

Requirements.

Python 3.9+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import neurostore_sdk

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import neurostore_sdk

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import neurostore_sdk
from neurostore_sdk.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://neurostore.org/api
# See configuration.py for a list of all supported configuration parameters.
configuration = neurostore_sdk.Configuration(
    host = "https://neurostore.org/api"
)



# Enter a context with an instance of the API client
with neurostore_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = neurostore_sdk.StoreApi(api_client)
    search = 'imagin' # str | search for entries that contain the substring (optional)
    sort = 'created_at' # str | Parameter to sort results on (optional) (default to 'created_at')
    page = 56 # int | page of results (optional)
    desc = True # bool | sort results by descending order (as opposed to ascending order) (optional)
    page_size = 56 # int | number of results to show on a page (optional)
    paginate = True # bool | whether to paginate results (true) or return all results at once (false) (optional) (default to True)
    study = 'study_example' # str | Filter tables by study id (optional)
    name = 'name_example' # str | search the name field for a term (optional)
    nested = True # bool | whether to show the URI to a resource (false) or to embed the object in the response (true) (optional)

    try:
        # GET list of analyses
        api_response = api_instance.analyses_get(search=search, sort=sort, page=page, desc=desc, page_size=page_size, paginate=paginate, study=study, name=name, nested=nested)
        print("The response of StoreApi->analyses_get:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling StoreApi->analyses_get: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://neurostore.org/api

Class Method HTTP request Description
StoreApi analyses_get GET /analyses/ GET list of analyses
StoreApi analyses_id_delete DELETE /analyses/{id} DELETE an analysis
StoreApi analyses_id_get GET /analyses/{id} GET an analysis
StoreApi analyses_id_put PUT /analyses/{id} PUT/update an analysis
StoreApi analyses_post POST /analyses/ POST/create an analysis
StoreApi annotation_analyses_get GET /annotation-analyses/ Get annotation analyses
StoreApi annotation_analyses_id_get GET /annotation-analyses/{id} Your GET endpoint
StoreApi annotation_analyses_id_put PUT /annotation-analyses/{id} Your PUT endpoint
StoreApi annotation_analyses_post POST /annotation-analyses/ Your POST endpoint
StoreApi annotations_get GET /annotations/ Your GET endpoint
StoreApi annotations_id_delete DELETE /annotations/{id} DELETE an annotation
StoreApi annotations_id_get GET /annotations/{id} Your GET endpoint
StoreApi annotations_id_put PUT /annotations/{id} Update an annotation
StoreApi annotations_post POST /annotations/ Post Annotation
StoreApi base_studies_get GET /base-studies/
StoreApi base_studies_id_get GET /base-studies/{id} Your GET endpoint
StoreApi base_studies_id_put PUT /base-studies/{id}
StoreApi base_studies_post POST /base-studies/
StoreApi conditions_get GET /conditions/ GET Conditions
StoreApi conditions_id_delete DELETE /conditions/{id} DELETE a condition
StoreApi conditions_id_get GET /conditions/{id} GET a condition
StoreApi conditions_id_put PUT /conditions/{id} PUT/update a condition
StoreApi conditions_post POST /conditions/ POST/Create a condition
StoreApi images_get GET /images/ GET a list of images
StoreApi images_id_delete DELETE /images/{id} DELETE an image
StoreApi images_id_get GET /images/{id} GET an image
StoreApi images_id_put PUT /images/{id} PUT/update an image
StoreApi images_post POST /images/ POST/create an image
StoreApi pipeline_configs_get GET /pipeline-configs/ GET a list of pipeline configs
StoreApi pipeline_configs_id_delete DELETE /pipeline-configs/{id} DELETE a pipeline config by ID
StoreApi pipeline_configs_id_get GET /pipeline-configs/{id} GET a pipeline config by ID
StoreApi pipeline_configs_id_put PUT /pipeline-configs/{id} PUT/update a pipeline config by ID
StoreApi pipeline_configs_post POST /pipeline-configs/ POST/create a pipeline config
StoreApi pipeline_embeddings_get GET /pipeline-embeddings/ List pipeline embeddings
StoreApi pipeline_embeddings_id_get GET /pipeline-embeddings/{id} Get a pipeline embedding by id
StoreApi pipeline_study_results_get GET /pipeline-study-results/ GET a list of pipeline run results
StoreApi pipeline_study_results_pipeline_study_result_id_delete DELETE /pipeline-study-results/{pipeline_study_result_id} DELETE a pipeline run result by ID
StoreApi pipeline_study_results_pipeline_study_result_id_get GET /pipeline-study-results/{pipeline_study_result_id} GET a pipeline run result by ID
StoreApi pipeline_study_results_pipeline_study_result_id_put PUT /pipeline-study-results/{pipeline_study_result_id} PUT/update a pipeline run result by ID
StoreApi pipeline_study_results_post POST /pipeline-study-results/ POST/create a pipeline run result
StoreApi pipelines_get GET /pipelines/ GET a list of pipelines
StoreApi pipelines_id_delete DELETE /pipelines/{id} DELETE a pipeline by ID
StoreApi pipelines_id_get GET /pipelines/{id} GET a pipeline by ID
StoreApi pipelines_id_put PUT /pipelines/{id} PUT/update a pipeline by ID
StoreApi pipelines_post POST /pipelines/ POST/create a pipeline
StoreApi points_get GET /points/ Get Points
StoreApi points_id_delete DELETE /points/{id} DELETE a point
StoreApi points_id_get GET /points/{id} GET a point
StoreApi points_id_put PUT /points/{id} PUT/update a point
StoreApi points_post POST /points/ POST Points
StoreApi studies_get GET /studies/ GET a list of studies
StoreApi studies_id_delete DELETE /studies/{id} DELETE a study
StoreApi studies_id_get GET /studies/{id} GET a study
StoreApi studies_id_put PUT /studies/{id} PUT/update a study
StoreApi studies_post POST /studies/ POST/create a study
StoreApi studysets_get GET /studysets/ GET a list of studysets
StoreApi studysets_id_delete DELETE /studysets/{id} DELETE a studyset
StoreApi studysets_id_get GET /studysets/{id} GET a studyset
StoreApi studysets_id_put PUT /studysets/{id} PUT/update a studyset
StoreApi studysets_post POST /studysets/ POST/create a studyset
StoreApi tables_get GET /tables/ GET list of tables
StoreApi tables_id_delete DELETE /tables/{id} DELETE a table
StoreApi tables_id_get GET /tables/{id} GET a table
StoreApi tables_id_put PUT /tables/{id} PUT/update a table
StoreApi tables_post POST /tables/ POST/create a table
StoreApi users_get GET /users/ Your GET endpoint
StoreApi users_id_get GET /users/{id} Individual User Profile
StoreApi users_id_put PUT /users/{id} Update Individual Profile
StoreApi users_post POST /users/

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

JSON-Web-Token

  • Type: Bearer authentication

Author

jamesdkent21@gmail.com

Neurostuff SDK Helpers

The generator adds two helper modules to reduce import friction:

  1. sdk.py: a single facade for endpoint groups.
  2. auth.py: Auth0 refresh-token exchange + automatic bearer token refresh.

Minimal usage

from neurostore_sdk.sdk import SDK

sdk = SDK(host="https://example.org/api", access_token="<access-token>")
studysets_api = sdk.studysets
result = studysets_api.studysets_get()

Auth0 refresh-token usage

from neurostore_sdk.sdk import SDK

sdk = SDK.from_auth0_refresh_token(
    domain="your-tenant.us.auth0.com",
    client_id="<auth0-client-id>",
    refresh_token="<auth0-refresh-token>",
    audience="<optional-audience>",
)

# Access token is exchanged and refreshed automatically per request.
users = sdk.users.users_get()

You can also use environment variables: AUTH0_DOMAIN, AUTH0_CLIENT_ID, AUTH0_REFRESH_TOKEN, plus optional AUTH0_AUDIENCE, AUTH0_CLIENT_SECRET, AUTH0_SCOPE.

sdk = SDK.from_auth0_env(prefix="AUTH0")

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

neurostore_sdk-1.1.tar.gz (112.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

neurostore_sdk-1.1-py3-none-any.whl (239.0 kB view details)

Uploaded Python 3

File details

Details for the file neurostore_sdk-1.1.tar.gz.

File metadata

  • Download URL: neurostore_sdk-1.1.tar.gz
  • Upload date:
  • Size: 112.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for neurostore_sdk-1.1.tar.gz
Algorithm Hash digest
SHA256 23056ab2cfa955f313add0500e59edd7955e2ea9d32d3ee97de56a7bf05ecb83
MD5 42cc2081ef0d3d6bce5e9d123023acdc
BLAKE2b-256 887fa6ef663fe14911dc89d7440b707375448e4e8130d0211dc9e54b617e05d5

See more details on using hashes here.

Provenance

The following attestation bundles were made for neurostore_sdk-1.1.tar.gz:

Publisher: release.yml on neurostuff/neurostuff-sdk-generator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file neurostore_sdk-1.1-py3-none-any.whl.

File metadata

  • Download URL: neurostore_sdk-1.1-py3-none-any.whl
  • Upload date:
  • Size: 239.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for neurostore_sdk-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bd7c7dbd67f9b4e25c0c327f43277c6b133d31effaa24a5afad8a51367fae94e
MD5 e9db0e89b4e7bcdcfc5729c028c9ea8d
BLAKE2b-256 05a95b9f22a6d9565c62eedfaab3890476c84a424b9607806367ef799bf17c26

See more details on using hashes here.

Provenance

The following attestation bundles were made for neurostore_sdk-1.1-py3-none-any.whl:

Publisher: release.yml on neurostuff/neurostuff-sdk-generator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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