# OA Contracts to Abacus Script

This script is used to ingest OA Contracts data to Abacus system. 
It will request account/contract JSON from ROYALTY_ACCOUNTING_REPORTING.PROD.VW_OA_CONTRACT_ABACUS_JSON 
and will upload them to the S3 bucket for further processing.  

## Getting started
1. Set up your virtualenv:
```sh
virtualenv -p python3 env
source env/bin/activate
pip3 install -r requirements.txt
```
3. Fill out the .env file with your profile info

### Running the script for specific accounts
`python main.py --account_ids 123234,13233`

### Running the script for all accounts
`python main.py`

### Running the script without trigger the import (without running the import lambda)
`python main.py --skip_abacus_import`

### Running the script with only running import for some batches that were previously exported from OA
`python main.py --batch_keys oa_upload_20250416_114009_125218_26_335427/batch_17_245232_255580,oa_upload_20250416_114009_125218_26_335427/batch_18_255581_272288`

### Running the script for specific accounts with overriding import_user, jira_ticket, env. 
`python main.py --target_env qa --import_user slaposhko --jira_ticket ACC-8888 --account_ids 123234,13233`
