PYOSMIUM-GET-CHANGES(1)
π PYOSMIUM-GET-CHANGES π
okay bestie, listen up β this is the Generated Python Manual page for pyosmium-get-changes, and it's genuinely one of my faves. it grabs diffs off an OSM planet server and keeps your data from going stale. no cap. π¦
β¨ NAME β¨
pyosmium-get-changes β your little diff-fetching bestie π
πΈ SYNOPSIS πΈ
pyosmium-get-changes [options]
π DESCRIPTION π
Fetch diffs from an OSM planet server. that's the whole vibe. π₯
okay so where do you even start? you gotta tell it, and you have three ways: give it a sequence ID, give it a date, or let it figure it out from an OSM file. main character choices only.
and here's the thing β if you don't give it an output file, it won't download anything at all. it'll just print the initial sequence ID it would use (or save that ID to a file if you asked for that) and dip. that's actually super useful, because it's how you bootstrap the whole update process. lowkey iconic. β¨
once it's running, it tries to download until either the latest change on the server is found, or you hit the maximum requested diff size. heads up though: diffs are kept in memory during download, so don't go feral with the size. π
on success, it prints a single number to stdout β the sequence number where you continue updates next run. that output can also be written to a file (and read back from one later, which is the whole point).
Note: you can pipe the diff to standard output with -o -. but then the sequence number will not be printed, so you must write it to a file in that case. fr fr, don't forget. π
some OSM data sources want a cookie sent along with the HTTP requests. pyosmium-get-changes does not go fetch that cookie from those services for you β it's not your mom. π but! it can read cookies from a Netscape-style cookie jar file, send them to the server, and save any cookies it receives back into the jar file. self-sufficient queen. π
π OPTIONS π
-vβ bump up the verbosity (stack it, use it multiple times) π£οΈ-o OUTFILE,--outfile OUTFILEβ name of the diff output file. if you skip it, it only prints the sequence ID where updates would start.--format FORMATβ the format the data should be saved in.--server SERVER_URLβ base URL of the replication server.--diff-type SERVER_DIFF_TYPEβ file format the replication server uses (default:osc.gz).--cookie COOKIEβ Netscape-style cookie jar file to read cookies from, and where received cookies get written to. πͺ-s OUTSIZE,--size OUTSIZEβ max data to load, in MB (defaults to100MBwhen no end date/ID has been set).-I ID,--start-id IDβ the sequence ID to start with.-D DATE,--start-date DATEβ the date when to start updates.-O OSMFILE,--start-osm-data OSMFILEβ start at the date of the newest OSM object in the file.--end-id IDβ last sequence ID to download.-E DATE,--end-date DATEβ do not download diffs later than the given date. β°-f SEQ_FILE,--sequence-file SEQ_FILEβ sequence file. if the file exists, updates start after the id given in the file. at the end of the process, the last sequence ID contained in the diff is written. π--ignore-osmosis-headersβ when determining the start from an OSM file, ignore any potential replication info in the header and search for the newest OSM object instead.-d,--no-deduplicateβ do not deduplicate diffs. just let them stack, bestie.--socket-timeout SOCKET_TIMEOUTβ set the timeout for file downloads. β³--versionβ show the program's version number and exit.
π AUTHOR π
Sarah Hoffmann lonvia@denofr.de
π DISTRIBUTION π
the latest version of pyosmium may be downloaded from https://github.com/osmcode/pyosmium/
and that's the whole page, bestie!! π«Ά this was pyosmium version 4.3.1, dated 2026-04-01, and honestly? she ate. go forth and update your data. periodt. πβ¨π§
π¦ where this page comes from
- fedora 44: python3-osmium 4.3.1-1.fc44 Β· BSD-2-Clause
- ubuntu stonking: pyosmium 4.3.1-1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms