Repository navigation
Releases
Releases · DavidMStraub/gramps-web-api-client
v0.2
Added
- Notes and tags:
get_note,iter_notes,create_note,update_note,delete_noteand the same methods for tags. delete_*methods for all object types.get_*_by_gramps_idmethods for all object types except tags.search(query)for full-text search.timeoutandsessionarguments toAPI.APIcan be used as a context manager, and has aclose()method.GrampsWebAPIErrorwithstatus_codeand the decoded JSON error body indata.- The client sends a
User-Agentheader. - Type hints (
py.typed).
Changed
- Python 3.10 or newer is required.
- All errors raise
GrampsWebAPIError, a subclass ofrequests.HTTPError. Previously,get_*methods raised a plainExceptionwhen the server returned a JSON error body. - Expired access tokens are renewed automatically.
- Query parameters of
iter_*methods are now URL-encoded. Lists are sent comma-separated and dictionaries as JSON.