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.2.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

  • Download URL: osm_bot_abstraction_layer-0.0.2.tar.gz
  • Upload date:
  • Size: 7.9 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.2.tar.gz
Algorithm Hash digest
SHA256 a0f5f2a6f7fd3ee734e2a429f4df08277f0fb641c2175468c1c22612a0e4c567
MD5 ad0a689b3b7abf6a476d52bc217471ba
BLAKE2b-256 dc78692115d146ff3b6a29b17b6a541e1f34e22e0b05908761dca0f269cc5361

See more details on using hashes here.

File details

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

File metadata

  • Download URL: osm_bot_abstraction_layer-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.9 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3b9b62a94da430e7b4e0a6c62db22566cbfa3d6a7b995de5e278c104d59db70f
MD5 332e2f0e2cc3bc3107d4ba04abc0572e
BLAKE2b-256 adcb18a9b9ac1aae9908e715a2b5ae2fdc719dcf393c2a6fb6dd4633f9ac1694

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