nc-py-api 0.23.0__tar.gz → 0.23.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/CHANGELOG.md +7 -1
  2. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/PKG-INFO +1 -1
  3. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/_version.py +1 -1
  4. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/ex_app/integration_fastapi.py +8 -1
  5. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/.gitignore +0 -0
  6. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/AUTHORS +0 -0
  7. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/LICENSE.txt +0 -0
  8. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/README.md +0 -0
  9. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/__init__.py +0 -0
  10. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/_deffered_error.py +0 -0
  11. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/_exceptions.py +0 -0
  12. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/_misc.py +0 -0
  13. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/_preferences.py +0 -0
  14. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/_preferences_ex.py +0 -0
  15. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/_session.py +0 -0
  16. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/_talk_api.py +0 -0
  17. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/_theming.py +0 -0
  18. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/activity.py +0 -0
  19. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/apps.py +0 -0
  20. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/calendar_api.py +0 -0
  21. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/ex_app/__init__.py +0 -0
  22. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/ex_app/defs.py +0 -0
  23. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/ex_app/logger.py +0 -0
  24. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/ex_app/misc.py +0 -0
  25. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/ex_app/occ_commands.py +0 -0
  26. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/ex_app/persist_transformers_cache.py +0 -0
  27. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/ex_app/providers/__init__.py +0 -0
  28. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/ex_app/providers/providers.py +0 -0
  29. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/ex_app/providers/task_processing.py +0 -0
  30. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/ex_app/ui/__init__.py +0 -0
  31. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/ex_app/ui/files_actions.py +0 -0
  32. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/ex_app/ui/resources.py +0 -0
  33. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/ex_app/ui/settings.py +0 -0
  34. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/ex_app/ui/top_menu.py +0 -0
  35. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/ex_app/ui/ui.py +0 -0
  36. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/ex_app/uvicorn_fastapi.py +0 -0
  37. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/files/__init__.py +0 -0
  38. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/files/_files.py +0 -0
  39. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/files/files.py +0 -0
  40. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/files/files_async.py +0 -0
  41. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/files/sharing.py +0 -0
  42. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/loginflow_v2.py +0 -0
  43. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/nextcloud.py +0 -0
  44. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/notes.py +0 -0
  45. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/notifications.py +0 -0
  46. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/options.py +0 -0
  47. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/talk.py +0 -0
  48. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/talk_bot.py +0 -0
  49. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/user_status.py +0 -0
  50. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/users.py +0 -0
  51. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/users_groups.py +0 -0
  52. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/weather_status.py +0 -0
  53. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/nc_py_api/webhooks.py +0 -0
  54. {nc_py_api-0.23.0 → nc_py_api-0.23.1}/pyproject.toml +0 -0
@@ -2,6 +2,12 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [0.23.1 - 2026-01-16]
6
+
7
+ ### Fixed
8
+
9
+ - Fix custom progress bar with huggingface_hub >= 1.1.0. #391 Thanks to @danxuliu
10
+
5
11
  ## [0.23.0 - 2025-11-25]
6
12
 
7
13
  ### Added
@@ -10,7 +16,7 @@ All notable changes to this project will be documented in this file.
10
16
 
11
17
  ### Fixed
12
18
 
13
- - handle bot join messages properly to get conversation id and name (#385)
19
+ - Handle bot join messages properly to get conversation id and name (#385)
14
20
 
15
21
  ## [0.22.0 - 2025-10-24]
16
22
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nc-py-api
3
- Version: 0.23.0
3
+ Version: 0.23.1
4
4
  Summary: Nextcloud Python Framework
5
5
  Project-URL: Changelog, https://github.com/cloud-py-api/nc_py_api/blob/main/CHANGELOG.md
6
6
  Project-URL: Documentation, https://cloud-py-api.github.io/nc_py_api/
@@ -1,3 +1,3 @@
1
1
  """Version of nc_py_api."""
2
2
 
3
- __version__ = "0.23.0"
3
+ __version__ = "0.23.1"
@@ -252,8 +252,15 @@ def __fetch_model_as_snapshot(
252
252
  from tqdm import tqdm # noqa isort:skip pylint: disable=C0415 disable=E0401
253
253
 
254
254
  class TqdmProgress(tqdm):
255
+ def __init__(self, *args, **kwargs):
256
+ # huggingface may provide a name, but tqdm rejects a "name"
257
+ # argument, so it needs to be removed
258
+ kwargs.pop("name", None)
259
+ super().__init__(*args, **kwargs)
260
+
255
261
  def display(self, msg=None, pos=None):
256
- nc.set_init_status(min(current_progress + int(progress_for_task * self.n / self.total), 99))
262
+ if self.total:
263
+ nc.set_init_status(min(current_progress + int(progress_for_task * self.n / self.total), 99))
257
264
  return super().display(msg, pos)
258
265
 
259
266
  workers = download_options.pop("max_workers", 2)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes