aind-metadata-service-async-client 1.0.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of aind-metadata-service-async-client might be problematic. Click here for more details.
- aind_metadata_service_async_client-1.0.7/PKG-INFO +25 -0
- aind_metadata_service_async_client-1.0.7/README.md +142 -0
- aind_metadata_service_async_client-1.0.7/aind_metadata_service_async_client/__init__.py +52 -0
- aind_metadata_service_async_client-1.0.7/aind_metadata_service_async_client/api/__init__.py +6 -0
- aind_metadata_service_async_client-1.0.7/aind_metadata_service_async_client/api/default_api.py +3818 -0
- aind_metadata_service_async_client-1.0.7/aind_metadata_service_async_client/api/healthcheck_api.py +281 -0
- aind_metadata_service_async_client-1.0.7/aind_metadata_service_async_client/api_client.py +800 -0
- aind_metadata_service_async_client-1.0.7/aind_metadata_service_async_client/api_response.py +21 -0
- aind_metadata_service_async_client-1.0.7/aind_metadata_service_async_client/configuration.py +568 -0
- aind_metadata_service_async_client-1.0.7/aind_metadata_service_async_client/exceptions.py +216 -0
- aind_metadata_service_async_client-1.0.7/aind_metadata_service_async_client/models/__init__.py +34 -0
- aind_metadata_service_async_client-1.0.7/aind_metadata_service_async_client/models/anyof_schema1_validator.py +144 -0
- aind_metadata_service_async_client-1.0.7/aind_metadata_service_async_client/models/average_hit_rate.py +144 -0
- aind_metadata_service_async_client-1.0.7/aind_metadata_service_async_client/models/fov_coordinate_ap.py +144 -0
- aind_metadata_service_async_client-1.0.7/aind_metadata_service_async_client/models/fov_coordinate_ml.py +112 -0
- aind_metadata_service_async_client-1.0.7/aind_metadata_service_async_client/models/health_check.py +99 -0
- aind_metadata_service_async_client-1.0.7/aind_metadata_service_async_client/models/hit_rate_trials010.py +144 -0
- aind_metadata_service_async_client-1.0.7/aind_metadata_service_async_client/models/hit_rate_trials2040.py +144 -0
- aind_metadata_service_async_client-1.0.7/aind_metadata_service_async_client/models/http_validation_error.py +95 -0
- aind_metadata_service_async_client-1.0.7/aind_metadata_service_async_client/models/input_source.py +122 -0
- aind_metadata_service_async_client-1.0.7/aind_metadata_service_async_client/models/job_settings.py +369 -0
- aind_metadata_service_async_client-1.0.7/aind_metadata_service_async_client/models/job_settings_starting_lickport_position_inner.py +138 -0
- aind_metadata_service_async_client-1.0.7/aind_metadata_service_async_client/models/output_directory.py +108 -0
- aind_metadata_service_async_client-1.0.7/aind_metadata_service_async_client/models/slims_workflow.py +40 -0
- aind_metadata_service_async_client-1.0.7/aind_metadata_service_async_client/models/total_hits.py +144 -0
- aind_metadata_service_async_client-1.0.7/aind_metadata_service_async_client/models/trial_num.py +144 -0
- aind_metadata_service_async_client-1.0.7/aind_metadata_service_async_client/models/user_settings_config_file.py +108 -0
- aind_metadata_service_async_client-1.0.7/aind_metadata_service_async_client/models/validation_error.py +99 -0
- aind_metadata_service_async_client-1.0.7/aind_metadata_service_async_client/models/validation_error_loc_inner.py +138 -0
- aind_metadata_service_async_client-1.0.7/aind_metadata_service_async_client/py.typed +0 -0
- aind_metadata_service_async_client-1.0.7/aind_metadata_service_async_client/rest.py +213 -0
- aind_metadata_service_async_client-1.0.7/aind_metadata_service_async_client.egg-info/PKG-INFO +25 -0
- aind_metadata_service_async_client-1.0.7/aind_metadata_service_async_client.egg-info/SOURCES.txt +58 -0
- aind_metadata_service_async_client-1.0.7/aind_metadata_service_async_client.egg-info/dependency_links.txt +1 -0
- aind_metadata_service_async_client-1.0.7/aind_metadata_service_async_client.egg-info/requires.txt +6 -0
- aind_metadata_service_async_client-1.0.7/aind_metadata_service_async_client.egg-info/top_level.txt +1 -0
- aind_metadata_service_async_client-1.0.7/pyproject.toml +91 -0
- aind_metadata_service_async_client-1.0.7/setup.cfg +7 -0
- aind_metadata_service_async_client-1.0.7/setup.py +51 -0
- aind_metadata_service_async_client-1.0.7/test/test_anyof_schema1_validator.py +50 -0
- aind_metadata_service_async_client-1.0.7/test/test_average_hit_rate.py +50 -0
- aind_metadata_service_async_client-1.0.7/test/test_default_api.py +129 -0
- aind_metadata_service_async_client-1.0.7/test/test_fov_coordinate_ap.py +50 -0
- aind_metadata_service_async_client-1.0.7/test/test_fov_coordinate_ml.py +56 -0
- aind_metadata_service_async_client-1.0.7/test/test_health_check.py +52 -0
- aind_metadata_service_async_client-1.0.7/test/test_healthcheck_api.py +38 -0
- aind_metadata_service_async_client-1.0.7/test/test_hit_rate_trials010.py +50 -0
- aind_metadata_service_async_client-1.0.7/test/test_hit_rate_trials2040.py +50 -0
- aind_metadata_service_async_client-1.0.7/test/test_http_validation_error.py +58 -0
- aind_metadata_service_async_client-1.0.7/test/test_input_source.py +62 -0
- aind_metadata_service_async_client-1.0.7/test/test_job_settings.py +140 -0
- aind_metadata_service_async_client-1.0.7/test/test_job_settings_starting_lickport_position_inner.py +50 -0
- aind_metadata_service_async_client-1.0.7/test/test_output_directory.py +56 -0
- aind_metadata_service_async_client-1.0.7/test/test_slims_workflow.py +33 -0
- aind_metadata_service_async_client-1.0.7/test/test_total_hits.py +50 -0
- aind_metadata_service_async_client-1.0.7/test/test_trial_num.py +50 -0
- aind_metadata_service_async_client-1.0.7/test/test_user_settings_config_file.py +56 -0
- aind_metadata_service_async_client-1.0.7/test/test_validation_error.py +60 -0
- aind_metadata_service_async_client-1.0.7/test/test_validation_error_loc_inner.py +50 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: aind-metadata-service-async-client
|
|
3
|
+
Version: 1.0.7
|
|
4
|
+
Summary: aind-metadata-service
|
|
5
|
+
Home-page:
|
|
6
|
+
Author: OpenAPI Generator community
|
|
7
|
+
Author-email: team@openapitools.org
|
|
8
|
+
Keywords: OpenAPI,OpenAPI-Generator,aind-metadata-service
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
Requires-Dist: urllib3<3.0.0,>=2.1.0
|
|
11
|
+
Requires-Dist: python-dateutil>=2.8.2
|
|
12
|
+
Requires-Dist: aiohttp>=3.8.4
|
|
13
|
+
Requires-Dist: aiohttp-retry>=2.8.3
|
|
14
|
+
Requires-Dist: pydantic>=2
|
|
15
|
+
Requires-Dist: typing-extensions>=4.7.1
|
|
16
|
+
Dynamic: author
|
|
17
|
+
Dynamic: author-email
|
|
18
|
+
Dynamic: description
|
|
19
|
+
Dynamic: description-content-type
|
|
20
|
+
Dynamic: keywords
|
|
21
|
+
Dynamic: requires-dist
|
|
22
|
+
Dynamic: summary
|
|
23
|
+
|
|
24
|
+
## aind-metadata-service Service to pull data from example backend.
|
|
25
|
+
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# aind-metadata-service-async-client
|
|
2
|
+
|
|
3
|
+
## aind-metadata-service
|
|
4
|
+
|
|
5
|
+
Service to pull data from example backend.
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
10
|
+
|
|
11
|
+
- API version: 1.0.7
|
|
12
|
+
- Package version: 1.0.7
|
|
13
|
+
- Generator version: 7.13.0
|
|
14
|
+
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
15
|
+
|
|
16
|
+
## Requirements.
|
|
17
|
+
|
|
18
|
+
Python 3.9+
|
|
19
|
+
|
|
20
|
+
## Installation & Usage
|
|
21
|
+
### pip install
|
|
22
|
+
|
|
23
|
+
If the python package is hosted on a repository, you can install directly using:
|
|
24
|
+
|
|
25
|
+
```sh
|
|
26
|
+
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
|
|
27
|
+
```
|
|
28
|
+
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)
|
|
29
|
+
|
|
30
|
+
Then import the package:
|
|
31
|
+
```python
|
|
32
|
+
import aind_metadata_service_async_client
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Setuptools
|
|
36
|
+
|
|
37
|
+
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
|
|
38
|
+
|
|
39
|
+
```sh
|
|
40
|
+
python setup.py install --user
|
|
41
|
+
```
|
|
42
|
+
(or `sudo python setup.py install` to install the package for all users)
|
|
43
|
+
|
|
44
|
+
Then import the package:
|
|
45
|
+
```python
|
|
46
|
+
import aind_metadata_service_async_client
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Tests
|
|
50
|
+
|
|
51
|
+
Execute `pytest` to run the tests.
|
|
52
|
+
|
|
53
|
+
## Getting Started
|
|
54
|
+
|
|
55
|
+
Please follow the [installation procedure](#installation--usage) and then run the following:
|
|
56
|
+
|
|
57
|
+
```python
|
|
58
|
+
|
|
59
|
+
import aind_metadata_service_async_client
|
|
60
|
+
from aind_metadata_service_async_client.rest import ApiException
|
|
61
|
+
from pprint import pprint
|
|
62
|
+
|
|
63
|
+
# Defining the host is optional and defaults to http://localhost
|
|
64
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
65
|
+
configuration = aind_metadata_service_async_client.Configuration(
|
|
66
|
+
host = "http://localhost"
|
|
67
|
+
)
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
# Enter a context with an instance of the API client
|
|
72
|
+
async with aind_metadata_service_async_client.ApiClient(configuration) as api_client:
|
|
73
|
+
# Create an instance of the API class
|
|
74
|
+
api_instance = aind_metadata_service_async_client.DefaultApi(api_client)
|
|
75
|
+
job_settings = aind_metadata_service_async_client.JobSettings() # JobSettings |
|
|
76
|
+
|
|
77
|
+
try:
|
|
78
|
+
# Get Bergamo Session
|
|
79
|
+
api_response = await api_instance.get_bergamo_session(job_settings)
|
|
80
|
+
print("The response of DefaultApi->get_bergamo_session:\n")
|
|
81
|
+
pprint(api_response)
|
|
82
|
+
except ApiException as e:
|
|
83
|
+
print("Exception when calling DefaultApi->get_bergamo_session: %s\n" % e)
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Documentation for API Endpoints
|
|
88
|
+
|
|
89
|
+
All URIs are relative to *http://localhost*
|
|
90
|
+
|
|
91
|
+
Class | Method | HTTP request | Description
|
|
92
|
+
------------ | ------------- | ------------- | -------------
|
|
93
|
+
*DefaultApi* | [**get_bergamo_session**](docs/DefaultApi.md#get_bergamo_session) | **POST** /bergamo_session | Get Bergamo Session
|
|
94
|
+
*DefaultApi* | [**get_funding**](docs/DefaultApi.md#get_funding) | **GET** /funding/{project_name} | Get Funding
|
|
95
|
+
*DefaultApi* | [**get_injection_materials**](docs/DefaultApi.md#get_injection_materials) | **GET** /tars_injection_materials/{prep_lot_number} | Get Injection Materials
|
|
96
|
+
*DefaultApi* | [**get_instrument**](docs/DefaultApi.md#get_instrument) | **GET** /instrument/{instrument_id} | Get Instrument
|
|
97
|
+
*DefaultApi* | [**get_intended_measurements**](docs/DefaultApi.md#get_intended_measurements) | **GET** /intended_measurements/{subject_id} | Get Intended Measurements
|
|
98
|
+
*DefaultApi* | [**get_mgi_allele**](docs/DefaultApi.md#get_mgi_allele) | **GET** /mgi_allele/{allele_name} | Get Mgi Allele
|
|
99
|
+
*DefaultApi* | [**get_perfusions**](docs/DefaultApi.md#get_perfusions) | **GET** /perfusions/{subject_id} | Get Perfusions
|
|
100
|
+
*DefaultApi* | [**get_procedures**](docs/DefaultApi.md#get_procedures) | **GET** /procedures/{subject_id} | Get Procedures
|
|
101
|
+
*DefaultApi* | [**get_project_names**](docs/DefaultApi.md#get_project_names) | **GET** /project_names | Get Project Names
|
|
102
|
+
*DefaultApi* | [**get_protocols**](docs/DefaultApi.md#get_protocols) | **GET** /protocols/{protocol_name} | Get Protocols
|
|
103
|
+
*DefaultApi* | [**get_rig**](docs/DefaultApi.md#get_rig) | **GET** /rig/{rig_id} | Get Rig
|
|
104
|
+
*DefaultApi* | [**get_slims_workflow**](docs/DefaultApi.md#get_slims_workflow) | **GET** /slims/{workflow} | Get Slims Workflow
|
|
105
|
+
*DefaultApi* | [**get_subject**](docs/DefaultApi.md#get_subject) | **GET** /subject/{subject_id} | Get Subject
|
|
106
|
+
*DefaultApi* | [**index**](docs/DefaultApi.md#index) | **GET** / | Index
|
|
107
|
+
*HealthcheckApi* | [**get_health**](docs/HealthcheckApi.md#get_health) | **GET** /healthcheck | Perform a Health Check
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
## Documentation For Models
|
|
111
|
+
|
|
112
|
+
- [AnyofSchema1Validator](docs/AnyofSchema1Validator.md)
|
|
113
|
+
- [AverageHitRate](docs/AverageHitRate.md)
|
|
114
|
+
- [FovCoordinateAp](docs/FovCoordinateAp.md)
|
|
115
|
+
- [FovCoordinateMl](docs/FovCoordinateMl.md)
|
|
116
|
+
- [HTTPValidationError](docs/HTTPValidationError.md)
|
|
117
|
+
- [HealthCheck](docs/HealthCheck.md)
|
|
118
|
+
- [HitRateTrials010](docs/HitRateTrials010.md)
|
|
119
|
+
- [HitRateTrials2040](docs/HitRateTrials2040.md)
|
|
120
|
+
- [InputSource](docs/InputSource.md)
|
|
121
|
+
- [JobSettings](docs/JobSettings.md)
|
|
122
|
+
- [JobSettingsStartingLickportPositionInner](docs/JobSettingsStartingLickportPositionInner.md)
|
|
123
|
+
- [OutputDirectory](docs/OutputDirectory.md)
|
|
124
|
+
- [SlimsWorkflow](docs/SlimsWorkflow.md)
|
|
125
|
+
- [TotalHits](docs/TotalHits.md)
|
|
126
|
+
- [TrialNum](docs/TrialNum.md)
|
|
127
|
+
- [UserSettingsConfigFile](docs/UserSettingsConfigFile.md)
|
|
128
|
+
- [ValidationError](docs/ValidationError.md)
|
|
129
|
+
- [ValidationErrorLocInner](docs/ValidationErrorLocInner.md)
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
<a id="documentation-for-authorization"></a>
|
|
133
|
+
## Documentation For Authorization
|
|
134
|
+
|
|
135
|
+
Endpoints do not require authorization.
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
## Author
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
# flake8: noqa
|
|
4
|
+
|
|
5
|
+
"""
|
|
6
|
+
aind-metadata-service
|
|
7
|
+
|
|
8
|
+
## aind-metadata-service Service to pull data from example backend.
|
|
9
|
+
|
|
10
|
+
The version of the OpenAPI document: 1.0.7
|
|
11
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
12
|
+
|
|
13
|
+
Do not edit the class manually.
|
|
14
|
+
""" # noqa: E501
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
__version__ = "1.0.7"
|
|
18
|
+
|
|
19
|
+
# import apis into sdk package
|
|
20
|
+
from aind_metadata_service_async_client.api.default_api import DefaultApi
|
|
21
|
+
from aind_metadata_service_async_client.api.healthcheck_api import HealthcheckApi
|
|
22
|
+
|
|
23
|
+
# import ApiClient
|
|
24
|
+
from aind_metadata_service_async_client.api_response import ApiResponse
|
|
25
|
+
from aind_metadata_service_async_client.api_client import ApiClient
|
|
26
|
+
from aind_metadata_service_async_client.configuration import Configuration
|
|
27
|
+
from aind_metadata_service_async_client.exceptions import OpenApiException
|
|
28
|
+
from aind_metadata_service_async_client.exceptions import ApiTypeError
|
|
29
|
+
from aind_metadata_service_async_client.exceptions import ApiValueError
|
|
30
|
+
from aind_metadata_service_async_client.exceptions import ApiKeyError
|
|
31
|
+
from aind_metadata_service_async_client.exceptions import ApiAttributeError
|
|
32
|
+
from aind_metadata_service_async_client.exceptions import ApiException
|
|
33
|
+
|
|
34
|
+
# import models into sdk package
|
|
35
|
+
from aind_metadata_service_async_client.models.anyof_schema1_validator import AnyofSchema1Validator
|
|
36
|
+
from aind_metadata_service_async_client.models.average_hit_rate import AverageHitRate
|
|
37
|
+
from aind_metadata_service_async_client.models.fov_coordinate_ap import FovCoordinateAp
|
|
38
|
+
from aind_metadata_service_async_client.models.fov_coordinate_ml import FovCoordinateMl
|
|
39
|
+
from aind_metadata_service_async_client.models.http_validation_error import HTTPValidationError
|
|
40
|
+
from aind_metadata_service_async_client.models.health_check import HealthCheck
|
|
41
|
+
from aind_metadata_service_async_client.models.hit_rate_trials010 import HitRateTrials010
|
|
42
|
+
from aind_metadata_service_async_client.models.hit_rate_trials2040 import HitRateTrials2040
|
|
43
|
+
from aind_metadata_service_async_client.models.input_source import InputSource
|
|
44
|
+
from aind_metadata_service_async_client.models.job_settings import JobSettings
|
|
45
|
+
from aind_metadata_service_async_client.models.job_settings_starting_lickport_position_inner import JobSettingsStartingLickportPositionInner
|
|
46
|
+
from aind_metadata_service_async_client.models.output_directory import OutputDirectory
|
|
47
|
+
from aind_metadata_service_async_client.models.slims_workflow import SlimsWorkflow
|
|
48
|
+
from aind_metadata_service_async_client.models.total_hits import TotalHits
|
|
49
|
+
from aind_metadata_service_async_client.models.trial_num import TrialNum
|
|
50
|
+
from aind_metadata_service_async_client.models.user_settings_config_file import UserSettingsConfigFile
|
|
51
|
+
from aind_metadata_service_async_client.models.validation_error import ValidationError
|
|
52
|
+
from aind_metadata_service_async_client.models.validation_error_loc_inner import ValidationErrorLocInner
|