Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/tag_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ jobs:
- name: Get Python version and Update README.md
run: |
python_version=$(grep "requires-python" pyproject.toml | grep -o ">=[^\"]*")
python_badge=$(grep -o 'python-[^)]*' README.md)
python_badge=$(grep '^\!\[Python\]' README.md | sed -n 's/.*\(python-[^)]*\).*/\1/p')
new_python_badge="python-$python_version-blue?logo=python"
sed -i "s/$python_badge/$new_python_badge/g" README.md
- name: Get interrogate values and Update README.md
run: |
interrogate_val=$(interrogate . | grep -o 'actual: [0-9]*\.[0-9]*' | awk '{print $2}')
interrogate_badge=$(grep -o 'interrogate-[^)]*' README.md)
interrogate_badge=$(grep '^\!\[Interrogate\]' README.md | sed -n 's/.*\(interrogate-[^)]*\).*/\1/p')
if (( $(echo "$interrogate_val >= 90.00" | bc -l) )); then
new_interrogate_badge="interrogate-$interrogate_val%25-brightgreen"
elif (( $(echo "$interrogate_val < 80.00" | bc -l) )); then
Expand All @@ -46,7 +46,7 @@ jobs:
run: |
coverage run -m pytest
coverage_val=$(coverage report | grep "^TOTAL" | grep -o '[0-9]\+%' | grep -o '[0-9]\+')
coverage_badge=$(grep -o "coverage-[^?]*" README.md)
coverage_badge=$(grep '^\!\[Coverage\]' README.md | sed -n 's/.*\(coverage-[^)]*\).*/\1/p')
if (( $(echo "$coverage_val >= 90.00" | bc -l) )); then
new_coverage_badge="coverage-$coverage_val%25-brightgreen"
elif (( $(echo "$coverage_val < 80.00" | bc -l) )); then
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ REST service to connect to SLIMS and return information.
- The client code is autogenerated using an openapi generator.
- On a push to main, a python library will be built and published to PyPI.
- The client can then be pip installed as `pip install aind-slims-service-client`
- An async client can be pip installed as `pip install aind-slims-service-async-client`
4 changes: 2 additions & 2 deletions aind-slims-service-async-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Service to pull data from SLIMS.

This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 0.2.2
- Package version: 0.2.2
- API version: 0.2.3
- Package version: 0.2.3
- Generator version: 7.13.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@

## aind-slims-service Service to pull data from SLIMS.

The version of the OpenAPI document: 0.2.2
The version of the OpenAPI document: 0.2.3
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
""" # noqa: E501


__version__ = "0.2.2"
__version__ = "0.2.3"

# import apis into sdk package
from aind_slims_service_async_client.api.default_api import DefaultApi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

## aind-slims-service Service to pull data from SLIMS.

The version of the OpenAPI document: 0.2.2
The version of the OpenAPI document: 0.2.3
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

## aind-slims-service Service to pull data from SLIMS.

The version of the OpenAPI document: 0.2.2
The version of the OpenAPI document: 0.2.3
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

## aind-slims-service Service to pull data from SLIMS.

The version of the OpenAPI document: 0.2.2
The version of the OpenAPI document: 0.2.3
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down Expand Up @@ -90,7 +90,7 @@ def __init__(
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/0.2.2/python'
self.user_agent = 'OpenAPI-Generator/0.2.3/python'
self.client_side_validation = configuration.client_side_validation

async def __aenter__(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

## aind-slims-service Service to pull data from SLIMS.

The version of the OpenAPI document: 0.2.2
The version of the OpenAPI document: 0.2.3
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down Expand Up @@ -496,8 +496,8 @@ def to_debug_report(self) -> str:
return "Python SDK Debug Report:\n"\
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 0.2.2\n"\
"SDK Package Version: 0.2.2".\
"Version of the API: 0.2.3\n"\
"SDK Package Version: 0.2.3".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self) -> List[HostSetting]:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

## aind-slims-service Service to pull data from SLIMS.

The version of the OpenAPI document: 0.2.2
The version of the OpenAPI document: 0.2.3
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

## aind-slims-service Service to pull data from SLIMS.

The version of the OpenAPI document: 0.2.2
The version of the OpenAPI document: 0.2.3
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

## aind-slims-service Service to pull data from SLIMS.

The version of the OpenAPI document: 0.2.2
The version of the OpenAPI document: 0.2.3
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

## aind-slims-service Service to pull data from SLIMS.

The version of the OpenAPI document: 0.2.2
The version of the OpenAPI document: 0.2.3
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

## aind-slims-service Service to pull data from SLIMS.

The version of the OpenAPI document: 0.2.2
The version of the OpenAPI document: 0.2.3
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand All @@ -27,7 +27,7 @@ class HealthCheck(BaseModel):
Response model to validate and return when performing a health check.
""" # noqa: E501
status: Optional[StrictStr] = 'OK'
service_version: Optional[StrictStr] = '0.2.2'
service_version: Optional[StrictStr] = '0.2.3'
__properties: ClassVar[List[str]] = ["status", "service_version"]

