apitally 0.3.1__py3-none-any.whl → 0.3.2__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.3.
|
1
|
+
__version__ = "0.3.2"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: apitally
|
3
|
-
Version: 0.3.
|
3
|
+
Version: 0.3.2
|
4
4
|
Summary: Apitally client library for Python
|
5
5
|
Home-page: https://docs.apitally.io
|
6
6
|
License: MIT
|
@@ -30,7 +30,7 @@ Requires-Dist: fastapi (>=0.87.0) ; extra == "fastapi"
|
|
30
30
|
Requires-Dist: flask (>=2.0.0) ; extra == "flask"
|
31
31
|
Requires-Dist: httpx (>=0.22.0) ; extra == "fastapi" or extra == "starlette"
|
32
32
|
Requires-Dist: requests (>=2.26.0) ; extra == "django-rest-framework" or extra == "django-ninja" or extra == "flask"
|
33
|
-
Requires-Dist: starlette (>=0.21.0) ; extra == "fastapi" or extra == "starlette"
|
33
|
+
Requires-Dist: starlette (>=0.21.0,<1.0.0) ; extra == "fastapi" or extra == "starlette"
|
34
34
|
Project-URL: Documentation, https://docs.apitally.io
|
35
35
|
Project-URL: Repository, https://github.com/apitally/python-client
|
36
36
|
Description-Content-Type: text/markdown
|
@@ -45,7 +45,7 @@ Description-Content-Type: text/markdown
|
|
45
45
|
|
46
46
|
<p align="center"><b>Your refreshingly simple REST API companion.</b></p>
|
47
47
|
|
48
|
-
<p align="center"><i>Apitally offers
|
48
|
+
<p align="center"><i>Apitally offers busy engineering teams a simple and affordable API monitoring and API key management solution that is easy to set up and use with new and existing API projects.</i></p>
|
49
49
|
|
50
50
|
<p align="center">🔗 <b><a href="https://apitally.io" target="_blank">apitally.io</a></b></p>
|
51
51
|
|
@@ -53,13 +53,13 @@ Description-Content-Type: text/markdown
|
|
53
53
|
|
54
54
|
---
|
55
55
|
|
56
|
-
# Apitally client for Python
|
56
|
+
# Apitally client library for Python
|
57
57
|
|
58
58
|
[](https://github.com/apitally/python-client/actions)
|
59
59
|
[](https://codecov.io/gh/apitally/python-client)
|
60
60
|
[](https://pypi.org/project/apitally/)
|
61
61
|
|
62
|
-
This client library currently supports the following frameworks:
|
62
|
+
This client library for Apitally currently supports the following Python web frameworks:
|
63
63
|
|
64
64
|
- [FastAPI](https://docs.apitally.io/frameworks/fastapi)
|
65
65
|
- [Starlette](https://docs.apitally.io/frameworks/starlette)
|
@@ -67,6 +67,14 @@ This client library currently supports the following frameworks:
|
|
67
67
|
- [Django Ninja](https://docs.apitally.io/frameworks/django-ninja)
|
68
68
|
- [Django REST Framework](https://docs.apitally.io/frameworks/django-rest-framework)
|
69
69
|
|
70
|
+
Learn more about Apitally on our 🌎 [website](https://apitally.io) or check out the 📚 [documentation](https://docs.apitally.io).
|
71
|
+
|
72
|
+
## Key features
|
73
|
+
|
74
|
+
- Middleware for different frameworks to capture metadata about API endpoints, requests and responses (no sensitive data is captured)
|
75
|
+
- Non-blocking clients that aggregate and send captured data to Apitally and optionally synchronize API key hashes in 1 minute intervals
|
76
|
+
- Functions to easily secure endpoints with API key authentication and permission checks
|
77
|
+
|
70
78
|
## Install
|
71
79
|
|
72
80
|
Use `pip` to install and provide your framework of choice as an extra, for example:
|
@@ -79,10 +87,12 @@ The available extras are: `fastapi`, `starlette`, `flask`, `django_ninja` and `d
|
|
79
87
|
|
80
88
|
## Usage
|
81
89
|
|
82
|
-
|
90
|
+
Our [setup guides](https://docs.apitally.io/quickstart) include all the details you need to get started.
|
83
91
|
|
84
92
|
### FastAPI
|
85
93
|
|
94
|
+
This is an example of how to add the Apitally middleware to a FastAPI application. For further instructions, see our [setup guide for FastAPI](https://docs.apitally.io/frameworks/fastapi).
|
95
|
+
|
86
96
|
```python
|
87
97
|
from fastapi import FastAPI
|
88
98
|
from apitally.fastapi import ApitallyMiddleware
|
@@ -97,6 +107,8 @@ app.add_middleware(
|
|
97
107
|
|
98
108
|
### Starlette
|
99
109
|
|
110
|
+
This is an example of how to add the Apitally middleware to a Starlette application. For further instructions, see our [setup guide for Starlette](https://docs.apitally.io/frameworks/starlette).
|
111
|
+
|
100
112
|
```python
|
101
113
|
from starlette.applications import Starlette
|
102
114
|
from apitally.starlette import ApitallyMiddleware
|
@@ -111,6 +123,8 @@ app.add_middleware(
|
|
111
123
|
|
112
124
|
### Flask
|
113
125
|
|
126
|
+
This is an example of how to add the Apitally middleware to a Flask application. For further instructions, see our [setup guide for Flask](https://docs.apitally.io/frameworks/flask).
|
127
|
+
|
114
128
|
```python
|
115
129
|
from flask import Flask
|
116
130
|
from apitally.flask import ApitallyMiddleware
|
@@ -125,6 +139,8 @@ app.wsgi_app = ApitallyMiddleware(
|
|
125
139
|
|
126
140
|
### Django Ninja
|
127
141
|
|
142
|
+
This is an example of how to add the Apitally middleware to a Django Ninja application. For further instructions, see our [setup guide for Django Ninja](https://docs.apitally.io/frameworks/django-ninja).
|
143
|
+
|
128
144
|
In your Django `settings.py` file:
|
129
145
|
|
130
146
|
```python
|
@@ -140,6 +156,8 @@ APITALLY_MIDDLEWARE = {
|
|
140
156
|
|
141
157
|
### Django REST Framework
|
142
158
|
|
159
|
+
This is an example of how to add the Apitally middleware to a Django REST Framework application. For further instructions, see our [setup guide for Django REST Framework](https://docs.apitally.io/frameworks/django-rest-framework).
|
160
|
+
|
143
161
|
In your Django `settings.py` file:
|
144
162
|
|
145
163
|
```python
|
@@ -155,7 +173,7 @@ APITALLY_MIDDLEWARE = {
|
|
155
173
|
|
156
174
|
## Getting help
|
157
175
|
|
158
|
-
If you need help please
|
176
|
+
If you need help please [create a new discussion](https://github.com/orgs/apitally/discussions/categories/q-a) on GitHub.
|
159
177
|
|
160
178
|
## License
|
161
179
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
apitally/__init__.py,sha256=
|
1
|
+
apitally/__init__.py,sha256=vNiWJ14r_cw5t_7UDqDQIVZvladKFGyHH2avsLpN7Vg,22
|
2
2
|
apitally/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
3
|
apitally/client/asyncio.py,sha256=uq1mK3LHSxhpvMY6FT-k9qzWced-v-bmuweBjXMBqkQ,5925
|
4
4
|
apitally/client/base.py,sha256=L_9mbabVDikBG0fYOUu-l1y0VjdsZ2qLu9VSmcQveTM,10622
|
@@ -11,7 +11,7 @@ apitally/fastapi.py,sha256=YjnrRis8UG2M6Q3lkwizbtDXU7nPfCA4mebxG8XwveY,3334
|
|
11
11
|
apitally/flask.py,sha256=7RI1odLYPRmlkQc-OU1HZJoHZxx2n249ftgsklpx2bM,6559
|
12
12
|
apitally/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
13
13
|
apitally/starlette.py,sha256=C5Mz77BV33jp3HpmDko5Bjl2t7lxq_WUC6Nj3pcX1AU,9771
|
14
|
-
apitally-0.3.
|
15
|
-
apitally-0.3.
|
16
|
-
apitally-0.3.
|
17
|
-
apitally-0.3.
|
14
|
+
apitally-0.3.2.dist-info/LICENSE,sha256=vbLzC-4TddtXX-_AFEBKMYWRlxC_MN0g66QhPxo8PgY,1065
|
15
|
+
apitally-0.3.2.dist-info/METADATA,sha256=DR6-sdXPUywSoGGFf4M0OiDmoszGRW_BKqCuACh2ekc,6745
|
16
|
+
apitally-0.3.2.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
17
|
+
apitally-0.3.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|