SShortSingh.
Back to feed

Diffing daily JSON snapshots in Python: added, removed and changed records, and three traps

0
·2 views

The author maintains a daily archive of public datasets, including a German federal tender RSS feed, DeFiLlama endpoints, BaFin feeds and the MCP Registry, stored as gzipped JSON files. They built a Python script, snapshot_diff.py, that compares two snapshots by a chosen key and reports added, removed, changed and top-ranked numeric movements. Its core uses set operations on keys, excludes the numeric field from change detection, and ranks value shifts with a minimum-base filter. A sample run on a windowed RSS feed showed 77 'removed' tenders, which the author attributes to a fixed 100-item window rather than withdrawals. The post warns that windowed sources should be read as 'no longer visible' and that busy periods can cause permanent gaps unless collection is more frequent or paginated.

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 ·

Browser-Based Tool Lets Users Bulk Sign PDFs Without Uploading Files

A developer has built a free tool that applies one visible signature to many PDF files at once, all processed inside the browser. Users place their signature a single time, and the tool stamps it across the batch, returning the signed copies together as a ZIP archive. Because the files are opened and signed locally, nothing is sent to an external server, and no account or watermark is required. The tool produces visible electronic signatures rather than certificate-based digital signatures, a distinction the developer states plainly on the site. The post also describes technical challenges the builder encountered, including handling rotated and cropped pages and writing ZIP files without a library.

0
ProgrammingDEV Community ·

SSL certificate lifetime drops to 100 days in March 2027 (200 days since March 2026): how to check yours and automate renewal

Public TLS certificates are already limited to 200 days (since March 15, 2026). On March 15, 2027 the limit drops to 100 days. If someone on your team still renews a certificate by hand once a year, that routine stops working. The CA/Browser Forum adopted ballot SC-081v3 in 2025. It amends the Baseline Requirements (section 6.3.2) and shortens the maximum validity of publicly trusted TLS certificates in steps, with domain validation reuse shrinking at the same time: Date Max certificate validity Reuse of domain validation Until March 14, 2026 398 days 398 days From March 15, 2026 (now) 200 day

0
ProgrammingDEV Community ·

Append-only invoice ledger with hash chaining and VAT audits for Shopify merchants

A developer describes an invoice ledger for Shopify sellers that chains each invoice to the previous one using SHA256 hashes, so later edits become detectable. The design runs VAT audits that compare prices, discounts, tax, and totals with Decimal precision before invoices are issued, and stores VAT IDs in structured fields. Tax rules cover 31 jurisdictions and invoices render in seven languages, though the rates are flagged for legal review rather than treated as authoritative. The author stresses that the chain is tamper-evident rather than truly immutable, and that the tool does not replace an accountant or lawyer. Merchants can also import existing records and export their full history.

0
ProgrammingDEV Community ·

Claude and Apify tools let AI agents check Romanian supplier data from public registers

A developer built three Apify actors that connect AI agents such as Claude to Romanian public data sources. The tools draw on ANAF's free APIs for taxpayer status and balance sheets, and on court case records from the Ministry of Justice portal. The setup requires a single command to add the Apify MCP server, and the same connection works with several AI clients. In a test run on three suppliers, the agent returned verdicts based only on what the registers showed, noting limits such as excluded name variants. The author says the output is a reading of public records rather than legal or tax advice.