vaphes / pocketbase

PocketBase client SDK for python
https://pypi.org/project/pocketbase/
MIT License
331 stars 38 forks source link

Support backup API #86

Closed slobberchops closed 4 months ago

slobberchops commented 4 months ago

Any interest in supporting the backup API? It might be something I could contribute.

vaphes commented 4 months ago

Any interest in supporting the backup API? It might be something I could contribute.

Hi @slobberchops , yes! It would be nice if you could implement it as I couldn't keep up with the js sdk lately. Thanks in advance.

slobberchops commented 4 months ago

Ok. I regret that my project switched to using Go for our CLI, however I will attempt to contribute something all the same.

The download endpoint will require additional work to support because of what goes on here: https://github.com/vaphes/pocketbase/blob/master/pocketbase/client.py#L111

In the case of download it will be necessary to allow the client to return the raw response from a service. I will restructure things one way, and you can tell me if is ok or you would prefer a different approach.

slobberchops commented 4 months ago

I have made a pull request here: https://github.com/vaphes/pocketbase/pull/87

I will obviously need assistance running the tests workflow... I will probably attempt to run them in my fork repository.