Skip to main content

Tool for tracking down who added specific tag. It exists as a Python package, so you need to write a Python script to use it (see an example below).

Will work fine for tags used on a small scale.

As it will use editing API to retrieve old versions of each object, it is acceptable to use it sparingly. For serious uses lease use less hacky tool (import planet history)

But for investigating who added tag appearing 1017 times every few days? Should be fine.

It can be useful to

  • notify editors about tagging discussion
  • easily track down who was adding specific tag which is unclear/dubious/problematic

Usage example

import who_added_this_tag
import rich

config = {
    'key': 'related:wikipedia',
    'value': None, # may be None - in such case it looks for all values of key
    'area_identifier_key': None, # may be None, in such case search is worldwide, 'ISO3166-1' is a good identifier
    'area_identifier_value': 'PL', # ignored if area_identifier_key is None
    'list_all_edits': True,
    'list_all_edits_made_by_this_users': [], # ignored with list_all_edits set to True
    'download_engine_used': "overpass", # postpass can be also used
    'queried_object_limit': 5_000,
}
data = who_added_this_tag.statistics.process_case(config)
for entry in data:
    rich.print(entry)

note: experimental who_added_this_tag.statistics.process_case(config, download_engine_used="postpass") is also available

Run tests

python3 -m unittest

pypi

See https://pypi.org/project/who-added-this-tag/

Metadata

Release files for who-added-this-tag 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for who-added-this-tag 0.0.3
File Size Uploaded Provenance
who_added_this_tag-0.0.3.tar.gz 17.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for who-added-this-tag 0.0.3
File Interpreter ABI Platform
who_added_this_tag-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 35.2 kB

Release files / who_added_this_tag-0.0.3.tar.gz

Download URL who_added_this_tag-0.0.3.tar.gz
Size 17.3 kB
Tags Source
SHA-256 checksum
How to use checksums
7dbe76cbf89ec7a2cb5acbbdbde96d444447e466a19fe3649d5a2c34b50eb290
BLAKE2b-256 checksum
How to use checksums
85fcdf0e345c8e6006ecead39f77463c2f763f58dbd96f6061e9a8392c2ca73f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release files / who_added_this_tag-0.0.3-py3-none-any.whl

Download URL who_added_this_tag-0.0.3-py3-none-any.whl
Size 17.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
133402892c7b89cd6d6d68ab5f8bd4f1d15e3b83569acb6defe6b8d89063077b
BLAKE2b-256 checksum
How to use checksums
1b88d39e96136fb2e038e8f92c52bcc396c6bf19adbf20f5f9af8acd6fbce445
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Security for who-added-this-tag 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page