How sebasops/bank-marketing works
Purpose and Entry Point
This is a small data-ingestion repository for the UCI Bank Marketing dataset (UCI repository id 222). Its primary executable entry point is src/ingestion/ingest.py, run as:
python src/ingestion/ingest.py
The repository currently centers on acquiring and persisting the raw source dataset; no training, API, or web application layer is represented.
Ingestion Stage
src/ingestion/ingest.py is the core pipeline stage. It retrieves the Bank Marketing dataset directly from UCI through the ucimlrepo Python library, making acquisition reproducible without pre-downloaded input files.
Source boundary:
• External UCI Machine Learning Repository
• Python client dependency declared in requirements.txt
Raw Data Persistence Boundary
The ingestion flow writes the retrieved dataset to data/raw/bank_marketing.csv as documented in README.md. This creates a clear raw-data boundary: downstream processing should consume the persisted CSV rather than independently contacting UCI.
The target data/ directory is not present in the supplied tree, so it is expected to be created at runtime or is omitted from version control.
Local Database Artifact
bank.db is a repository-root database artifact. Its presence suggests a possible local persistence or analysis boundary, but no code path in the supplied tree establishes how it is created or consumed. The demonstrated ingestion path writes CSV output, not necessarily this database.
Relevant path:
• bank.db
Runtime and Dependencies
The runtime is Python, with dependencies installed from requirements.txt. The material external service is UCI, accessed programmatically via ucimlrepo; network access is therefore required when ingestion runs.
Relevant paths:
• requirements.txt
• src/ingestion/ingest.py
Primary Control and Data Flow
1. A user invokes src/ingestion/ingest.py.
2. The script requests dataset id 222 from UCI using ucimlrepo.
3. Retrieved Bank Marketing records are serialized as CSV.
4. The raw dataset is persisted at data/raw/bank_marketing.csv.
5. Future downstream stages can treat that file as the stable local input contract.
Architectural Boundaries
The repository separates external acquisition from later analytics or modeling by placing ingestion under src/ingestion/ and emitting a raw file under data/raw/. There are no represented transformation, validation, feature-engineering, model-training, serving, orchestration, or cloud-infrastructure components.
Relevant paths:
• src/ingestion/ingest.py
• README.md
Main entry points: ingest.py Ingestion script · requirements.txt Python dependencies · README.md Repository documentation
Components 7
Ingestion
Acquires and persists the raw dataset.
- Ingestion script · Primary executable pipeline stage.
src/ingestion/ingest.py - Raw Bank Marketing CSV · Stable local input for future downstream stages.
Other components
- User
- Python dependencies · Declares ucimlrepo for dataset retrieval.
requirements.txt - UCI Repository · Bank Marketing dataset, id 222.
- Local database artifact · Present at the repository root; no demonstrated ingestion connection.
bank.db - Repository documentation · Documents the raw CSV output path.
README.md
Connections 6
- User → Ingestion script: runs · python src/ingestion/ingest.py
- Python dependencies → Ingestion script: provides ucimlrepo
- Ingestion script → UCI Repository: requests dataset 222 · Requires network access.
- UCI Repository → Ingestion script: returns records
- Ingestion script → Raw Bank Marketing CSV: serializes CSV
- Repository documentation → Raw Bank Marketing CSV: documents output