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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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