apitally 0.11.0__py3-none-any.whl → 0.11.1__py3-none-any.whl

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.
apitally/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.11.0"
1
+ __version__ = "0.11.1"
apitally/django.py CHANGED
@@ -252,7 +252,9 @@ def _get_drf_schema(urlconfs: List[Optional[str]]) -> Optional[Dict[str, Any]]:
252
252
  from rest_framework.schemas.openapi import SchemaGenerator
253
253
 
254
254
  schemas = []
255
- with contextlib.suppress(AssertionError): # uritemplate and inflection must be installed for OpenAPI schema support
255
+ # AssertionError is raised if uritemplate or inflection are not installed (required for OpenAPI schema support)
256
+ # AttributeError is raised if app is using CoreAPI schema (deprecated) instead of OpenAPI
257
+ with contextlib.suppress(AssertionError, AttributeError):
256
258
  for urlconf in urlconfs:
257
259
  generator = SchemaGenerator(urlconf=urlconf)
258
260
  schema = generator.get_schema()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: apitally
3
- Version: 0.11.0
3
+ Version: 0.11.1
4
4
  Summary: Simple API monitoring & analytics for REST APIs built with FastAPI, Flask, Django, Starlette and Litestar.
5
5
  Home-page: https://apitally.io
6
6
  License: MIT
@@ -29,7 +29,8 @@ Provides-Extra: litestar
29
29
  Provides-Extra: sentry
30
30
  Provides-Extra: starlette
31
31
  Requires-Dist: backoff (>=2.0.0)
32
- Requires-Dist: django (>=2.2) ; extra == "django-ninja" or extra == "django-rest-framework"
32
+ Requires-Dist: django (>=2.2) ; (python_version >= "3.10") and (extra == "django-ninja" or extra == "django-rest-framework")
33
+ Requires-Dist: django (>=2.2,<5) ; (python_version < "3.10") and (extra == "django-ninja" or extra == "django-rest-framework")
33
34
  Requires-Dist: django-ninja (>=0.18.0) ; extra == "django-ninja"
34
35
  Requires-Dist: djangorestframework (>=3.10.0) ; extra == "django-rest-framework"
35
36
  Requires-Dist: fastapi (>=0.87.0) ; extra == "fastapi"
@@ -1,11 +1,11 @@
1
- apitally/__init__.py,sha256=raMu9XA9JEjvdoTmFqcOw7qhJX24rYDP7XmS59TAO-Q,23
1
+ apitally/__init__.py,sha256=G9OFdL1v_4dLDfk6I6taDNypM5bbO-JHAwilsu9LYgg,23
2
2
  apitally/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  apitally/client/asyncio.py,sha256=7Q1LRENXdN69pmRHc3IXdxWVKoWrfYoJiImj4ufyLcw,4692
4
4
  apitally/client/base.py,sha256=IbAyC1VCONGA1B_Wj0jM82pkAn_cnVKe_iqR5xy3Zp0,15299
5
5
  apitally/client/logging.py,sha256=QMsKIIAFo92PNBUleeTgsrsQa7SEal-oJa1oOHUr1wI,507
6
6
  apitally/client/threading.py,sha256=tgADSLbqQFnf5JqFmDT3ul3Jch00jZtU2MUJmOP22A4,5085
7
7
  apitally/common.py,sha256=GbVmnXxhRvV30d7CfCQ9r0AeXj14Mv9Jm_Yd1bRWP28,1088
8
- apitally/django.py,sha256=J4dLh3vYFFm3bKgoQesGmghRmPDV5sOU2DpC6OxvW-Y,13612
8
+ apitally/django.py,sha256=vqBloQH4WaxvIlVpDZoazPcj5ljFapi1kvUHRgkd0O4,13763
9
9
  apitally/django_ninja.py,sha256=dqQtnz2s8YWYHCwvkK5BjokjvpZJpPNhP0vng4kFtrQ,120
10
10
  apitally/django_rest_framework.py,sha256=dqQtnz2s8YWYHCwvkK5BjokjvpZJpPNhP0vng4kFtrQ,120
11
11
  apitally/fastapi.py,sha256=hEyYZsvIaA3OXZSSFdey5iqeEjfBPHgfNbyX8pLm7GI,123
@@ -13,7 +13,7 @@ apitally/flask.py,sha256=KZxWN1xeXUazYYluu3aoKkZQ_aRljHmtjZi1AxvzpGw,6402
13
13
  apitally/litestar.py,sha256=sQcrHw-JV9AlpnXlrczmaDe0k6tD9PYQsc8nyQul8Ko,8802
14
14
  apitally/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
15
  apitally/starlette.py,sha256=ib73Xe8GUMDwR4uREZsJjtmJtgk7uNEiINr9ex3Atm0,8612
16
- apitally-0.11.0.dist-info/LICENSE,sha256=vbLzC-4TddtXX-_AFEBKMYWRlxC_MN0g66QhPxo8PgY,1065
17
- apitally-0.11.0.dist-info/METADATA,sha256=822XloDi47QyB8-wm7sWbNwMU9BQ7n7BVuszSwEXDvc,6834
18
- apitally-0.11.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
19
- apitally-0.11.0.dist-info/RECORD,,
16
+ apitally-0.11.1.dist-info/LICENSE,sha256=vbLzC-4TddtXX-_AFEBKMYWRlxC_MN0g66QhPxo8PgY,1065
17
+ apitally-0.11.1.dist-info/METADATA,sha256=IRzmUT79oBBhO_hZHUI5-b7bpx9GTyjY1PGWpM-rqIo,6994
18
+ apitally-0.11.1.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
19
+ apitally-0.11.1.dist-info/RECORD,,