ffbb-data-client 2.4.43__tar.gz → 2.4.44__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 (409) hide show
  1. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/Dockerfile +1 -1
  2. {ffbb_data_client-2.4.43/src/ffbb_data_client.egg-info → ffbb_data_client-2.4.44}/PKG-INFO +2 -2
  3. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/setup.cfg +1 -1
  4. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/api.py +480 -20
  5. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/clients/_mixins/competition.py +3 -0
  6. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/clients/_mixins/organisme.py +2 -0
  7. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/clients/api_ffbb_app_client.py +2 -1
  8. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/config.py +12 -0
  9. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/helpers/meilisearch_fallback.py +102 -2
  10. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/helpers/normalization.py +6 -2
  11. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/utils/__init__.py +3 -0
  12. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/utils/cache_manager.py +22 -7
  13. ffbb_data_client-2.4.44/src/ffbb_data_client/utils/rate_limiter.py +169 -0
  14. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/utils/retry_utils.py +125 -35
  15. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44/src/ffbb_data_client.egg-info}/PKG-INFO +2 -2
  16. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client.egg-info/SOURCES.txt +2 -0
  17. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client.egg-info/requires.txt +1 -1
  18. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client.egg-info/scm_file_list.json +2 -0
  19. ffbb_data_client-2.4.44/src/ffbb_data_client.egg-info/scm_version.json +8 -0
  20. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/clients/test_201_unit_tests_core.py +8 -1
  21. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/test_311_normalize_team_name.py +21 -0
  22. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/test_314_api_endpoints.py +30 -0
  23. ffbb_data_client-2.4.44/tests/unit/utils/test_311_rate_limiter.py +45 -0
  24. ffbb_data_client-2.4.43/src/ffbb_data_client.egg-info/scm_version.json +0 -8
  25. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/.agents/rules/antigravity-rtk-rules.md +0 -0
  26. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/.coveragerc +0 -0
  27. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/.gitattributes +0 -0
  28. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/.github/FUNDING.yml +0 -0
  29. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  30. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  31. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  32. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/.github/dependabot.yml +0 -0
  33. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/.github/scripts/check_wrapper_parity.py +0 -0
  34. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/.github/workflows/check_wrapper_parity.yml +0 -0
  35. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/.github/workflows/ci.yml +0 -0
  36. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/.github/workflows/codeql.yml +0 -0
  37. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/.github/workflows/dependabot-automerge.yml +0 -0
  38. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/.github/workflows/deploy-pages.yml +0 -0
  39. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/.github/workflows/keep-ffbb-api-discovery-alive.yml +0 -0
  40. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/.github/workflows/publish.yml +0 -0
  41. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/.github/workflows/release-after-discovery-merge.yml +0 -0
  42. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/.github/workflows/update-ffbb-api-discovery.yml +0 -0
  43. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/.gitignore +0 -0
  44. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/.isort.cfg +0 -0
  45. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/.jules/bolt.md +0 -0
  46. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/.omc/skills/codeql-security-hardening-expertise.md +0 -0
  47. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/.omc/skills/pypi-immutable-release-workflow.md +0 -0
  48. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/.omc/skills/terminal-output-hygiene-expertise.md +0 -0
  49. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/.pre-commit-config.yaml +0 -0
  50. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/.readthedocs.yml +0 -0
  51. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/AGENTS.md +0 -0
  52. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/AUTHORS.rst +0 -0
  53. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/CHANGELOG.md +0 -0
  54. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/CODE_OF_CONDUCT.md +0 -0
  55. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/CONTRIBUTING.rst +0 -0
  56. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/DESIGN.md +0 -0
  57. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/LICENSE.txt +0 -0
  58. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/LOCAL_CI_GUIDE.md +0 -0
  59. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/README.md +0 -0
  60. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/RELEASE_NOTES.md +0 -0
  61. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/SECURITY.md +0 -0
  62. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/data/api.ffbb.app.json +0 -0
  63. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/data/api_update_summary.md +0 -0
  64. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/data/collections.json +0 -0
  65. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/data/endpoint_discovery.json +0 -0
  66. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/data/field_dictionary.json +0 -0
  67. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/data/indexes.json +0 -0
  68. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/data/meilisearch-prod.ffbb.app.json +0 -0
  69. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/data/openapi.json +0 -0
  70. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/data/openapi_full.json +0 -0
  71. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/data/permission_drift_summary.md +0 -0
  72. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/data/permission_matrix.json +0 -0
  73. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/data/type_discovery_corrections.json +0 -0
  74. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/docs/Makefile +0 -0
  75. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/docs/_static/.gitignore +0 -0
  76. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/docs/architecture.rst +0 -0
  77. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/docs/authors.rst +0 -0
  78. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/docs/changelog.rst +0 -0
  79. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/docs/conf.py +0 -0
  80. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/docs/contributing.rst +0 -0
  81. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/docs/data_dictionary.rst +0 -0
  82. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/docs/examples.rst +0 -0
  83. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/docs/index.rst +0 -0
  84. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/docs/license.rst +0 -0
  85. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/docs/migration.rst +0 -0
  86. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/docs/readme.rst +0 -0
  87. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/docs/requirements.txt +0 -0
  88. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/docs/test_strategy.md +0 -0
  89. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/docs/testing_conventions.md +0 -0
  90. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/examples/README.md +0 -0
  91. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/examples/complete_usage_example.py +0 -0
  92. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/examples/quick_start.py +0 -0
  93. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/examples/team_ranking_analysis.py +0 -0
  94. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/pyproject.toml +0 -0
  95. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/run-ci-locally.sh +0 -0
  96. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/scripts/benchmark_concurrent_pagination.py +0 -0
  97. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/scripts/benchmark_search_organisme.py +0 -0
  98. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/scripts/discover_endpoints.py +0 -0
  99. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/scripts/discover_permissions.py +0 -0
  100. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/scripts/discover_types.py +0 -0
  101. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/setup.py +0 -0
  102. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/__init__.py +0 -0
  103. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/clients/__init__.py +0 -0
  104. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/clients/_helpers.py +0 -0
  105. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/clients/_mixins/__init__.py +0 -0
  106. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/clients/_mixins/external.py +0 -0
  107. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/clients/_mixins/getters.py +0 -0
  108. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/clients/_mixins/list_methods.py +0 -0
  109. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/clients/_rest_facade.py +0 -0
  110. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/clients/_search_facade.py +0 -0
  111. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/clients/ffbb_data_client.py +0 -0
  112. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/clients/meilisearch_client.py +0 -0
  113. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/clients/meilisearch_ffbb_client.py +0 -0
  114. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/data/__init__.py +0 -0
  115. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/data/collections.json +0 -0
  116. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/data/endpoint_discovery.json +0 -0
  117. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/data/field_dictionary.json +0 -0
  118. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/data/indexes.json +0 -0
  119. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/data/openapi.json +0 -0
  120. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/data/permission_matrix.json +0 -0
  121. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/exceptions.py +0 -0
  122. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/helpers/__init__.py +0 -0
  123. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/helpers/http_requests_helper.py +0 -0
  124. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/helpers/http_requests_utils.py +0 -0
  125. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/helpers/meilisearch_client_extension.py +0 -0
  126. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/helpers/multi_search_query_helper.py +0 -0
  127. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/__init__.py +0 -0
  128. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/affiche.py +0 -0
  129. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/cartographie.py +0 -0
  130. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/categorie.py +0 -0
  131. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/categorie_type.py +0 -0
  132. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/clock.py +0 -0
  133. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/club_contacts.py +0 -0
  134. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/code.py +0 -0
  135. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/commune.py +0 -0
  136. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/competition_fields.py +0 -0
  137. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/competition_id.py +0 -0
  138. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/competition_id_categorie.py +0 -0
  139. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/competition_id_sexe.py +0 -0
  140. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/competition_id_type_competition.py +0 -0
  141. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/competition_id_type_competition_generique.py +0 -0
  142. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/competition_origine.py +0 -0
  143. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/competition_origine_categorie.py +0 -0
  144. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/competition_origine_type_competition.py +0 -0
  145. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/competition_origine_type_competition_generique.py +0 -0
  146. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/competition_type.py +0 -0
  147. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/competitions_facet_distribution.py +0 -0
  148. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/competitions_facet_stats.py +0 -0
  149. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/competitions_hit.py +0 -0
  150. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/competitions_multi_search_query.py +0 -0
  151. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/competitions_query.py +0 -0
  152. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/configuration_models.py +0 -0
  153. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/contact_info.py +0 -0
  154. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/content_multi_search_query.py +0 -0
  155. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/coordonnees.py +0 -0
  156. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/coordonnees_type.py +0 -0
  157. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/document_flyer.py +0 -0
  158. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/document_flyer_type.py +0 -0
  159. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/engagement_contacts.py +0 -0
  160. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/engagements_facet_distribution.py +0 -0
  161. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/engagements_facet_stats.py +0 -0
  162. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/engagements_hit.py +0 -0
  163. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/engagements_multi_search_query.py +0 -0
  164. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/etat.py +0 -0
  165. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/external_competition_id.py +0 -0
  166. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/external_id.py +0 -0
  167. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/facet_distribution.py +0 -0
  168. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/facet_stats.py +0 -0
  169. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/field_set.py +0 -0
  170. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/folder.py +0 -0
  171. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/formation_session.py +0 -0
  172. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/formations_facet_distribution.py +0 -0
  173. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/formations_facet_stats.py +0 -0
  174. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/formations_hit.py +0 -0
  175. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/formations_multi_search_query.py +0 -0
  176. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/game_stats_model.py +0 -0
  177. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/game_stats_models.py +0 -0
  178. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/generic_search.py +0 -0
  179. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/geo.py +0 -0
  180. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/geo_sort_order.py +0 -0
  181. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/get_commune_response.py +0 -0
  182. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/get_competition_response.py +0 -0
  183. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/get_configuration_response.py +0 -0
  184. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/get_engagement_response.py +0 -0
  185. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/get_entraineur_response.py +0 -0
  186. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/get_formation_response.py +0 -0
  187. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/get_officiel_response.py +0 -0
  188. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/get_organisme_response.py +0 -0
  189. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/get_poule_response.py +0 -0
  190. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/get_pratique_response.py +0 -0
  191. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/get_rencontre_response.py +0 -0
  192. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/get_saisons_response.py +0 -0
  193. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/get_salle_response.py +0 -0
  194. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/get_terrain_response.py +0 -0
  195. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/get_tournoi_response.py +0 -0
  196. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/gradient_color.py +0 -0
  197. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/hit.py +0 -0
  198. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/id_engagement_equipe.py +0 -0
  199. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/id_organisme_equipe.py +0 -0
  200. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/id_organisme_equipe1_logo.py +0 -0
  201. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/id_poule.py +0 -0
  202. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/jour.py +0 -0
  203. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/label.py +0 -0
  204. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/labellisation.py +0 -0
  205. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/live.py +0 -0
  206. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/lives.py +0 -0
  207. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/logo.py +0 -0
  208. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/multi_search_queries.py +0 -0
  209. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/multi_search_query.py +0 -0
  210. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/multi_search_result_competitions.py +0 -0
  211. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/multi_search_result_engagements.py +0 -0
  212. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/multi_search_result_formations.py +0 -0
  213. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/multi_search_result_organismes.py +0 -0
  214. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/multi_search_result_pratiques.py +0 -0
  215. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/multi_search_result_rencontres.py +0 -0
  216. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/multi_search_result_salles.py +0 -0
  217. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/multi_search_result_terrains.py +0 -0
  218. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/multi_search_result_tournois.py +0 -0
  219. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/multi_search_results.py +0 -0
  220. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/multi_search_results_class.py +0 -0
  221. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/nature_sol.py +0 -0
  222. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/niveau.py +0 -0
  223. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/niveau_class.py +0 -0
  224. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/niveau_extractor.py +0 -0
  225. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/niveau_info.py +0 -0
  226. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/niveau_models.py +0 -0
  227. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/niveau_type.py +0 -0
  228. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/objectif.py +0 -0
  229. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/organisateur.py +0 -0
  230. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/organisateur_type.py +0 -0
  231. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/organisme_fields.py +0 -0
  232. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/organisme_id_pere.py +0 -0
  233. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/organismes_facet_distribution.py +0 -0
  234. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/organismes_facet_stats.py +0 -0
  235. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/organismes_hit.py +0 -0
  236. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/organismes_multi_search_query.py +0 -0
  237. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/organismes_query.py +0 -0
  238. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/phase_code.py +0 -0
  239. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/poule.py +0 -0
  240. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/poule_fields.py +0 -0
  241. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/poule_rencontre_item_model.py +0 -0
  242. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/poules_models.py +0 -0
  243. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/poules_query.py +0 -0
  244. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/pratique.py +0 -0
  245. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/pratiques_facet_distribution.py +0 -0
  246. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/pratiques_facet_stats.py +0 -0
  247. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/pratiques_hit.py +0 -0
  248. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/pratiques_hit_type.py +0 -0
  249. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/pratiques_multi_search_query.py +0 -0
  250. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/pratiques_type_class.py +0 -0
  251. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/publication_internet.py +0 -0
  252. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/purple_logo.py +0 -0
  253. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/query_fields_manager.py +0 -0
  254. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/ranking_engagement.py +0 -0
  255. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/rankings_models.py +0 -0
  256. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/rencontres_engagement.py +0 -0
  257. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/rencontres_facet_distribution.py +0 -0
  258. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/rencontres_facet_stats.py +0 -0
  259. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/rencontres_hit.py +0 -0
  260. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/rencontres_multi_search_query.py +0 -0
  261. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/saison.py +0 -0
  262. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/saison_fields.py +0 -0
  263. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/saisons_models.py +0 -0
  264. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/saisons_query.py +0 -0
  265. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/salle.py +0 -0
  266. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/salles_facet_distribution.py +0 -0
  267. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/salles_facet_stats.py +0 -0
  268. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/salles_hit.py +0 -0
  269. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/salles_multi_search_query.py +0 -0
  270. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/sexe.py +0 -0
  271. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/sexe_class.py +0 -0
  272. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/source.py +0 -0
  273. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/status.py +0 -0
  274. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/team_engagement.py +0 -0
  275. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/team_ranking.py +0 -0
  276. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/terrains_categorie_championnat_3x3_libelle.py +0 -0
  277. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/terrains_facet_distribution.py +0 -0
  278. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/terrains_facet_stats.py +0 -0
  279. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/terrains_hit.py +0 -0
  280. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/terrains_multi_search_query.py +0 -0
  281. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/terrains_name.py +0 -0
  282. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/terrains_sexe_enum.py +0 -0
  283. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/terrains_storage.py +0 -0
  284. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/tournoi_type_class.py +0 -0
  285. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/tournoi_type_enum.py +0 -0
  286. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/tournoi_types_3x3.py +0 -0
  287. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/tournoi_types_3x3_libelle.py +0 -0
  288. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/tournoi_types_3x3_libelle_enum.py +0 -0
  289. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/tournois_facet_distribution.py +0 -0
  290. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/tournois_facet_stats.py +0 -0
  291. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/tournois_hit.py +0 -0
  292. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/tournois_hit_type.py +0 -0
  293. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/tournois_libelle.py +0 -0
  294. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/tournois_multi_search_query.py +0 -0
  295. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/type_association.py +0 -0
  296. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/type_association_libelle.py +0 -0
  297. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/type_class.py +0 -0
  298. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/type_competition.py +0 -0
  299. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/type_competition_generique.py +0 -0
  300. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/type_enum.py +0 -0
  301. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/models/type_league.py +0 -0
  302. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/py.typed +0 -0
  303. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/utils/concurrency_utils.py +0 -0
  304. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/utils/converter_utils.py +0 -0
  305. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/utils/input_validation.py +0 -0
  306. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/utils/secure_logging.py +0 -0
  307. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/utils/token_manager.py +0 -0
  308. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client/utils/web_probe.py +0 -0
  309. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client.egg-info/dependency_links.txt +0 -0
  310. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client.egg-info/not-zip-safe +0 -0
  311. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/src/ffbb_data_client.egg-info/top_level.txt +0 -0
  312. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/conftest.py +0 -0
  313. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/e2e/__init__.py +0 -0
  314. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/e2e/conftest.py +0 -0
  315. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/integration/__init__.py +0 -0
  316. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/integration/conftest.py +0 -0
  317. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/integration/test_500_user_journey.py +0 -0
  318. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/integration/test_501_user_journey_v3.py +0 -0
  319. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/integration/test_502_enhanced_integration.py +0 -0
  320. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/integration/test_503_secure_logging.py +0 -0
  321. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/integration/test_504_input_validation.py +0 -0
  322. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/integration/test_505_retry_timeout.py +0 -0
  323. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/integration/test_506_raw_json_model_conversion.py +0 -0
  324. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/__init__.py +0 -0
  325. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/clients/__init__.py +0 -0
  326. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/clients/test_200_api_ffbb_app_client.py +0 -0
  327. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/clients/test_202_meilisearch_client.py +0 -0
  328. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/clients/test_203_meilisearch_client_extension.py +0 -0
  329. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/clients/test_204_ffbb_data_client.py +0 -0
  330. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/clients/test_205_meilisearch_ffbb_client.py +0 -0
  331. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/clients/test_206_coverage_gaps_clients.py +0 -0
  332. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/clients/test_207_coverage_clients_extended.py +0 -0
  333. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/clients/test_208_new_methods_coverage.py +0 -0
  334. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/clients/test_209_automatic_token_resolution.py +0 -0
  335. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/clients/test_210_targeted_clients_helpers_coverage.py +0 -0
  336. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/clients/test_api_optimizations.py +0 -0
  337. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/clients/test_async_methods.py +0 -0
  338. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/clients/test_meilisearch_async.py +0 -0
  339. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/clients/test_search_many.py +0 -0
  340. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/clients/test_v2_backport_search.py +0 -0
  341. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/clients/test_v3_new_features.py +0 -0
  342. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/clients/test_v4_aiter_and_contacts.py +0 -0
  343. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/clients/test_warm_cache.py +0 -0
  344. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/conftest.py +0 -0
  345. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/helpers/__init__.py +0 -0
  346. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/helpers/test_400_http_helpers.py +0 -0
  347. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/helpers/test_meilisearch_client_extension_recursive_pagination.py +0 -0
  348. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/helpers/test_meilisearch_pagination_concurrent.py +0 -0
  349. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/helpers/test_normalization.py +0 -0
  350. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/models/__init__.py +0 -0
  351. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/models/test_100_competition_id_categorie.py +0 -0
  352. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/models/test_101_competition_id_sexe.py +0 -0
  353. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/models/test_102_competition_id_type_competition.py +0 -0
  354. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/models/test_103_competition_id_type_competition_generique.py +0 -0
  355. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/models/test_104_competition_origine_categorie.py +0 -0
  356. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/models/test_105_competition_origine_type_competition_generique.py +0 -0
  357. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/models/test_106_competition_origine.py +0 -0
  358. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/models/test_107_id_engagement_equipe.py +0 -0
  359. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/models/test_108_id_organisme_equipe.py +0 -0
  360. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/models/test_109_id_organisme_equipe1_logo.py +0 -0
  361. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/models/test_110_labellisation.py +0 -0
  362. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/models/test_111_niveau_class.py +0 -0
  363. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/models/test_112_purple_logo.py +0 -0
  364. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/models/test_113_salle.py +0 -0
  365. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/models/test_114_tournoi_type_class.py +0 -0
  366. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/models/test_115_type_association_libelle.py +0 -0
  367. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/models/test_116_type_competition_generique.py +0 -0
  368. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/models/test_117_organisateur.py +0 -0
  369. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/models/test_118_competition_id.py +0 -0
  370. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/models/test_119_terrains_inner_models.py +0 -0
  371. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/models/test_120_pratiques_inner_models.py +0 -0
  372. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/models/test_121_to_dict_round_trip.py +0 -0
  373. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/models/test_122_coverage_gaps.py +0 -0
  374. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/models/test_123_missing_coverage.py +0 -0
  375. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/models/test_123_v2_backport.py +0 -0
  376. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/models/test_124_targeted_coverage_gains.py +0 -0
  377. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/models/test_dx_aliases.py +0 -0
  378. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/test_310_discover_endpoints.py +0 -0
  379. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/test_312_api_cors.py +0 -0
  380. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/test_313_api_metrics.py +0 -0
  381. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/test_314_discover_permissions.py +0 -0
  382. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/utils/__init__.py +0 -0
  383. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/utils/test_300_secure_logging.py +0 -0
  384. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/utils/test_301_input_validation.py +0 -0
  385. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/utils/test_302_retry_utils.py +0 -0
  386. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/utils/test_303_cache_manager.py +0 -0
  387. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/utils/test_304_config.py +0 -0
  388. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/utils/test_305_token_manager.py +0 -0
  389. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/utils/test_306_converter_utils.py +0 -0
  390. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/utils/test_307_coverage_gaps_utils.py +0 -0
  391. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/utils/test_308_converter_utils_extended.py +0 -0
  392. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/utils/test_309_concurrency_utils.py +0 -0
  393. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/utils/test_310_waf_circuit.py +0 -0
  394. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tests/unit/utils/test_web_probe.py +0 -0
  395. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tools/update_agents_md.py +0 -0
  396. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/tox.ini +0 -0
  397. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/website/assets/apple-touch-icon.png +0 -0
  398. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/website/assets/favicon-192x192.png +0 -0
  399. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/website/assets/favicon-48x48.png +0 -0
  400. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/website/assets/favicon-96x96.png +0 -0
  401. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/website/assets/favicon.ico +0 -0
  402. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/website/assets/logo.webp +0 -0
  403. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/website/css/style.css +0 -0
  404. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/website/favicon.ico +0 -0
  405. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/website/index.html +0 -0
  406. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/website/llms-full.txt +0 -0
  407. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/website/llms.txt +0 -0
  408. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/website/robots.txt +0 -0
  409. {ffbb_data_client-2.4.43 → ffbb_data_client-2.4.44}/website/sitemap.xml +0 -0
