Nc-py-api

Latest version: v0.18.0

Safety actively analyzes 681866 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 8

0.5.1

Fixed

- `move`, `copy`, `trashbin_restore` correctly set `utf-8` headers. 157 Thanks to tschechniker
- `upload_stream` correctly set `utf-8` headers. 159
- `headers` can now be `httpx.Headers` and not only `dict`. 158

0.5.0

Added

- Support for the new `/init` AppAPI endpoint and the ability to automatically load models from `huggingface`. 151

Changed

- All examples were adjusted to changes in AppAPI.
- The examples now use FastAPIs `lifespan` instead of the deprecated `on_event`.

0.4.0

As the project moves closer to `beta`, final unification changes are being made.
This release contains some breaking changes in `users`, `notifications` API.

Added

- Support for users avatars(`get_avatar`). 149
- `__repr__` method added for most objects(previously it was only present for `FsNode`). 147

Changed

- `users.get_details` renamed to `get_user` and returns a class instead of a dictionary. 145
- Optional argument `displayname` in `users.create` renamed to `display_name`.
- The `apps.ExAppInfo` class has been rewritten in the same format as all the others. 146
- `notifications.Notification` class has been rewritten in the same format as all the others.

Fixed

- `users.get_details` with empty parameter in some cases was raised exception.
- ClientMode: in case when LDAP was used as user backend, user login differs from `user id`, and most API failed with 404. 148

0.3.1

Added

- CalendarAPI with the help of [caldav](https://pypi.org/project/caldav/) package. #136
- [NotesAPI](https://github.com/nextcloud/notes) #137
- TalkAPI: `list_participants` method to list conversation participants. 142

Fixed

- TalkAPI: In One-to-One conversations the `status_message` and `status_icon` fields were always empty.
- Missing CSS styles in the documentation. 143

0.3.0

Added

- TalkAPI:
* `send_file` to easy send `FsNode` to Talk chat.
* `receive_messages` can return the `TalkFileMessage` subclass of usual `TalkMessage` with additional functionality.
- NextcloudApp: The `ex_app.verify_version` function to simply check whether the application has been updated.

Changed

- NextcloudApp: Updated `info.xml` in examples to reflect upcoming changes in the [AppStore](https://github.com/nextcloud/appstore/pull/1145)

0.2.2

Added

- FilesAPI: [Chunked v2 upload](https://docs.nextcloud.com/server/latest/developer_manual/client_apis/WebDAV/chunking.html#chunked-upload-v2) support, enabled by default.
- New option to disable `chunked v2 upload` if there is a need for that: `CHUNKED_UPLOAD_V2`
- TalkAPI: Poll API support(create_poll, get_poll, vote_poll, close_poll).
- TalkAPI: Conversation avatar API(get_conversation_avatar, set_conversation_avatar, delete_conversation_avatar)

Changed

- Default `chunk_size` argument is now 5Mb instead of 4Mb.

Page 4 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.