macxred / cashctrl_api

Python client for the CashCtrl REST API
MIT License
0 stars 0 forks source link

File Upload / Removal #3

Closed lasuk closed 4 months ago

lasuk commented 4 months ago

Extend our CashCtrl API package and provide methods to upload a file to CashCtrl, remove a file from CashCtrl and list all files.

CashCtrlApi.file_upload(self, local_path, remote_path)
CashCtrlApi.file_remove(self, path)
CashCtrlApi.file_list(self) -> pd.DataFrame

File info shall return a list of all files as a pandas dataframe with additional columns such as size, modified date, etc.. where available

lasuk commented 4 months ago

Please also extend the test suite such that each of the above three methods is automatically tested by GitHub.

chappi commented 4 months ago

The functionality is basically finished and runs well (see code in README). Some questions have emerged about the interface incl. return values and I'll wait with tests and docstrings until this has been looked at.

lasuk commented 4 months ago

Thanks. Please implement a test with the current version.

(An example that is validated by gitlab at every commit is always helpful, and is not hard to adapt as the interface changes.)

chappi commented 4 months ago

Implemented in #6