@field_validator('status')
Expand Down Expand Up @@ -92,7 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:

_obj = cls.model_validate({
"status": obj.get("status") if obj.get("status") is not None else 'OK',
"service_version": obj.get("service_version") if obj.get("service_version") is not None else '0.2.2'
"service_version": obj.get("service_version") if obj.get("service_version") is not None else '0.2.3'
})
return _obj

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

## aind-slims-service Service to pull data from SLIMS.

The version of the OpenAPI document: 0.2.2
The version of the OpenAPI document: 0.2.3
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

## aind-slims-service Service to pull data from SLIMS.

The version of the OpenAPI document: 0.2.2
The version of the OpenAPI document: 0.2.3
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

## aind-slims-service Service to pull data from SLIMS.

The version of the OpenAPI document: 0.2.2
The version of the OpenAPI document: 0.2.3
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

## aind-slims-service Service to pull data from SLIMS.

The version of the OpenAPI document: 0.2.2
The version of the OpenAPI document: 0.2.3
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

## aind-slims-service Service to pull data from SLIMS.

The version of the OpenAPI document: 0.2.2
The version of the OpenAPI document: 0.2.3
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

## aind-slims-service Service to pull data from SLIMS.

The version of the OpenAPI document: 0.2.2
The version of the OpenAPI document: 0.2.3
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

## aind-slims-service Service to pull data from SLIMS.

The version of the OpenAPI document: 0.2.2
The version of the OpenAPI document: 0.2.3
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

## aind-slims-service Service to pull data from SLIMS.

The version of the OpenAPI document: 0.2.2
The version of the OpenAPI document: 0.2.3
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

## aind-slims-service Service to pull data from SLIMS.

The version of the OpenAPI document: 0.2.2
The version of the OpenAPI document: 0.2.3
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

## aind-slims-service Service to pull data from SLIMS.

The version of the OpenAPI document: 0.2.2
The version of the OpenAPI document: 0.2.3
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

## aind-slims-service Service to pull data from SLIMS.

The version of the OpenAPI document: 0.2.2
The version of the OpenAPI document: 0.2.3
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

## aind-slims-service Service to pull data from SLIMS.

The version of the OpenAPI document: 0.2.2
The version of the OpenAPI document: 0.2.3
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion aind-slims-service-async-client/docs/HealthCheck.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Response model to validate and return when performing a health check.
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**status** | **str** | | [optional] [default to 'OK']
**service_version** | **str** | | [optional] [default to '0.2.2']
**service_version** | **str** | | [optional] [default to '0.2.3']

## Example

Expand Down
2 changes: 1 addition & 1 deletion aind-slims-service-async-client/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "aind_slims_service_async_client"
version = "0.2.2"
version = "0.2.3"
description = "aind-slims-service"
authors = ["OpenAPI Generator Community <team@openapitools.org>"]
license = "NoLicense"
Expand Down
4 changes: 2 additions & 2 deletions aind-slims-service-async-client/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

## aind-slims-service Service to pull data from SLIMS.

The version of the OpenAPI document: 0.2.2
The version of the OpenAPI document: 0.2.3
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand All @@ -21,7 +21,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
NAME = "aind-slims-service-async-client"
VERSION = "0.2.2"
VERSION = "0.2.3"
PYTHON_REQUIRES = ">= 3.9"
REQUIRES = [
"urllib3 >= 2.1.0, < 3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion aind-slims-service-async-client/test/test_default_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

## aind-slims-service Service to pull data from SLIMS.

The version of the OpenAPI document: 0.2.2
The version of the OpenAPI document: 0.2.3
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

## aind-slims-service Service to pull data from SLIMS.

The version of the OpenAPI document: 0.2.2
The version of the OpenAPI document: 0.2.3
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

## aind-slims-service Service to pull data from SLIMS.

The version of the OpenAPI document: 0.2.2
The version of the OpenAPI document: 0.2.3
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
4 changes: 2 additions & 2 deletions aind-slims-service-async-client/test/test_health_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

## aind-slims-service Service to pull data from SLIMS.

The version of the OpenAPI document: 0.2.2
The version of the OpenAPI document: 0.2.3
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down Expand Up @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> HealthCheck:
if include_optional:
return HealthCheck(
status = 'OK',
service_version = '0.2.2'
service_version = '0.2.3'
)
else:
return HealthCheck(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

## aind-slims-service Service to pull data from SLIMS.

The version of the OpenAPI document: 0.2.2
The version of the OpenAPI document: 0.2.3
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

## aind-slims-service Service to pull data from SLIMS.

The version of the OpenAPI document: 0.2.2
The version of the OpenAPI document: 0.2.3
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

## aind-slims-service Service to pull data from SLIMS.

The version of the OpenAPI document: 0.2.2
The version of the OpenAPI document: 0.2.3
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
Loading