@@ -41,4 +41,4 @@ EXPOSE 8000
41
41
  HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \
42
42
  CMD curl -f http://localhost:8000/health || exit 1
43
43
 
44
- CMD ["uvicorn", "ffbb_data_client.api:app", "--host", "0.0.0.0", "--port", "8000", "--limit-max-requests", "5000", "--limit-max-requests-jitter", "500"]
44
+ CMD ["uvicorn", "ffbb_data_client.api:app", "--host", "0.0.0.0", "--port", "8000", "--limit-max-requests", "1000", "--limit-max-requests-jitter", "100"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ffbb-data-client
3
- Version: 2.4.43
3
+ Version: 2.4.44
4
4
  Summary: API FFBB — SDK Python moderne & asynchrone pour les donnees officielles de la Federation Francaise de BasketBall (clubs, classements, calendriers, lives, Meilisearch). Alternative moderne a ffbb-api-client.
5
5
  Home-page: https://github.com/nickdesi/ffbb-data-client
6
6
  Author: nickdesi
@@ -35,7 +35,7 @@ License-File: LICENSE.txt
35
35
  Requires-Dist: python-dotenv>=1.2.2
36
36
  Requires-Dist: python-dateutil>=2.9.0.post0
37
37
  Requires-Dist: httpx>=0.28.1
38
- Requires-Dist: hishel[async]>=1.3.0
38
+ Requires-Dist: hishel[async]<2.0.0,>=1.3.0
39
39
  Requires-Dist: pydantic>=2.13.4
40
40
  Provides-Extra: server
41
41
  Requires-Dist: fastapi>=0.115.0; extra == "server"
@@ -45,7 +45,7 @@ install_requires =
45
45
  python-dotenv>=1.2.2
46
46
  python-dateutil>=2.9.0.post0
47
47
  httpx>=0.28.1
48
- hishel[async]>=1.3.0
48
+ hishel[async]>=1.3.0,<2.0.0
49
49
  pydantic>=2.13.4
50
50
 
51
51
  [options.package_data]
@@ -14,7 +14,7 @@ import re
14
14
  import threading
15
15
  import time
16
16
  from collections import OrderedDict
17
- from contextlib import asynccontextmanager
17
+ from contextlib import asynccontextmanager, suppress
18
18
  from datetime import date, datetime, timezone
19
19
  from pathlib import Path
20
20
  from typing import Any
@@ -46,11 +46,60 @@ if not _WEBSITE_DIR.exists():
46
46
  _WEBSITE_DIR = Path("/app/website")
47
47
 
48
48
 
49
+ def _get_process_rss_mb() -> float:
50
+ """Mesure le RSS mémoire du processus en Mo de manière native et ultra-légère."""
51
+ try:
52
+ with open("/proc/self/statm") as f:
53
+ pages = int(f.read().split()[1])
54
+ return (pages * os.sysconf("SC_PAGE_SIZE")) / (1024 * 1024)
55
+ except Exception:
56
+ try:
57
+ import resource
58
+
59
+ return resource.getrusage(resource.RUSAGE_SELF).ru_maxrss / 1024.0
60
+ except Exception:
61
+ return 0.0
62
+
63
+
64
+ async def _memory_watchdog_task() -> None:
65
+ """Watchdog périodique pour prévenir toute fuite mémoire et recycler le worker si nécessaire."""
66
+ import gc
67
+ import signal
68
+
69
+ while True:
70
+ await asyncio.sleep(60)
71
+ try:
72
+ rss_mb = _get_process_rss_mb()
73
+ if rss_mb > 350.0:
74
+ gc.collect()
75
+ new_rss_mb = _get_process_rss_mb()
76
+ logger.info(
77
+ "Watchdog mémoire : RSS était de %.1f Mo, après gc.collect(): %.1f Mo",
78
+ rss_mb,
79
+ new_rss_mb,
80
+ )
81
+ if new_rss_mb > 500.0:
82
+ logger.critical(
83
+ "Watchdog mémoire : seuil critique dépassé (%.1f Mo > 500 Mo). Déclenchement arrêt gracieux pour recyclage Swarm.",
84
+ new_rss_mb,
85
+ )
86
+ os.kill(os.getpid(), signal.SIGTERM)
87
+ break
88
+ except Exception as e:
89
+ logger.debug("Watchdog mémoire exception: %s", e)
90
+
91
+
49
92
  @asynccontextmanager
50
93
  async def lifespan(app: FastAPI):
51
94
  """Lifespan context manager for startup and graceful shutdown (FastAPI/Context7 standard)."""
52
- yield
53
- await aclose_default_clients()
95
+ watchdog = asyncio.create_task(_memory_watchdog_task())
96
+ try:
97
+ yield
98
+ finally:
99
+ watchdog.cancel()
100
+ with suppress(asyncio.CancelledError):
101
+ await watchdog
102
+ await aclose_default_clients()
54
103
 
55
104
 
56
105
  TAGS_METADATA = [
@@ -159,7 +208,7 @@ l'ensemble des données publiques de la **Fédération Française de BasketBall*
159
208
  - ⭐ **Code Source GitHub** : [`https://github.com/nickdesi/ffbb-data-client`](https://github.com/nickdesi/ffbb-data-client)
160
209
  - 📖 **Documentation Sphinx complète** : [`https://nickdesi.github.io/ffbb-data-client/`](https://nickdesi.github.io/ffbb-data-client/)
161
210
  """,
162
- version="2.4.43",
211
+ version="2.4.45",
163
212
  contact={
164
213
  "name": "FFBB Data Client — Support & Open Data",
165
214
  "url": "https://github.com/nickdesi/ffbb-data-client/issues",
@@ -375,7 +424,9 @@ def format_french_date(iso_str: str) -> str:
375
424
  return iso_str
376
425
 
377
426
 
378
- def normalize_team_name(team_raw: str, comp_name: str = "") -> str:
427
+ def normalize_team_name(
428
+ team_raw: str, comp_name: str = "", eng_numero_equipe: str | int | None = None
429
+ ) -> str:
379
430
  """Normalise le nom d'une équipe en réutilisant le parser centralisé parse_categorie."""
380
431
  raw = (team_raw or "").strip()
381
432
  comp = (comp_name or "").strip()
@@ -389,12 +440,23 @@ def normalize_team_name(team_raw: str, comp_name: str = "") -> str:
389
440
  gender = "MIXTE"
390
441
 
391
442
  # Priorité au numéro d'équipe explicitement présent dans le nom brut (ex: "STADE CLERMONTOIS - 2")
443
+ # ou dans l'engagement FFBB (eng.numeroEquipe). Pour les jeunes, ne jamais prendre "Division 2" / "Phase 2"
444
+ # du libellé de compétition comme numéro d'équipe.
392
445
  m_num = re.search(r"[- ](\d+)$", raw)
393
- num = (
394
- m_num.group(1)
395
- if m_num
396
- else (str(parsed.numero_equipe) if parsed.numero_equipe else "1")
446
+ eng_num_str = (
447
+ str(eng_numero_equipe).strip()
448
+ if eng_numero_equipe is not None and str(eng_numero_equipe).strip().isdigit()
449
+ else ""
397
450
  )
451
+ if m_num:
452
+ num = m_num.group(1)
453
+ elif eng_num_str:
454
+ num = eng_num_str
455
+ elif cat.startswith("U"):
456
+ parsed_raw = parse_categorie(raw)
457
+ num = str(parsed_raw.numero_equipe) if parsed_raw.numero_equipe else "1"
458
+ else:
459
+ num = str(parsed.numero_equipe) if parsed.numero_equipe else "1"
398
460
 
399
461
  if cat.startswith("U"):
400
462
  if gender == "MIXTE":
@@ -1013,11 +1075,256 @@ async def get_club_matches(
1013
1075
  if getattr(org, "logo", None):
1014
1076
  logo_id = getattr(org.logo, "id", None) or org.logo
1015
1077
  if logo_id:
1016
- club_logo_url = f"{API_FFBB_BASE_URL}assets/{logo_id}"
1078
+ club_logo_url = f"/api/v1/assets/{logo_id}"
1017
1079
 
1018
1080
  engagements = getattr(org, "engagements", []) or []
1019
1081
  _poule_name_cache: dict[str, str] = {}
1020
1082
 
1083
+ # 0. Fast-path Directus en 1 seule requête : si le client expose api_ffbb_client._list_directus_items_async
1084
+ # (et n'est pas un MagicMock de test unitaire), on récupère l'ensemble des rencontres de la saison 1037
1085
+ # avec toutes les jointures (salle, commune, logos, poule, compétition) en ~700 ms au lieu de N+1 appels.
1086
+ raw_api_client: Any = getattr(client, "api_ffbb_client", None)
1087
+ if type(raw_api_client).__name__ == "ApiFFBBAppClient":
1088
+ try:
1089
+ import json as _json
1090
+
1091
+ filter_str = _json.dumps(
1092
+ {
1093
+ "_and": [
1094
+ {"saison": {"_eq": "1037"}},
1095
+ {
1096
+ "_or": [
1097
+ {"idOrganismeEquipe1": {"_eq": str(organisme_id)}},
1098
+ {"idOrganismeEquipe2": {"_eq": str(organisme_id)}},
1099
+ ]
1100
+ },
1101
+ ]
1102
+ }
1103
+ )
1104
+ fast_fields = [
1105
+ "id",
1106
+ "date_rencontre",
1107
+ "horaire",
1108
+ "nomEquipe1",
1109
+ "nomEquipe2",
1110
+ "numeroJournee",
1111
+ "resultatEquipe1",
1112
+ "resultatEquipe2",
1113
+ "joue",
1114
+ "url_competition",
1115
+ "competitionId.id",
1116
+ "competitionId.nom",
1117
+ "idPoule.id",
1118
+ "idPoule.nom",
1119
+ "idOrganismeEquipe1.id",
1120
+ "idOrganismeEquipe1.logo.id",
1121
+ "idOrganismeEquipe2.id",
1122
+ "idOrganismeEquipe2.logo.id",
1123
+ "salle.id",
1124
+ "salle.libelle",
1125
+ "salle.adresse",
1126
+ "salle.commune.codePostal",
1127
+ "salle.commune.libelle",
1128
+ ]
1129
+ fast_rows = await asyncio.wait_for(
1130
+ client.api_ffbb_client._list_directus_items_async(
1131
+ "items/ffbbserver_rencontres",
1132
+ limit=500,
1133
+ fields=fast_fields,
1134
+ filter_criteria=filter_str,
1135
+ ),
1136
+ timeout=6.0,
1137
+ )
1138
+ if isinstance(fast_rows, list) and fast_rows:
1139
+ fast_matches: list[dict[str, Any]] = []
1140
+ for row in fast_rows:
1141
+ if not isinstance(row, dict):
1142
+ continue
1143
+ m_id = str(row.get("id") or "")
1144
+ if not m_id:
1145
+ continue
1146
+ org1 = row.get("idOrganismeEquipe1") or {}
1147
+ org2 = row.get("idOrganismeEquipe2") or {}
1148
+ id_org1 = str(
1149
+ org1.get("id") if isinstance(org1, dict) else org1 or ""
1150
+ )
1151
+ id_org2 = str(
1152
+ org2.get("id") if isinstance(org2, dict) else org2 or ""
1153
+ )
1154
+ nom_eq1 = str(row.get("nomEquipe1") or "")
1155
+ nom_eq2 = str(row.get("nomEquipe2") or "")
1156
+ is_home = (
1157
+ id_org1 == str(organisme_id)
1158
+ or club_name.upper() in nom_eq1.upper()
1159
+ )
1160
+ comp_obj = row.get("competitionId") or {}
1161
+ comp_nom = (
1162
+ str(comp_obj.get("nom") or "")
1163
+ if isinstance(comp_obj, dict)
1164
+ else ""
1165
+ )
1166
+ poule_obj = row.get("idPoule") or {}
1167
+ poule_id_str = (
1168
+ str(poule_obj.get("id") or "")
1169
+ if isinstance(poule_obj, dict)
1170
+ else str(poule_obj or "")
1171
+ )
1172
+ poule_nom_str = (
1173
+ str(poule_obj.get("nom") or "")
1174
+ if isinstance(poule_obj, dict)
1175
+ else ""
1176
+ )
1177
+
1178
+ local_team_raw = nom_eq1 if is_home else nom_eq2
1179
+ opp_team_raw = nom_eq2 if is_home else nom_eq1
1180
+ scba_team = normalize_team_name(local_team_raw, comp_nom)
1181
+ opponent = clean_opponent_name(opp_team_raw)
1182
+ if team and team != "ALL" and team.upper() not in scba_team.upper():
1183
+ continue
1184
+
1185
+ date_raw = str(row.get("date_rencontre") or "")
1186
+ date_iso = (
1187
+ date_raw[:10]
1188
+ if re.match(r"^\d{4}-\d{2}-\d{2}", date_raw)
1189
+ else ""
1190
+ )
1191
+ if (
1192
+ has_date_filter
1193
+ and date_iso
1194
+ and not in_date_range(date.fromisoformat(date_iso))
1195
+ ):
1196
+ continue
1197
+
1198
+ time_str = ""
1199
+ horaire = str(row.get("horaire") or "").strip()
1200
+ if horaire and horaire not in ("0", "00:00", "00h00"):
1201
+ h_clean = re.sub(r"[hH:]", "", horaire).strip()
1202
+ if len(h_clean) == 4:
1203
+ time_str = f"{h_clean[:2]}:{h_clean[2:]}"
1204
+ elif len(h_clean) == 2:
1205
+ time_str = f"{h_clean}:00"
1206
+ elif "T" in date_raw and len(date_raw) >= 16:
1207
+ time_part = date_raw[11:16]
1208
+ if time_part != "00:00":
1209
+ time_str = time_part
1210
+
1211
+ salle_obj = row.get("salle") or {}
1212
+ location = ""
1213
+ if isinstance(salle_obj, dict) and salle_obj:
1214
+ s_nom = str(salle_obj.get("libelle") or "")
1215
+ s_adr = str(salle_obj.get("adresse") or "")
1216
+ comm = salle_obj.get("commune") or {}
1217
+ s_cp = (
1218
+ str(comm.get("codePostal") or "")
1219
+ if isinstance(comm, dict)
1220
+ else ""
1221
+ )
1222
+ s_ville = (
1223
+ str(comm.get("libelle") or "")
1224
+ if isinstance(comm, dict)
1225
+ else ""
1226
+ )
1227
+ cp_v = f"{s_cp} {s_ville}".strip()
1228
+ parts = [p for p in [s_nom, s_adr, cp_v] if p]
1229
+ location = ", ".join(parts)
1230
+ if not location:
1231
+ location = (
1232
+ "Maison des Sports, Place des Bughes, 63000 Clermont-Ferrand"
1233
+ if (is_home and organisme_id == 9326)
1234
+ else ("Domicile" if is_home else f"Extérieur ({opponent})")
1235
+ )
1236
+
1237
+ opp_org = org2 if is_home else org1
1238
+ opp_logo_id = (
1239
+ (opp_org.get("logo") or {}).get("id")
1240
+ if isinstance(opp_org, dict)
1241
+ and isinstance(opp_org.get("logo"), dict)
1242
+ else None
1243
+ )
1244
+ opponent_logo = (
1245
+ f"/api/v1/assets/{opp_logo_id}" if opp_logo_id else None
1246
+ )
1247
+
1248
+ parsed_cat = parse_categorie(f"{local_team_raw} {comp_nom}".strip())
1249
+ team_category = parsed_cat.categorie or "SENIOR"
1250
+ team_gender = parsed_cat.sexe or "M"
1251
+ if "MIXTE" in f"{local_team_raw} {comp_nom}".upper():
1252
+ team_gender = "MIXTE"
1253
+ m_num = re.search(r"[- ](\d+)$", (local_team_raw or "").strip())
1254
+ team_num = (
1255
+ int(m_num.group(1))
1256
+ if m_num
1257
+ else (
1258
+ parsed_cat.numero_equipe if parsed_cat.numero_equipe else 1
1259
+ )
1260
+ )
1261
+
1262
+ res1 = row.get("resultatEquipe1")
1263
+ res2 = row.get("resultatEquipe2")
1264
+ is_played = bool(
1265
+ row.get("joue", False) or res1 is not None or res2 is not None
1266
+ )
1267
+ score_local = res1 if is_home else res2
1268
+ score_opp = res2 if is_home else res1
1269
+
1270
+ card: dict[str, Any] = {
1271
+ "ffbbMatchId": m_id,
1272
+ "team": scba_team,
1273
+ "sexe": team_gender,
1274
+ "categorie": team_category,
1275
+ "numeroEquipe": team_num,
1276
+ "opponent": opponent,
1277
+ "date": format_french_date(date_iso),
1278
+ "dateISO": date_iso,
1279
+ "time": time_str,
1280
+ "location": location,
1281
+ "isHome": is_home,
1282
+ "competition": comp_nom,
1283
+ "poule": poule_nom_str,
1284
+ "pouleId": poule_id_str,
1285
+ "round": row.get("numeroJournee"),
1286
+ "isPlayed": is_played,
1287
+ "scoreLocal": score_local,
1288
+ "scoreOpponent": score_opp,
1289
+ "scoreEquipe1": res1,
1290
+ "scoreEquipe2": res2,
1291
+ "competitionUrl": str(row.get("url_competition") or ""),
1292
+ "teamLogo": club_logo_url,
1293
+ }
1294
+ if opponent_logo:
1295
+ card["opponentLogo"] = opponent_logo
1296
+ fast_matches.append(card)
1297
+
1298
+ fast_matches.sort(
1299
+ key=lambda x: (x.get("dateISO", ""), x.get("time", ""))
1300
+ )
1301
+ response.headers["Cache-Control"] = (
1302
+ "public, max-age=180, stale-while-revalidate=60"
1303
+ )
1304
+ total_count = len(fast_matches)
1305
+ paged_matches = (
1306
+ fast_matches[offset : offset + limit]
1307
+ if limit is not None
1308
+ else fast_matches[offset:]
1309
+ )
1310
+ return {
1311
+ "organisme_id": organisme_id,
1312
+ "club": club_name,
1313
+ "matches": paged_matches,
1314
+ "count": len(paged_matches),
1315
+ "total": total_count,
1316
+ "pagination": {
1317
+ "total": total_count,
1318
+ "limit": limit if limit is not None else total_count,
1319
+ "offset": offset,
1320
+ "has_more": (offset + len(paged_matches)) < total_count,
1321
+ },
1322
+ }
1323
+ except Exception as e:
1324
+ logger.debug(
1325
+ "Fast-path Directus rencontres échoué pour %d: %s", int(organisme_id), e
1326
+ )
1327
+
1021
1328
  # 1. Déduplication et préparation des requêtes de poules
1022
1329
  poule_meta: dict[int, dict[str, Any]] = {}
1023
1330
  for eng in engagements:
@@ -1043,8 +1350,8 @@ async def get_club_matches(
1043
1350
  "comp_id": int(comp_id) if comp_id else None,
1044
1351
  }
1045
1352
 
1046
- # 2. Récupération asynchrone concurrente de l'ensemble des poules
1047
- sem_poule = asyncio.Semaphore(10)
1353
+ # 2. Récupération asynchrone concurrente de l'ensemble des poules (concurrence max 2 anti-429)
1354
+ sem_poule = asyncio.Semaphore(2)
1048
1355
 
1049
1356
  async def fetch_poule(pid: int):
1050
1357
  async with sem_poule:
@@ -1136,8 +1443,8 @@ async def get_club_matches(
1136
1443
  (m_id, comp_nom, str(pid), poule_nom or "", is_club1, is_club2)
1137
1444
  )
1138
1445
 
1139
- # 5. Récupération asynchrone non-bloquante des fiches rencontres détaillées
1140
- sem_rencontre = asyncio.Semaphore(10)
1446
+ # 5. Récupération asynchrone non-bloquante des fiches rencontres détaillées (concurrence max 2 anti-429)
1447
+ sem_rencontre = asyncio.Semaphore(2)
1141
1448
 
1142
1449
  async def fetch_full_rencontre_async(item):
1143
1450
  m_id, comp_nom, poule_id, poule_nom, is_club1, is_club2 = item
@@ -1240,7 +1547,7 @@ async def get_club_matches(
1240
1547
  if opp_org and getattr(opp_org, "logo", None):
1241
1548
  opp_logo_id = getattr(opp_org.logo, "id", None) or opp_org.logo
1242
1549
  if opp_logo_id:
1243
- opponent_logo = f"{API_FFBB_BASE_URL}assets/{opp_logo_id}"
1550
+ opponent_logo = f"/api/v1/assets/{opp_logo_id}"
1244
1551
  _logo_cache[s_opp_org] = opponent_logo
1245
1552
  except Exception:
1246
1553
  _logo_cache[s_opp_org] = None
@@ -1393,9 +1700,49 @@ async def get_club_teams(
1393
1700
  ),
1394
1701
  ):
1395
1702
  """Retourne la liste des équipes engagées pour un organisme/club."""
1703
+ # Fast-path Meilisearch : résolution instantanée (< 40ms, zéro WAF, zéro proxy)
1704
+ try:
1705
+ from .helpers.meilisearch_fallback import organisme_from_meilisearch
1706
+
1707
+ org_hit = await organisme_from_meilisearch(organisme_id)
1708
+ if org_hit and org_hit.get("engagements"):
1709
+ teams = []
1710
+ for eng in org_hit.get("engagements") or []:
1711
+ comp = eng.get("idCompetition") or {}
1712
+ poule = eng.get("idPoule") or {}
1713
+ teams.append(
1714
+ {
1715
+ "engagement_id": str(eng.get("id") or ""),
1716
+ "team_number": str(eng.get("numeroEquipe") or "1"),
1717
+ "competition": (
1718
+ str(comp.get("nom") or "") if isinstance(comp, dict) else ""
1719
+ ),
1720
+ "competition_id": (
1721
+ str(comp.get("id") or "") if isinstance(comp, dict) else ""
1722
+ ),
1723
+ "poule_id": (
1724
+ str(poule.get("id") or "")
1725
+ if isinstance(poule, dict)
1726
+ else str(poule or "")
1727
+ ),
1728
+ }
1729
+ )
1730
+ return {
1731
+ "organisme_id": organisme_id,
1732
+ "nom": org_hit.get("nom", ""),
1733
+ "teams": teams,
1734
+ "count": len(teams),
1735
+ }
1736
+ except Exception as e:
1737
+ logger.debug(
1738
+ "Fast-path Meilisearch get_club_teams %d: %s", int(organisme_id), e
1739
+ )
1740
+
1396
1741
  client = get_client()
1397
1742
  try:
1398
- org = await client.get_organisme_async(organisme_id)
1743
+ org = await asyncio.wait_for(
1744
+ client.get_organisme_async(organisme_id), timeout=5.0
1745
+ )
1399
1746
  if not org:
1400
1747
  raise HTTPException(status_code=404, detail="Club introuvable.")
1401
1748
  except HTTPException:
@@ -1413,6 +1760,7 @@ async def get_club_teams(
1413
1760
  "engagement_id": str(getattr(eng, "id", "")),
1414
1761
  "team_number": getattr(eng, "numeroEquipe", "") or "1",
1415
1762
  "competition": getattr(comp, "nom", "") if comp else "",
1763
+ "competition_id": str(getattr(comp, "id", "")) if comp else "",
1416
1764
  "poule_id": (
1417
1765
  str(getattr(poule, "id", "")) if poule else str(poule or "")
1418
1766
  ),
@@ -1467,17 +1815,33 @@ async def get_poule(
1467
1815
  poule_id: int = PathParam(
1468
1816
  ..., ge=1, description="ID de la poule FFBB", examples=[129759]
1469
1817
  ),
1818
+ competition_id: str | None = Query(
1819
+ None,
1820
+ description="ID optionnel de la compétition pour résolution Meilisearch instantanée",
1821
+ ),
1470
1822
  ):
1471
1823
  """Retourne les détails complets, classements et rencontres d'une poule."""
1472
1824
  client = get_client()
1825
+ poule: Any = None
1473
1826
  try:
1474
- poule = await client.get_poule_async(poule_id)
1827
+ # Directus capé à 6.0s max pour laisser le temps au proxy et aux requêtes complexes
1828
+ poule = await asyncio.wait_for(client.get_poule_async(poule_id), timeout=6.0)
1475
1829
  except Exception as e:
1476
1830
  safe_err = str(e).replace("\r", " ").replace("\n", " ")
1477
1831
  logger.warning("Fallback get_poule %d: %s", int(poule_id), safe_err)
1478
1832
  poule = None
1833
+
1834
+ if not poule:
1835
+ try:
1836
+ from .helpers.meilisearch_fallback import poule_from_meilisearch
1837
+
1838
+ poule = await poule_from_meilisearch(poule_id, competition_id)
1839
+ except Exception:
1840
+ poule = None
1841
+
1479
1842
  if poule:
1480
1843
  return poule
1844
+
1481
1845
  # Ne jamais laisser un cache (navigateur, HA, transients WP) figer un résultat vide.
1482
1846
  response.headers["Cache-Control"] = "no-store"
1483
1847
  return {
@@ -1505,14 +1869,38 @@ async def get_poule_classement(
1505
1869
  """Retourne le classement officiel d'une poule avec victoires, défaites, points et goal-average."""
1506
1870
  client = get_client()
1507
1871
  try:
1508
- poule = await client.get_poule_async(
1509
- poule_id,
1510
- fields=QueryFieldsManager.get_classement_fields(),
1872
+ poule = await asyncio.wait_for(
1873
+ client.get_poule_async(
1874
+ poule_id,
1875
+ fields=QueryFieldsManager.get_classement_fields(),
1876
+ ),
1877
+ timeout=6.0,
1511
1878
  )
1512
1879
  except Exception as e:
1513
1880
  safe_err = str(e).replace("\r", " ").replace("\n", " ")
1514
1881
  logger.warning("Fallback get_poule_classement %d: %s", int(poule_id), safe_err)
1515
1882
  poule = None
1883
+
1884
+ if not poule:
1885
+ try:
1886
+ from .helpers.meilisearch_fallback import poule_from_meilisearch
1887
+
1888
+ poule_hit = await poule_from_meilisearch(poule_id)
1889
+ if poule_hit and poule_hit.get("classements"):
1890
+ cls_list = poule_hit.get("classements") or []
1891
+ response.headers["Cache-Control"] = (
1892
+ "public, max-age=300, stale-while-revalidate=60"
1893
+ )
1894
+ return {
1895
+ "poule_id": poule_id,
1896
+ "nom": poule_hit.get("nom", f"Poule {poule_id}"),
1897
+ "classement": cls_list,
1898
+ "count": len(cls_list),
1899
+ "degraded": False,
1900
+ }
1901
+ except Exception:
1902
+ pass
1903
+
1516
1904
  if not poule:
1517
1905
  response.headers["Cache-Control"] = "no-store"
1518
1906
  return {
@@ -1668,6 +2056,78 @@ async def get_saisons(response: Response):
1668
2056
  raise HTTPException(status_code=500, detail=str(e))
1669
2057
 
1670
2058
 
2059
+ _ASSET_UUID_RE = re.compile(r"^[0-9a-fA-F-]{36}$")
2060
+ _asset_bytes_cache: OrderedDict[str, tuple[bytes, str]] = OrderedDict()
2061
+ _ASSET_CACHE_MAX = 256
2062
+
2063
+
2064
+ @app.get(
2065
+ "/api/v1/assets/{asset_id}",
2066
+ operation_id="getAsset",
2067
+ tags=["Clubs"],
2068
+ summary="Proxy d'assets et logos FFBB (anti-blocage BunnyCDN)",
2069
+ response_description="Image binaire du logo de club ou de compétition",
2070
+ )
2071
+ async def get_asset(
2072
+ asset_id: str = PathParam(
2073
+ ...,
2074
+ description="UUID de l'asset FFBB Directus",
2075
+ examples=["2784a7b8-1c06-4334-aa6e-16a371475971"],
2076
+ ),
2077
+ ):
2078
+ """Sert un logo/asset FFBB en contournant le blocage navigateur BunnyCDN (ERR_BLOCKED_BY_ORB / 403 FR)."""
2079
+ clean_id = asset_id.strip().lower()
2080
+ if not _ASSET_UUID_RE.match(clean_id):
2081
+ raise HTTPException(status_code=400, detail="Identifiant d'asset invalide.")
2082
+
2083
+ if clean_id in _asset_bytes_cache:
2084
+ _asset_bytes_cache.move_to_end(clean_id)
2085
+ cached_bytes, cached_media = _asset_bytes_cache[clean_id]
2086
+ return Response(
2087
+ content=cached_bytes,
2088
+ media_type=cached_media,
2089
+ headers={
2090
+ "Cache-Control": "public, max-age=31536000, immutable",
2091
+ "Access-Control-Allow-Origin": "*",
2092
+ },
2093
+ )
2094
+
2095
+ from .helpers.http_requests_utils import http_get_async
2096
+
2097
+ client = get_client()
2098
+ url = f"{API_FFBB_BASE_URL}assets/{clean_id}"
2099
+ try:
2100
+ resp = await http_get_async(
2101
+ url,
2102
+ client.api_ffbb_client.headers,
2103
+ cached_session=client.api_ffbb_client.async_cached_session,
2104
+ )
2105
+ if resp.status_code != 200 or not resp.content:
2106
+ raise HTTPException(status_code=404, detail="Asset introuvable.")
2107
+ media_type = (
2108
+ resp.headers.get("content-type", "image/jpeg").split(";")[0].strip()
2109
+ )
2110
+ if not media_type.startswith("image/"):
2111
+ raise HTTPException(status_code=404, detail="Contenu d'asset invalide.")
2112
+
2113
+ _asset_bytes_cache[clean_id] = (resp.content, media_type)
2114
+ while len(_asset_bytes_cache) > _ASSET_CACHE_MAX:
2115
+ _asset_bytes_cache.popitem(last=False)
2116
+
2117
+ return Response(
2118
+ content=resp.content,
2119
+ media_type=media_type,
2120
+ headers={
2121
+ "Cache-Control": "public, max-age=31536000, immutable",
2122
+ "Access-Control-Allow-Origin": "*",
2123
+ },
2124
+ )
2125
+ except HTTPException:
2126
+ raise
2127
+ except Exception as e:
2128
+ raise HTTPException(status_code=404, detail=f"Asset indisponible: {e}") from e
2129
+
2130
+
1671
2131
  # --------------------------------------------------------------------------
1672
2132
  # Modern API Documentation Interfaces (Scalar, Swagger UI, ReDoc)
1673
2133
  # --------------------------------------------------------------------------
@@ -90,6 +90,7 @@ class CompetitionMixin:
90
90
  self.headers,
91
91
  debug=self.debug,
92
92
  cached_session=cached_session or self.async_cached_session,
93
+ timeout=3,
93
94
  )
94
95
  actual_data = data.get("data") if data and isinstance(data, dict) else data
95
96
  if actual_data:
@@ -229,6 +230,7 @@ class CompetitionMixin:
229
230
  self.headers,
230
231
  debug=self.debug,
231
232
  cached_session=cached_session or self.async_cached_session,
233
+ timeout=3,
232
234
  )
233
235
  actual_data = data.get("data") if data and isinstance(data, dict) else data
234
236
  if actual_data:
@@ -315,6 +317,7 @@ class CompetitionMixin:
315
317
  self.headers,
316
318
  debug=self.debug,
317
319
  cached_session=cached_session or self.async_cached_session,
320
+ timeout=3,
318
321
  )
319
322
  actual_data = data.get("data") if data and isinstance(data, dict) else data
320
323
  if actual_data and isinstance(actual_data, list):