aind-tars-service-client 0.0.2__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.
- aind_tars_service_client-0.0.2/PKG-INFO +23 -0
- aind_tars_service_client-0.0.2/README.md +130 -0
- aind_tars_service_client-0.0.2/aind_tars_service_client/__init__.py +49 -0
- aind_tars_service_client-0.0.2/aind_tars_service_client/api/__init__.py +6 -0
- aind_tars_service_client-0.0.2/aind_tars_service_client/api/default_api.py +932 -0
- aind_tars_service_client-0.0.2/aind_tars_service_client/api/healthcheck_api.py +281 -0
- aind_tars_service_client-0.0.2/aind_tars_service_client/api_client.py +797 -0
- aind_tars_service_client-0.0.2/aind_tars_service_client/api_response.py +21 -0
- aind_tars_service_client-0.0.2/aind_tars_service_client/configuration.py +572 -0
- aind_tars_service_client-0.0.2/aind_tars_service_client/exceptions.py +216 -0
- aind_tars_service_client-0.0.2/aind_tars_service_client/models/__init__.py +31 -0
- aind_tars_service_client-0.0.2/aind_tars_service_client/models/alias.py +145 -0
- aind_tars_service_client-0.0.2/aind_tars_service_client/models/health_check.py +99 -0
- aind_tars_service_client-0.0.2/aind_tars_service_client/models/http_validation_error.py +95 -0
- aind_tars_service_client-0.0.2/aind_tars_service_client/models/molecule_data.py +286 -0
- aind_tars_service_client-0.0.2/aind_tars_service_client/models/molecule_type.py +128 -0
- aind_tars_service_client-0.0.2/aind_tars_service_client/models/prep_lot_data.py +156 -0
- aind_tars_service_client-0.0.2/aind_tars_service_client/models/species.py +135 -0
- aind_tars_service_client-0.0.2/aind_tars_service_client/models/targeted_cell_population.py +128 -0
- aind_tars_service_client-0.0.2/aind_tars_service_client/models/targeted_roi.py +128 -0
- aind_tars_service_client-0.0.2/aind_tars_service_client/models/titers.py +159 -0
- aind_tars_service_client-0.0.2/aind_tars_service_client/models/validation_error.py +99 -0
- aind_tars_service_client-0.0.2/aind_tars_service_client/models/validation_error_loc_inner.py +138 -0
- aind_tars_service_client-0.0.2/aind_tars_service_client/models/viral_prep.py +165 -0
- aind_tars_service_client-0.0.2/aind_tars_service_client/models/viral_prep_type.py +128 -0
- aind_tars_service_client-0.0.2/aind_tars_service_client/models/virus_data.py +159 -0
- aind_tars_service_client-0.0.2/aind_tars_service_client/py.typed +0 -0
- aind_tars_service_client-0.0.2/aind_tars_service_client/rest.py +258 -0
- aind_tars_service_client-0.0.2/aind_tars_service_client.egg-info/PKG-INFO +23 -0
- aind_tars_service_client-0.0.2/aind_tars_service_client.egg-info/SOURCES.txt +52 -0
- aind_tars_service_client-0.0.2/aind_tars_service_client.egg-info/dependency_links.txt +1 -0
- aind_tars_service_client-0.0.2/aind_tars_service_client.egg-info/requires.txt +4 -0
- aind_tars_service_client-0.0.2/aind_tars_service_client.egg-info/top_level.txt +1 -0
- aind_tars_service_client-0.0.2/pyproject.toml +89 -0
- aind_tars_service_client-0.0.2/setup.cfg +7 -0
- aind_tars_service_client-0.0.2/setup.py +49 -0
- aind_tars_service_client-0.0.2/test/test_alias.py +58 -0
- aind_tars_service_client-0.0.2/test/test_default_api.py +52 -0
- aind_tars_service_client-0.0.2/test/test_health_check.py +52 -0
- aind_tars_service_client-0.0.2/test/test_healthcheck_api.py +38 -0
- aind_tars_service_client-0.0.2/test/test_http_validation_error.py +58 -0
- aind_tars_service_client-0.0.2/test/test_molecule_data.py +155 -0
- aind_tars_service_client-0.0.2/test/test_molecule_type.py +56 -0
- aind_tars_service_client-0.0.2/test/test_prep_lot_data.py +133 -0
- aind_tars_service_client-0.0.2/test/test_species.py +57 -0
- aind_tars_service_client-0.0.2/test/test_targeted_cell_population.py +56 -0
- aind_tars_service_client-0.0.2/test/test_targeted_roi.py +56 -0
- aind_tars_service_client-0.0.2/test/test_titers.py +60 -0
- aind_tars_service_client-0.0.2/test/test_validation_error.py +60 -0
- aind_tars_service_client-0.0.2/test/test_validation_error_loc_inner.py +50 -0
- aind_tars_service_client-0.0.2/test/test_viral_prep.py +112 -0
- aind_tars_service_client-0.0.2/test/test_viral_prep_type.py +56 -0
- aind_tars_service_client-0.0.2/test/test_virus_data.py +80 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: aind-tars-service-client
|
|
3
|
+
Version: 0.0.2
|
|
4
|
+
Summary: aind-tars-service
|
|
5
|
+
Home-page:
|
|
6
|
+
Author: OpenAPI Generator community
|
|
7
|
+
Author-email: team@openapitools.org
|
|
8
|
+
Keywords: OpenAPI,OpenAPI-Generator,aind-tars-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: pydantic>=2
|
|
13
|
+
Requires-Dist: typing-extensions>=4.7.1
|
|
14
|
+
Dynamic: author
|
|
15
|
+
Dynamic: author-email
|
|
16
|
+
Dynamic: description
|
|
17
|
+
Dynamic: description-content-type
|
|
18
|
+
Dynamic: keywords
|
|
19
|
+
Dynamic: requires-dist
|
|
20
|
+
Dynamic: summary
|
|
21
|
+
|
|
22
|
+
## aind-tars-service Service to pull data from TARS.
|
|
23
|
+
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
# aind-tars-service-client
|
|
2
|
+
|
|
3
|
+
## aind-tars-service
|
|
4
|
+
|
|
5
|
+
Service to pull data from TARS.
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
10
|
+
|
|
11
|
+
- API version: 0.0.2
|
|
12
|
+
- Package version: 0.0.2
|
|
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_tars_service_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_tars_service_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_tars_service_client
|
|
60
|
+
from aind_tars_service_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_tars_service_client.Configuration(
|
|
66
|
+
host = "http://localhost"
|
|
67
|
+
)
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
# Enter a context with an instance of the API client
|
|
72
|
+
with aind_tars_service_client.ApiClient(configuration) as api_client:
|
|
73
|
+
# Create an instance of the API class
|
|
74
|
+
api_instance = aind_tars_service_client.DefaultApi(api_client)
|
|
75
|
+
name = 'AiP20611' # str |
|
|
76
|
+
page_size = 1 # int | Number of items to return in a single page. (optional) (default to 1)
|
|
77
|
+
limit = 1 # int | Limit number of items returned. Set to 0 to return all. (optional) (default to 1)
|
|
78
|
+
|
|
79
|
+
try:
|
|
80
|
+
# Get Molecules
|
|
81
|
+
api_response = api_instance.get_molecules(name, page_size=page_size, limit=limit)
|
|
82
|
+
print("The response of DefaultApi->get_molecules:\n")
|
|
83
|
+
pprint(api_response)
|
|
84
|
+
except ApiException as e:
|
|
85
|
+
print("Exception when calling DefaultApi->get_molecules: %s\n" % e)
|
|
86
|
+
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## Documentation for API Endpoints
|
|
90
|
+
|
|
91
|
+
All URIs are relative to *http://localhost*
|
|
92
|
+
|
|
93
|
+
Class | Method | HTTP request | Description
|
|
94
|
+
------------ | ------------- | ------------- | -------------
|
|
95
|
+
*DefaultApi* | [**get_molecules**](docs/DefaultApi.md#get_molecules) | **GET** /molecules/{name} | Get Molecules
|
|
96
|
+
*DefaultApi* | [**get_viral_prep_lots**](docs/DefaultApi.md#get_viral_prep_lots) | **GET** /viral_prep_lots/{lot} | Get Viral Prep Lots
|
|
97
|
+
*DefaultApi* | [**get_viruses**](docs/DefaultApi.md#get_viruses) | **GET** /viruses/{name} | Get Viruses
|
|
98
|
+
*HealthcheckApi* | [**get_health**](docs/HealthcheckApi.md#get_health) | **GET** /healthcheck | Perform a Health Check
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
## Documentation For Models
|
|
102
|
+
|
|
103
|
+
- [Alias](docs/Alias.md)
|
|
104
|
+
- [HTTPValidationError](docs/HTTPValidationError.md)
|
|
105
|
+
- [HealthCheck](docs/HealthCheck.md)
|
|
106
|
+
- [MoleculeData](docs/MoleculeData.md)
|
|
107
|
+
- [MoleculeType](docs/MoleculeType.md)
|
|
108
|
+
- [PrepLotData](docs/PrepLotData.md)
|
|
109
|
+
- [Species](docs/Species.md)
|
|
110
|
+
- [TargetedCellPopulation](docs/TargetedCellPopulation.md)
|
|
111
|
+
- [TargetedRoi](docs/TargetedRoi.md)
|
|
112
|
+
- [Titers](docs/Titers.md)
|
|
113
|
+
- [ValidationError](docs/ValidationError.md)
|
|
114
|
+
- [ValidationErrorLocInner](docs/ValidationErrorLocInner.md)
|
|
115
|
+
- [ViralPrep](docs/ViralPrep.md)
|
|
116
|
+
- [ViralPrepType](docs/ViralPrepType.md)
|
|
117
|
+
- [VirusData](docs/VirusData.md)
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
<a id="documentation-for-authorization"></a>
|
|
121
|
+
## Documentation For Authorization
|
|
122
|
+
|
|
123
|
+
Endpoints do not require authorization.
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
## Author
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
# flake8: noqa
|
|
4
|
+
|
|
5
|
+
"""
|
|
6
|
+
aind-tars-service
|
|
7
|
+
|
|
8
|
+
## aind-tars-service Service to pull data from TARS.
|
|
9
|
+
|
|
10
|
+
The version of the OpenAPI document: 0.0.2
|
|
11
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
12
|
+
|
|
13
|
+
Do not edit the class manually.
|
|
14
|
+
""" # noqa: E501
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
__version__ = "0.0.2"
|
|
18
|
+
|
|
19
|
+
# import apis into sdk package
|
|
20
|
+
from aind_tars_service_client.api.default_api import DefaultApi
|
|
21
|
+
from aind_tars_service_client.api.healthcheck_api import HealthcheckApi
|
|
22
|
+
|
|
23
|
+
# import ApiClient
|
|
24
|
+
from aind_tars_service_client.api_response import ApiResponse
|
|
25
|
+
from aind_tars_service_client.api_client import ApiClient
|
|
26
|
+
from aind_tars_service_client.configuration import Configuration
|
|
27
|
+
from aind_tars_service_client.exceptions import OpenApiException
|
|
28
|
+
from aind_tars_service_client.exceptions import ApiTypeError
|
|
29
|
+
from aind_tars_service_client.exceptions import ApiValueError
|
|
30
|
+
from aind_tars_service_client.exceptions import ApiKeyError
|
|
31
|
+
from aind_tars_service_client.exceptions import ApiAttributeError
|
|
32
|
+
from aind_tars_service_client.exceptions import ApiException
|
|
33
|
+
|
|
34
|
+
# import models into sdk package
|
|
35
|
+
from aind_tars_service_client.models.alias import Alias
|
|
36
|
+
from aind_tars_service_client.models.http_validation_error import HTTPValidationError
|
|
37
|
+
from aind_tars_service_client.models.health_check import HealthCheck
|
|
38
|
+
from aind_tars_service_client.models.molecule_data import MoleculeData
|
|
39
|
+
from aind_tars_service_client.models.molecule_type import MoleculeType
|
|
40
|
+
from aind_tars_service_client.models.prep_lot_data import PrepLotData
|
|
41
|
+
from aind_tars_service_client.models.species import Species
|
|
42
|
+
from aind_tars_service_client.models.targeted_cell_population import TargetedCellPopulation
|
|
43
|
+
from aind_tars_service_client.models.targeted_roi import TargetedRoi
|
|
44
|
+
from aind_tars_service_client.models.titers import Titers
|
|
45
|
+
from aind_tars_service_client.models.validation_error import ValidationError
|
|
46
|
+
from aind_tars_service_client.models.validation_error_loc_inner import ValidationErrorLocInner
|
|
47
|
+
from aind_tars_service_client.models.viral_prep import ViralPrep
|
|
48
|
+
from aind_tars_service_client.models.viral_prep_type import ViralPrepType
|
|
49
|
+
from aind_tars_service_client.models.virus_data import VirusData
|