Skip to main content

A tool for easier automation of OSM edits without causing problems.

Project description

OSM bot abstraction layer is building upon osmapi library. This tool intends to make easier to automate OSM edits without causing problems.

This projects contains code expected to be reusable between OSM bots.

Reminder about OSM rules

Note that automated must not be done without consultation or agreement of a community.

See the Import/Guidelines and Automated Edits/Code of Conduct for more information.

Note that automated edits violating rules mentioned above are routinely undone. Undiscussed automatic edits may be reverted by anybody, without any consultation.

OSM bot abstraction layer

Parts of the project built upon osmapi and provide an additional abstraction layer. This part was initial and was source of the project name.

It also provides some python code generally useful for bots editing OSM database.

For example this project includes function for splitting list of objects into changesets that attempt to fit withing limited bounding boxes to avoid continent-spanning edits (attempt as lower bound for bbox size is size of elements).

Documentation is currently mostly missing - please, open an issue if it would be useful for you (pull requests are also welcomed).

Note that code is currently not directly usable by people other than me. For example bot_username() function returns hardcoded value. If someone would be interested in using this code - please open an issue. It would make far more likely that I will refactor this code to make it usable for others out of the box.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

osm_bot_abstraction_layer-0.0.1.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file osm_bot_abstraction_layer-0.0.1.tar.gz.

File metadata

  • Download URL: osm_bot_abstraction_layer-0.0.1.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.9.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.5.2

File hashes

Hashes for osm_bot_abstraction_layer-0.0.1.tar.gz
Algorithm Hash digest
SHA256 70f9aa2d6c429125ba61b77007bb14254485b6d402dcef875b1348ac22c7ac70
MD5 f8e27ef5d0b315698070e981fe8c639f
BLAKE2b-256 010822699dedcf8c9c41d9025001744572e3e72729e0917431d890ab7680a035

See more details on using hashes here.

File details

Details for the file osm_bot_abstraction_layer-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: osm_bot_abstraction_layer-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.9.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.5.2

File hashes

Hashes for osm_bot_abstraction_layer-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6bf504eaa3738656abc166265d33f5e92f6b950a37e8782550372aa4e3403725
MD5 87dac61daac71515d7273477e12d2770
BLAKE2b-256 21b220ebe691c0606964ed2b21b98ad0290d0a6e23b0c091735600255dc6cbe7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page