Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Pelcro Import Validation Script

Validates CSV files before importing into Pelcro.

POC — Checks Implemented

# File Check
1 customers Invalid email format
2 customers Invalid phone (bad chars / >20 chars)
3 customers Duplicate old_provider_id
4 customers Duplicate email (case-insensitive)
5 addresses customer_old_provider_id not found in customers (orphan addresses)

Usage

pip install pandas

python validate.py --input /path/to/csv/folder
# results written to /path/to/csv/folder/validation_results/

python validate.py --input /path/to/csv/folder --output /path/to/results

Output

Each failing check produces a CSV of flagged rows plus a validation_summary.csv:

validation_results/
├── customers_invalid_email_format.csv
├── customers_phone_invalid_chars.csv
├── customers_phone_too_long.csv
├── customers_duplicate_old_provider_id.csv
├── customers_duplicate_email.csv
├── addresses_orphan_customer_id.csv
└── validation_summary.csv

Requirements

  • Python 3.10+
  • pandas

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages