This repository is a synthetic demonstration, created from fictional order data. It is not a client project and contains no customer code, credentials, or private data.
Proof first: Inspect example outputs · Run the demo · View all demos · Request a tailored Python workflow on Fiverr →
The demo shows a small but production-minded local workflow:
- Read order records from JSON or CSV.
- Retry transient file-read failures and write an audit log.
- Normalize text, dates, quantities, money, statuses, and country codes.
- Reject invalid rows with an explicit reason and de-duplicate order IDs.
- Write cleaned CSV data plus JSON summaries and rejection details.
Everything runs locally with the Python standard library. The workflow makes no network requests.
Running the demo creates:
cleaned_orders.csv— validated, normalized order rowssummary.json— order and revenue totals by status and countryrejected_orders.json— invalid rows and their validation errorsworkflow.log— processing, retry, duplicate, and output events
Committed sample artifacts:
| Input | Raw | Cleaned | Rejected | Recognized revenue |
|---|---|---|---|---|
| JSON | 4 | 3 | 1 | USD 155.15 |
| CSV | 4 | 3 | 1 | USD 69.49 |
- Python 3.10 or newer
- No third-party packages
python3 -m src.workflow \
--input data/orders.json \
--config config.example.json \
--output-dir output/json-demopython3 -m src.workflow \
--input data/orders.csv \
--config config.example.json \
--output-dir output/csv-demopython3 -m unittest discover -s tests -vThe tests cover JSON and CSV loading, normalization, aggregation, duplicate handling, rejected-row reporting, output generation, and retry behavior.
Copy or edit config.example.json to control:
- accepted order statuses
- which statuses count toward recognized revenue
- output currency
- duplicate-record policy (
keep_firstorkeep_last) - read retry attempts and delay
The currency setting labels the output; it does not perform currency conversion. All inputs for one run must already use the same currency.
Each input record must provide:
| Field | Expected value |
|---|---|
order_id |
non-empty unique identifier |
customer |
non-empty text |
product |
non-empty text |
quantity |
positive whole number |
unit_price |
non-negative decimal amount |
status |
a configured status |
order_date |
ISO date (YYYY-MM-DD) |
country |
two-letter country code |
I build scoped local Python automation for authorized CSV and JSON file processing, validation, and reporting. See the related Fiverr service:
View my Python automation service on Fiverr
Please share representative sample input, the required output, approximate volume, environment, deadline, and acceptance criteria before ordering.
MIT — see LICENSE.
