SShortSingh.
Back to feed

Client-editable CSV rules can validate deliveries without changes to the Python importer

0
·3 views

A Python data integrator described receiving several delimited files daily, with fields that depend on one another and client rules that change more often than the importer. The author built a handover for a fictional scanning studio, where three rules check delivery ID prefixes, arrival windows, and file counts before a batch is accepted. The rules live in a spreadsheet that is exported to CSV and evaluated by the same Python script, so changing the arrival allowance from 0 to 2 days affected only one batch. The example also surfaced spreadsheet pitfalls, such as blank optional notes and single cells containing commas, while correctly handling legitimate zero counts. The checker supports three documented operations, and the complete kit is released under CC0 for others to adapt.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Monitoring Guidance for CVE-2026-140330 in OpenShift oauth-proxy Auth Bypass

The article gives monitoring guidance for CVE-2026-140330, an authentication bypass affecting OpenShift oauth-proxy. The flaw arises when the proxy checks an exemption against a decoded path but forwards the encoded path, so a backend that normalizes encoded dot segments can reach protected endpoints. Red Hat rates it 7.4 High and identifies RHEL 9 oauth-proxy images in OpenShift 4 and 5 as affected, while the older non-RHEL 9 image is not. The guidance recommends tracking exemption rule changes, recording image digests, and comparing proxy decisions with backend handlers rather than relying on failed-login counts. No fix or errata is published yet, and the reviewed evidence reports no in-the-wild attacks.

0
ProgrammingDEV Community ·

Kijiji Scraper Lets Python Users Pull Canadian Classified Ad Data Without a Browser

A developer has built a paid Apify actor that extracts listings from Kijiji, Canada's largest classifieds site, which has no public API. The tool reads the JSON data embedded in search result pages, returning up to 40 ads per request with price, condition, location, posting time, and car-specific attributes such as make, model, year and mileage. Users can call it from Python and optionally fetch full ad details, including descriptions and view counts. The article also includes a sample free-stuff alert script that checks for new no-cost listings in a given city. The actor costs $0.50 per 1,000 ads and does not collect personal data about sellers.

0
ProgrammingDEV Community ·

Timeout in a build optimizer caused inconsistent results between CI and local runs

A developer's Path of Exile 2 build planner, which publishes a best build per class through a CI workflow, produced conflicting results: CI reported no unique item helped the Witch, while local runs found two items adding 43% damage. The developer halted publication, since a wrong result was considered worse than a delayed one. The search stage has a ten-minute safety clock, and when it expires the search stops and returns whatever it has, so the outcome depended on machine speed. Local measurements showed the first search round finishing just under the limit, while the slower CI runner exceeded it and was cut off. Logging per-round durations confirmed the first round was near the threshold, and the next CI run recorded a first round of 1120 seconds for the Witch.

0
ProgrammingDEV Community ·

Teboho Edkins' Short Documentary An Open Field Explores Grief Over the 2019 Boeing Crash

Award-winning documentary An Open Field, directed by Teboho Edkins, runs 38 minutes and follows the director and his father to Ethiopia. Their trip confronts the grief caused by the 2019 Boeing 737 MAX crash, which killed 157 people, including Edkins' younger brother. Through personal memories and encounters with local residents who assisted at the site and mourned with the victims' families, the film examines loss, collective mourning, compassion, and the healing power of human connection. It premiered at IDFA 2025, where it won Best Short Documentary, and is scheduled to arrive on Netflix on December 1, 2026.