Skip to main content

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

  1. Clone the repository:

    git clone <repository_url>
    cd <project_folder>
    
  2. Use Poetry to install the dependencies:

    poetry install
    
  3. 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

crunch_model_runner-0.1.1.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

crunch_model_runner-0.1.1-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

Details for the file crunch_model_runner-0.1.1.tar.gz.

File metadata

  • Download URL: crunch_model_runner-0.1.1.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

Hashes for crunch_model_runner-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b92f7b3ffdaaeeb16d7d422914c0da28161066863472f6a7bedae8855fc01005
MD5 bed45f3bd26f77b24af8eccf28642699
BLAKE2b-256 a3edeba3754d53dead87f6d1071706cde02327ef31c2b238ec3349ff8fd6ba0c

See more details on using hashes here.

File details

Details for the file crunch_model_runner-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for crunch_model_runner-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b2c55bfef8849baf6482323801f0111f24133fcfeaa74212d92f7a4074628c8a
MD5 abaea6e7ee715887a9673631ab62af3a
BLAKE2b-256 d6d7da13e45ba0ecc487fb7fa58ecb5ea755e03f97916117c3a0181cab48db7f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page