Skip to main content

neurosynth-compose-sdk

api to create a meta-analysis specification

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

  • API version: 1.2
  • Package version: 1.2
  • 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 neurosynth_compose_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 neurosynth_compose_sdk

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import neurosynth_compose_sdk
from neurosynth_compose_sdk.rest import ApiException
from pprint import pprint

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

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: JSON-Web-Token
configuration = neurosynth_compose_sdk.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)


# Enter a context with an instance of the API client
with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = neurosynth_compose_sdk.ComposeApi(api_client)
    nested = True # bool | show nested component instead of id (optional)
    ids = ['ids_example'] # List[str] | choose the specific ids you wish to get (optional)
    page = 56 # int | page of results (optional)
    page_size = 56 # int | number of elements to return on a page (optional)
    name = 'name_example' # str | search the name field for a term (optional)
    search = 'imagin' # str | search for entries that contain the substring (optional)
    description = 'description_example' # str | search description field for a term (optional)
    sort = 'created_at' # str | Parameter to sort results on (optional) (default to 'created_at')
    desc = True # bool | sort results by descending order (as opposed to ascending order) (optional)

    try:
        # GET a list of meta-analyses
        api_response = api_instance.meta_analyses_get(nested=nested, ids=ids, page=page, page_size=page_size, name=name, search=search, description=description, sort=sort, desc=desc)
        print("The response of ComposeApi->meta_analyses_get:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling ComposeApi->meta_analyses_get: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://compose.neurosynth.org/api

Class Method HTTP request Description
ComposeApi meta_analyses_get GET /meta-analyses GET a list of meta-analyses
ComposeApi meta_analyses_id_get GET /meta-analyses/{id} GET meta-analysis information
ComposeApi meta_analyses_id_put PUT /meta-analyses/{id} Update a meta-analysis
ComposeApi meta_analyses_post POST /meta-analyses Create a new meta-analysis
ComposeApi meta_analysis_jobs_get GET /meta-analysis-jobs List meta-analysis jobs for the current user
ComposeApi meta_analysis_jobs_job_id_get GET /meta-analysis-jobs/{job_id} Get status and logs for a meta-analysis job
ComposeApi meta_analysis_jobs_post POST /meta-analysis-jobs Submit a meta-analysis job
ComposeApi meta_analysis_results_get GET /meta-analysis-results List meta-analysis results
ComposeApi meta_analysis_results_id_get GET /meta-analysis-results/{id} Get a meta-analysis result by ID
ComposeApi meta_analysis_results_id_put PUT /meta-analysis-results/{id} Update a meta-analysis result with files or snapshots
ComposeApi meta_analysis_results_post POST /meta-analysis-results Create a new meta-analysis result
ComposeApi neurostore_annotations_id_get GET /neurostore-annotations/{id} Get a Neurostore annotation reference by Neurostore ID
ComposeApi neurostore_studies_get GET /neurostore-studies Your GET endpoint
ComposeApi neurostore_studies_id_get GET /neurostore-studies/{id} Your GET endpoint
ComposeApi neurostore_studysets_get GET /neurostore-studysets List Neurostore studyset references
ComposeApi neurostore_studysets_id_get GET /neurostore-studysets/{id} Get a Neurostore studyset reference by Neurostore ID
ComposeApi neurovault_collections_get GET /neurovault-collections Get neurovault collections
ComposeApi neurovault_collections_id_get GET /neurovault-collections/{id} Your GET endpoint
ComposeApi neurovault_collections_id_put PUT /neurovault-collections/{id}
ComposeApi neurovault_collections_post POST /neurovault-collections Create neurovault collection
ComposeApi neurovault_files_get GET /neurovault-files Your GET endpoint
ComposeApi neurovault_files_id_get GET /neurovault-files/{id} Your GET endpoint
ComposeApi neurovault_files_id_put PUT /neurovault-files/{id}
ComposeApi neurovault_files_post POST /neurovault-files
ComposeApi projects_get GET /projects Your GET endpoint
ComposeApi projects_id_delete DELETE /projects/{id}
ComposeApi projects_id_get GET /projects/{id} Your GET endpoint
ComposeApi projects_id_put PUT /projects/{id}
ComposeApi projects_post POST /projects
ComposeApi snapshot_annotations_get GET /snapshot-annotations GET a list of annotations
ComposeApi snapshot_annotations_id_get GET /snapshot-annotations/{id} GET information about an annotation
ComposeApi snapshot_annotations_id_put PUT /snapshot-annotations/{id} Update an Annotation
ComposeApi snapshot_annotations_post POST /snapshot-annotations Create a new Annotation
ComposeApi snapshot_studysets_get GET /snapshot-studysets Get a list of Studysets
ComposeApi snapshot_studysets_id_get GET /snapshot-studysets/{id} Get information about a Studyset
ComposeApi snapshot_studysets_id_put PUT /snapshot-studysets/{id} Update a Studyset
ComposeApi snapshot_studysets_post POST /snapshot-studysets Create a new Studyset
ComposeApi specifications_get GET /specifications Get a list of Specifications
ComposeApi specifications_id_get GET /specifications/{id} Get information about a Specification
ComposeApi specifications_id_put PUT /specifications/{id} Update Meta-Analysis specification
ComposeApi specifications_post POST /specifications Create a Specification
ComposeApi tags_get GET /tags Get a list of Tags
ComposeApi tags_id_get GET /tags/{id} Get information about a Tag
ComposeApi tags_post POST /tags Create a new Tag
ComposeApi users_get GET /users GET list of Users
ComposeApi users_id_get GET /users/{id} Get User Info by User ID
ComposeApi users_id_put PUT /users/{id} Update User Information
ComposeApi users_post POST /users Create A New User
DefaultApi meta_analyses_id_delete DELETE /meta-analyses/{id}
DefaultApi neurostore_studies_id_put PUT /neurostore-studies/{id}
DefaultApi neurostore_studies_post POST /neurostore-studies

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

JSON-Web-Token

  • Type: Bearer authentication

upload_key

  • Type: API key
  • API key parameter name: Compose-Upload-Key
  • Location: HTTP header

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 neurosynth_compose_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 neurosynth_compose_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")

Metadata

Release files for neurosynth-compose-sdk 1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for neurosynth-compose-sdk 1.2
File Size Uploaded Provenance Actions
neurosynth_compose_sdk-1.2.tar.gz 82.2 kB With provenance Details for neurosynth_compose_sdk-1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for neurosynth-compose-sdk 1.2
File Interpreter ABI Platform Actions
neurosynth_compose_sdk-1.2-py3-none-any.whl Python 3 none any Details for neurosynth_compose_sdk-1.2-py3-none-any.whl

Total release size: 247.6 kB

Release files / neurosynth_compose_sdk-1.2.tar.gz

Download URL neurosynth_compose_sdk-1.2.tar.gz
Size 82.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d182b455dff48031ec793925397c911ced13cea3000779e4786cee2b1171d56e
BLAKE2b-256 checksum
How to use checksums
526b02020d686b8bc1d3b1b2db4143959cd240d9265496030963df9316c8e852
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 12, 2026.

Transparency log

Release files / neurosynth_compose_sdk-1.2-py3-none-any.whl

Download URL neurosynth_compose_sdk-1.2-py3-none-any.whl
Size 165.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6840dd7091f84fc1acdfba8ca755c3dc16c3a7595449a3b57bc7c3165dcd96d1
BLAKE2b-256 checksum
How to use checksums
f2b121320a622a9ec76af398c761c8830a79987b4d127e4596587da39d2ab175
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 12, 2026.

Transparency log

Security for neurosynth-compose-sdk 1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for neurosynth_compose_sdk-1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 12, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page