No project description provided
Project description
Model Runner
Getting Started
To get started with this project, follow the steps below:
Prerequisites
Make sure you have the following installed:
- Python 3.11.10 or later
- Poetry package manager
Installation
-
Clone the repository:
git clone <repository_url> cd <project_folder>
-
Use Poetry to install the dependencies:
poetry install -
Activate the Poetry virtual environment:
poetry shell
Generating Protocol Buffers
This project uses gRPC for communication. You can generate the necessary gRPC code if you change the [model_runner.proto](model_runner/protos/model_runner.proto) file by using the following command:
poetry run _generate-proto
Ensure all .proto files are present in the appropriate directory before running the above command.
Running the Project
Once dependencies are installed, you can run the main application using:
poetry run python __main__.py --code-directory tests/models_examples/bill
Replace --code-directory with the path to the directory containing the code that should be made available remotely.
Running Tests
To run the tests for this project, execute: Make sure the gRPC server is correctly set up and running before running the tests. (Next version of tests will introduce this automatically)
poetry run pytest
Publishing
Currently, code delivery is done through a build and push to S3, where the orchestrator retrieves it to build a Docker image (to improve in the futur)
poetry run _build-publish
Additional Notes
- If you need to add new dependencies, use:
poetry add <package_name>
Project details
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 crunch_model_runner-0.1.0.tar.gz.
File metadata
- Download URL: crunch_model_runner-0.1.0.tar.gz
- Upload date:
- Size: 11.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07bbeb534403601c8faf146a960bf3ff5c2a43554d97d3e75974bfb5f1c45b2d
|
|
| MD5 |
71db0786899de1c9e0ff0e18e14bf1dc
|
|
| BLAKE2b-256 |
98a169b3769fbb5c3dd5b3a29d34399788051efeca7dea61de7ca84905dc1abe
|
File details
Details for the file crunch_model_runner-0.1.0-py3-none-any.whl.
File metadata
- Download URL: crunch_model_runner-0.1.0-py3-none-any.whl
- Upload date:
- Size: 19.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20112b8ccce75f8e538cb1a63e387e011f7ac1fb1e7225722417143cf2482614
|
|
| MD5 |
0b5ab2f22d69b0455a1c406c9957c054
|
|
| BLAKE2b-256 |
e80c0432cfe9493195515b4b5d08cc9ba536e76a096f0d9bbe77c2ac3273aa8b
|