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.

Note that whoever runs automated edits is responsible for all problems that appear, including ones caused bugs in external libraries like this one. Please test your script before running them, monitor bot as it makes edit.

Help

Reports about how documentation can be improved, bug reports, pull requests are welcomed!

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 location

This project resides at https://github.com/matkoniecz/osm_bot_abstraction_layer

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

Uploaded Source

Built Distribution

osm_bot_abstraction_layer-0.0.3-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: osm_bot_abstraction_layer-0.0.3.tar.gz
  • Upload date:
  • Size: 8.2 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.3.tar.gz
Algorithm Hash digest
SHA256 38160728f730e4c0cb4072f3f09481a4706504f3d544f2b6a53648a882f7b776
MD5 f20db679163870836ebdd403d5a68dc0
BLAKE2b-256 08e9f91d08c06a78b7c846313d49cf7815ee013798cbf68a7e21944080d40fb1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: osm_bot_abstraction_layer-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 10.2 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c2ca30760e46d78420a879451a6df7e7769b8668908f751e8b21ca42c241badd
MD5 bedc8b067c9197380ab290650c855da0
BLAKE2b-256 70e132c511fadd0b27ae0b1a7c5e74a1c2c9781a96ba788cb8488d89f1df3334

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