Shared type definitions and API contracts for FiftyTen microservices
Project description
fiftyten-service-contracts
Common API contracts for FiftyTen microservices
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 1.0.0
- Package version: 0.0.4
- Generator version: 7.13.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
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 run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)
Then import the package:
import fiftyten_service_contracts
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install to install the package for all users)
Then import the package:
import fiftyten_service_contracts
Tests
Execute pytest to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import fiftyten_service_contracts
from fiftyten_service_contracts.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost:3030
# See configuration.py for a list of all supported configuration parameters.
configuration = fiftyten_service_contracts.Configuration(
host = "http://localhost:3030"
)
# Enter a context with an instance of the API client
with fiftyten_service_contracts.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = fiftyten_service_contracts.DefaultApi(api_client)
try:
# Health check
api_response = api_instance.api_health_get()
print("The response of DefaultApi->api_health_get:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->api_health_get: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to http://localhost:3030
| Class | Method | HTTP request | Description |
|---|---|---|---|
| DefaultApi | api_health_get | GET /api/health | Health check |
| DefaultApi | api_tasks_post | POST /api/tasks | Submit tasks (single or batch) |
| DefaultApi | api_workers_heartbeat_post | POST /api/workers/heartbeat | Send worker heartbeat |
| DefaultApi | api_workers_register_post | POST /api/workers/register | Register a worker |
| DefaultApi | api_workers_task_result_post | POST /api/workers/task-result | Submit task result |
Documentation For Models
- ApiHealthGet200Response
- ApiTasksPostRequest
- ApiTasksPostRequestOneOf
- BaseMarketContext
- Candle
- CandleStore
- CryptoMarketContext
- CryptoMarketType
- DataUpdateEvent
- DataUpdateEventContext
- EventMetadata
- ExchangeType
- Interval
- LoadContext
- Symbol
- Task
- TaskResult
- WorkerRegistration
- WorkerStatus
Documentation For Authorization
Endpoints do not require authorization.
Author
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 fiftyten_service_contracts-0.0.4.tar.gz.
File metadata
- Download URL: fiftyten_service_contracts-0.0.4.tar.gz
- Upload date:
- Size: 31.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
526e1ffdafcc88d226b15dd7fffc677a27666dd844462781a6d3d420c0d63f18
|
|
| MD5 |
49425590ae388aabe345cf2dbbe195c9
|
|
| BLAKE2b-256 |
881fcd641915b3bde551a31d82bb8171550d2907e611b1131036a9bb4357df9c
|
File details
Details for the file fiftyten_service_contracts-0.0.4-py3-none-any.whl.
File metadata
- Download URL: fiftyten_service_contracts-0.0.4-py3-none-any.whl
- Upload date:
- Size: 65.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a8cccf6b028fdbdc18a6a6e6e0a7f7e4311bcc8dc507f6061543fe304b79ac5
|
|
| MD5 |
855726290d156972796ae1b0027d3b38
|
|
| BLAKE2b-256 |
df8edd787046c3ff958ca7ae20aceded6b3f6a0419ed3cb9ef95d7a52333aa9e
|