BLBR Research Scripts for financial data analysis
Project description
BLBR Scripts Docker Setup
This directory contains the Docker configuration for running the BLBR scripts with scheduled execution.
Overview
The setup includes:
- Dockerfile: Configures a Python environment with cron for scheduled task execution
- docker-compose.yml: Orchestrates the scripts container and MongoDB
Scheduled Tasks
By default, the following sequence runs daily at 7:00 PM IST (19:30 server time):
python run_step.py download
python run_step.py trend
python run_step.py mongodb
Getting Started
Prerequisites
- Docker and Docker Compose installed on your system
Running
# Start the containers (pulls image from Docker Hub)
docker-compose up -d
# View logs
docker-compose logs -f
# Stop the containers
docker-compose down
Testing the Scripts Manually
To run scripts manually without waiting for the scheduled time:
# Execute into the container
docker exec -it blbr-scripts bash
# Run scripts manually
python run_step.py download
python run_step.py trend
python run_step.py mongodb
Configuration
Modifying the Schedule
The schedule is configured in the Docker image to run at 7:30 PM IST every day.
If you need to modify the schedule, you'll need to:
- Fork the repository containing the Dockerfile
- Update the cron expression
- Build and publish your own image
- Update the docker-compose.yml to use your custom image
Volume Mounts
The Docker setup uses the following volume mounts:
./logs:/app/logs: Persists log files from the script execution./data:/app/data: Persists data files/tmp/blbr:/tmp/blbr: Maps the temporary directory used during processingmongodb_data:/data/db: Persists the MongoDB data
Database Access
MongoDB is exposed on port 27017 and can be accessed:
- From host:
mongodb://localhost:27017 - From other containers:
mongodb://mongodb:27017
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 blbr_scripts-0.1.0.tar.gz.
File metadata
- Download URL: blbr_scripts-0.1.0.tar.gz
- Upload date:
- Size: 191.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f64ac6e4be41c849d9d76b2c2677b053bbbea18ba9cf498ec368764fd297b53
|
|
| MD5 |
ac81f0bd9dd29420928c81d923aa2acb
|
|
| BLAKE2b-256 |
84f12882ab515ab7f9b77ab82789798498a4f6d6ed6402c63ba56131e8b8454c
|
File details
Details for the file blbr_scripts-0.1.0-py3-none-any.whl.
File metadata
- Download URL: blbr_scripts-0.1.0-py3-none-any.whl
- Upload date:
- Size: 35.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4226d5d941a1515125f8295c670f4268f4c809ed6b0a910f70f61afb5bf90e9e
|
|
| MD5 |
e584a6aecd1d0278abaa26f0d4142505
|
|
| BLAKE2b-256 |
ee2aa56b5456f2add869ea5ef29f0a8d52c2a2ede7914b9c8bfcb3c978ff23a7
|