Metadata-Version: 2.5
Name: labelsentry
Version: 1.0.0
Summary: The LabelSentry API for Python
Project-URL: Documentation, https://labelsentry.com/docs/api
Project-URL: Source, https://github.com/LabelSentrycom/labelsentry-sdks
License-Expression: MIT
Requires-Python: >=3.9
Requires-Dist: typing-extensions>=4.7; python_version < '3.11'
Description-Content-Type: text/markdown

# labelsentry

The LabelSentry API for Python 3.9 and newer, with no dependencies beyond the standard library.

```python
from labelsentry import LabelSentry, LabelSentryError

ls = LabelSentry()  # reads LABELSENTRY_KEY

artist = ls.artists.create({"spotify_url": "https://open.spotify.com/artist/..."})
ls.artists.verify(artist["id"], {"method": "attest", "confirmed": True})

for release in ls.releases.list(state="down"):
    print(release["name"], release["tracks_offline"])

try:
    ls.changes.resolve("not-a-change")
except LabelSentryError as e:
    print(e.status, e.code, e.request_id)
```

Lists are iterators that fetch the next page when they reach the end of one.
