Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
NotificationsYou must be signed in to change notification settings

neurostuff/neurosynth-compose-python-sdk

Repository files navigation

api to create a meta-analysis specification

This Python package is automatically generated by theOpenAPI Generator project:

  • API version: 1.0
  • Package version: 0.0.1
  • Generator version: 7.17.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegenFor more information, please visithttps://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 runpip with root permission:sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

importneurosynth_compose_sdk

Setuptools

Install viaSetuptools.

python setup.py install --user

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

Then import the package:

importneurosynth_compose_sdk

Tests

Executepytest to run the tests.

Getting Started

Please follow theinstallation procedure and then run the following:

importneurosynth_compose_sdkfromneurosynth_compose_sdk.restimportApiExceptionfrompprintimportpprint# 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")# Enter a context with an instance of the API clientwithneurosynth_compose_sdk.ApiClient(configuration)asapi_client:# Create an instance of the API classapi_instance=neurosynth_compose_sdk.AnnotationsApi(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)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')desc=True# bool | sort results by descending order (as opposed to ascending order) (optional)user_id='user_id_example'# str | user id you want to filter on (optional)info=True# bool | display additional information about a nested relationship without displaying fully nested object (optional)try:# GET a list of annotationsapi_response=api_instance.annotations_get(nested=nested,ids=ids,page=page,page_size=page_size,search=search,sort=sort,desc=desc,user_id=user_id,info=info)print("The response of AnnotationsApi->annotations_get:\n")pprint(api_response)exceptApiExceptionase:print("Exception when calling AnnotationsApi->annotations_get: %s\n"%e)

Documentation for API Endpoints

All URIs are relative tohttps://compose.neurosynth.org/api

ClassMethodHTTP requestDescription
AnnotationsApiannotations_getGET /annotationsGET a list of annotations
AnnotationsApiannotations_id_getGET /annotations/{id}GET information about an annotation
AnnotationsApiannotations_id_putPUT /annotations/{id}Update an Annotation
AnnotationsApiannotations_postPOST /annotationsCreate a new Annotation
DefaultApimeta_analyses_id_deleteDELETE /meta-analyses/{id}
DefaultApineurostore_studies_getGET /neurostore-studiesYour GET endpoint
DefaultApineurostore_studies_id_getGET /neurostore-studies/{id}Your GET endpoint
DefaultApineurostore_studies_id_putPUT /neurostore-studies/{id}
DefaultApineurostore_studies_postPOST /neurostore-studies
DefaultApistudyset_references_getGET /studyset-referencesYour GET endpoint
DefaultApistudyset_references_id_getGET /studyset-references/{id}Your GET endpoint
MetaAnalysesApimeta_analyses_getGET /meta-analysesGET a list of meta-analyses
MetaAnalysesApimeta_analyses_id_getGET /meta-analyses/{id}GET meta-analysis information
MetaAnalysesApimeta_analyses_id_putPUT /meta-analyses/{id}Update a meta-analysis
MetaAnalysesApimeta_analyses_postPOST /meta-analysesCreate a new meta-analysis
MetaAnalysesApimeta_analysis_results_getGET /meta-analysis-resultsYour GET endpoint
MetaAnalysesApimeta_analysis_results_id_getGET /meta-analysis-results/{id}Your GET endpoint
MetaAnalysesApimeta_analysis_results_id_putPUT /meta-analysis-results/{id}
MetaAnalysesApimeta_analysis_results_postPOST /meta-analysis-results
MetaAnalysesApineurosynth_compose_resources_meta_analysis_jobs_meta_analysis_job_resource_getGET /meta-analysis-jobs/{job_id}Get status and logs for a meta-analysis job
MetaAnalysesApineurosynth_compose_resources_meta_analysis_jobs_meta_analysis_jobs_resource_getGET /meta-analysis-jobsList meta-analysis jobs for the current user
MetaAnalysesApineurosynth_compose_resources_meta_analysis_jobs_meta_analysis_jobs_resource_postPOST /meta-analysis-jobsSubmit a meta-analysis job
NeurovaultApineurovault_collections_getGET /neurovault-collectionsGet neurovault collections
NeurovaultApineurovault_collections_id_getGET /neurovault-collections/{id}Your GET endpoint
NeurovaultApineurovault_collections_id_putPUT /neurovault-collections/{id}
NeurovaultApineurovault_collections_postPOST /neurovault-collectionsCreate neurovault collection
NeurovaultApineurovault_files_getGET /neurovault-filesYour GET endpoint
NeurovaultApineurovault_files_id_getGET /neurovault-files/{id}Your GET endpoint
NeurovaultApineurovault_files_id_putPUT /neurovault-files/{id}
NeurovaultApineurovault_files_postPOST /neurovault-files
ProjectsApiprojects_getGET /projectsYour GET endpoint
ProjectsApiprojects_id_deleteDELETE /projects/{id}
ProjectsApiprojects_id_getGET /projects/{id}Your GET endpoint
ProjectsApiprojects_id_putPUT /projects/{id}
ProjectsApiprojects_postPOST /projects
SpecificationsApispecifications_getGET /specificationsGet a list of Specifications
SpecificationsApispecifications_id_getGET /specifications/{id}Get information about a Specification
SpecificationsApispecifications_id_putPUT /specifications/{id}Update Meta-Analysis specification
SpecificationsApispecifications_postPOST /specificationsCreate a Specification
StudysetsApistudysets_getGET /studysetsGet a list of Studysets
StudysetsApistudysets_id_getGET /studysets/{id}Get information about a Studyset
StudysetsApistudysets_id_putPUT /studysets/{id}Update a Studyset
StudysetsApistudysets_postPOST /studysetsCreate a new Studyset
TagsApitags_getGET /tagsGet a list of Tags
TagsApitags_id_getGET /tags/{id}Get information about a Tag
TagsApitags_postPOST /tagsCreate a new Tag
UsersApiusers_getGET /usersGET list of Users
UsersApiusers_id_getGET /users/{id}Get User Info by User ID
UsersApiusers_id_putPUT /users/{id}Update User Information
UsersApiusers_postPOST /usersCreate A New User

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

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

Auth0 refresh-token usage

fromneurosynth_compose_sdk.sdkimportSDKsdk=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 optionalAUTH0_AUDIENCE,AUTH0_CLIENT_SECRET,AUTH0_SCOPE.

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2026 Movatter.jp