vaphes / pocketbase

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

Support backup API #86

Closed slobberchops closed 5 months ago

slobberchops commented 6 months ago

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

vaphes commented 6 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 6 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 6 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.