https://github.com/buda-base/ao_etexts
AO etext scripts
https://github.com/buda-base/ao_etexts
Last synced: 3 months ago
JSON representation
AO etext scripts
- Host: GitHub
- URL: https://github.com/buda-base/ao_etexts
- Owner: buda-base
- License: apache-2.0
- Created: 2025-04-03T08:05:33.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2026-01-16T08:40:28.000Z (5 months ago)
- Last Synced: 2026-01-19T19:43:56.956Z (5 months ago)
- Language: Python
- Size: 396 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ao_etexts
AO etext scripts
## Features
- Transparent support for both local filesystem paths and S3 URLs
- Validate etext file structure
- Synchronize etext files to OCFL archive (admin only)
- Synchronize etext files to staging area (dev)
- Index etext content to ElasticSearch/OpenSearch (admin only)
## Installation
```bash
pip install -r requirements.txt
pip install -e .
```
### Examples
```bash
# Sync from local directory
bdrc-etext-sync sync_s3 --id IE12345 --filesdir /path/to/files/
# Sync from S3
bdrc-etext-sync sync_s3 --id IE12345 --filesdir s3://bucket-name/prefix/
# Index to ElasticSearch from local or S3
bdrc-etext-sync sync_es --id IE12345 --filesdir /path/or/s3/url/ --version v1
```