SDK library for building services for the IVCAP platform
Project description
ivcap-service: A python library for building services for the IVCAP platform
A python library containing various helper and environment functions to simplify developing services to be deployed on IVCAP.
Note: A template git repository using this library can be found on github ivcap-works/ivcap-python-ai-tool-template. You may clone that and start from there.
Describe the service
logging_init()
logger = getLogger("app")
service = Service(
name="Some service",
contact={
"name": "Mary Doe",
"email": "mary.doe@acme.au",
},
license_info={
"name": "MIT",
"url": "https://opensource.org/license/MIT",
},
)
class Request(BaseModel):
jschema: str = Field("urn:sd:schema:some_tool.request.1", alias="$schema")
...
class Result(BaseModel):
jschema: str = Field("urn:sd:schema:some_tool.1", alias="$schema")
...
def some_service(req: Request) -> Result:
"""
Here should go a quite extensive description of what the service can be
used for so that an agent can work out if this service is useful in
a specific context.
DO NOT ADD PARAMTER AND RETURN DECRIPTIONS -
DESCRIBE THEM IN THE `Request` MODEL
"""
...
return Result(...)
Start the Service
if __name__ == "__main__":
from ivcap_service import start_batch_service
some_service(service, consume_compute)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ivcap_service-0.5.9.tar.gz.
File metadata
- Download URL: ivcap_service-0.5.9.tar.gz
- Upload date:
- Size: 16.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.10.10 Darwin/24.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a01505bd84105eb9957476966213d315462d70e4fc0bdb048d1841e43742d31b
|
|
| MD5 |
7a38342823c228992f87dafc7b2e7bda
|
|
| BLAKE2b-256 |
a2079c2045b8be8b545fa158dd4e79ea66a952d4b03806fce964086eb849e862
|
File details
Details for the file ivcap_service-0.5.9-py3-none-any.whl.
File metadata
- Download URL: ivcap_service-0.5.9-py3-none-any.whl
- Upload date:
- Size: 23.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.10.10 Darwin/24.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4615d53820c2a23494afcc66de0ec62508db3640a3d9072f9d1fef1e66bbaf4f
|
|
| MD5 |
d8314f94f354b670abf672003a635f7c
|
|
| BLAKE2b-256 |
d3f50e15de7248eddb6e2cb3cb12996be9b541e9f1c9e2181af18caef6a3647f
|