Skip to content

mancioshell/python-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python / Rust Example

Getting Started

Prerequisites

  • Python 3.11 or higher
  • Rust 1.79 or higher
  • Docker

Installation

Ingestion

cd ingestion
poetry install

Pure Python

cd pure-python-mongo
poetry install

Python Rust

cd python-rust-mongo/metrics-aggregator
maturin develop

cd ../metrics-ingestion
poetry install

Start mongodb

From the root directory, run the following command:

./startup.sh

then go to ingestion directory and run the following command:

./startup.sh

Start Pure Python

From the pure-python-mongo directory, run the following command:

./startup.sh

Start Python Rust

From the python-rust-mongo directory, run the following command:

./startup.sh

Call the API for Pure Python

curl --location 'localhost:9090/aggregations?account=account1&aggregation_window=hour'

Call the API for Python Rust

curl --location 'localhost:8080/aggregations?account=account1&aggregation_window=hour'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published