ada-url 1.24.0__pp310-pypy310_pp73-win_amd64.whl → 1.29.0__pp310-pypy310_pp73-win_amd64.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.
- ada_url/__init__.py +2 -0
- ada_url/_ada_wrapper.pypy310-pp73-win_amd64.pyd +0 -0
- ada_url/ada.cpp +2527 -1931
- ada_url/ada.h +1312 -589
- ada_url/ada_adapter.py +3 -0
- ada_url/ada_c.h +10 -0
- {ada_url-1.24.0.dist-info → ada_url-1.29.0.dist-info}/METADATA +14 -15
- ada_url-1.29.0.dist-info/RECORD +14 -0
- {ada_url-1.24.0.dist-info → ada_url-1.29.0.dist-info}/WHEEL +1 -1
- ada_url-1.24.0.dist-info/RECORD +0 -14
- {ada_url-1.24.0.dist-info → ada_url-1.29.0.dist-info}/licenses/LICENSE +0 -0
- {ada_url-1.24.0.dist-info → ada_url-1.29.0.dist-info}/top_level.txt +0 -0
ada_url/ada_adapter.py
CHANGED
ada_url/ada_c.h
CHANGED
|
@@ -184,4 +184,14 @@ ada_string_pair ada_search_params_entries_iter_next(
|
|
|
184
184
|
bool ada_search_params_entries_iter_has_next(
|
|
185
185
|
ada_url_search_params_entries_iter result);
|
|
186
186
|
|
|
187
|
+
// Definitions for Ada's version number.
|
|
188
|
+
typedef struct {
|
|
189
|
+
int major;
|
|
190
|
+
int minor;
|
|
191
|
+
int revision;
|
|
192
|
+
} ada_version_components;
|
|
193
|
+
|
|
194
|
+
const char* ada_get_version();
|
|
195
|
+
ada_version_components ada_get_version_components();
|
|
196
|
+
|
|
187
197
|
#endif // ADA_C_H
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ada-url
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.29.0
|
|
4
4
|
Summary: URL parser and manipulator based on the WHAT WG URL standard
|
|
5
5
|
Author-email: Bo Bayles <bo@bbayles.com>
|
|
6
|
-
License: Apache
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
7
|
Project-URL: Homepage, https://www.ada-url.com/
|
|
8
8
|
Project-URL: Documentation, https://ada-url.readthedocs.io
|
|
9
9
|
Project-URL: Repository, https://github.com/ada-url/ada-python
|
|
10
10
|
Platform: UNKNOWN
|
|
11
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
12
11
|
Classifier: Programming Language :: Python :: 3
|
|
13
12
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
14
|
-
Requires-Python: >=3.
|
|
13
|
+
Requires-Python: >=3.10
|
|
15
14
|
Description-Content-Type: text/x-rst
|
|
16
15
|
License-File: LICENSE
|
|
17
16
|
Requires-Dist: cffi
|
|
@@ -20,9 +19,6 @@ Dynamic: license-file
|
|
|
20
19
|
ada-url
|
|
21
20
|
========
|
|
22
21
|
|
|
23
|
-
The `urlib.parse` module in Python does not follow the legacy RFC 3978 standard nor
|
|
24
|
-
does it follow the newer WHATWG URL specification. It is also relatively slow.
|
|
25
|
-
|
|
26
22
|
This is ``ada_url``, a fast standard-compliant Python library for working with URLs based on the ``Ada`` URL
|
|
27
23
|
parser.
|
|
28
24
|
|
|
@@ -46,7 +42,7 @@ Parsing URLs
|
|
|
46
42
|
^^^^^^^^^^^^
|
|
47
43
|
|
|
48
44
|
The ``URL`` class is intended to match the one described in the
|
|
49
|
-
`WHATWG URL spec <https://url.spec.whatwg.org/#url-class>`_
|
|
45
|
+
`WHATWG URL spec <https://url.spec.whatwg.org/#url-class>`_.
|
|
50
46
|
|
|
51
47
|
.. code-block:: python
|
|
52
48
|
|
|
@@ -146,7 +142,8 @@ that it properly encodes IDNs and resolves paths:
|
|
|
146
142
|
>>> parsed_url.pathname
|
|
147
143
|
'/path2/'
|
|
148
144
|
|
|
149
|
-
Contrast that with the Python standard library's ``
|
|
145
|
+
Contrast that with the Python standard library's ``urllib.parse`` module, which loosely
|
|
146
|
+
follows the older `RFC 3978 <https://datatracker.ietf.org/doc/html/rfc3978>`__ standard:
|
|
150
147
|
|
|
151
148
|
.. code-block:: python
|
|
152
149
|
|
|
@@ -157,11 +154,13 @@ Contrast that with the Python standard library's ``urlib.parse`` module:
|
|
|
157
154
|
>>> parsed_url.path
|
|
158
155
|
'/./path/../path2/'
|
|
159
156
|
|
|
160
|
-
|
|
161
|
-
|
|
157
|
+
Performance
|
|
158
|
+
-----------
|
|
162
159
|
|
|
163
160
|
This package uses `CFFI <https://github.com/ada-url/ada-python/>`__ to call
|
|
164
|
-
the ``Ada`` library's functions, which
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
161
|
+
the ``Ada`` C library's functions, which makes it faster than the Python standard
|
|
162
|
+
library's ``urllib.parse`` module for most applications.
|
|
163
|
+
|
|
164
|
+
An alternative package, `can_ada <https://github.com/tktech/can_ada>`__, uses
|
|
165
|
+
`pybind11 <https://pybind11.readthedocs.io/en/stable/>`__ to interact with the ``Ada``
|
|
166
|
+
C++ library functions, which is even faster.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
ada_url/__init__.py,sha256=XHGPLWOQlHyoDDoeAnu1wR1EkFlKgA3YM5GDI7Y6CwY,634
|
|
2
|
+
ada_url/_ada_wrapper.pypy310-pp73-win_amd64.pyd,sha256=xrIX59Nyc3cKzFaFjWO5fJqGYIS8BF4GcxASY9g--qE,501760
|
|
3
|
+
ada_url/ada.cpp,sha256=Hmwc-QtQKCYHgsePdCsUMQYRMwTUVQpV9E22z7wTxD4,994818
|
|
4
|
+
ada_url/ada.h,sha256=12MBL3V8lzVevYuezzUEyA6mH4Yy9EsjICkKwYSeal0,422930
|
|
5
|
+
ada_url/ada_adapter.py,sha256=1sT2luSxzjDB9-11cWn7IhXTypPkFrMBOE-T8A63l00,22427
|
|
6
|
+
ada_url/ada_build.py,sha256=Fp_eO9W7PQDabozwpK4eH85p2Rx4c7VutuiC3Tc7AZo,963
|
|
7
|
+
ada_url/ada_c.h,sha256=Ob60U4G1D1IlDrxGe6m6ODuZCTRpnUFZd-supREBUCY,7758
|
|
8
|
+
ada_url/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
+
ada_url-1.29.0.dist-info/licenses/LICENSE,sha256=e7_O0JIMhf0A3_J7t02xCN_XaKk4nanCV2v-0GOSVRg,1081
|
|
10
|
+
docs/conf.py,sha256=w_AXvhHSszTT69hQtPdxWEPXo3UKYlgrQLFnKpNzNMk,659
|
|
11
|
+
ada_url-1.29.0.dist-info/METADATA,sha256=7Q0_6lL2o-RviJCf_Aag9s-RinmzhkWg24ezo0tal_8,4957
|
|
12
|
+
ada_url-1.29.0.dist-info/WHEEL,sha256=qcWfyTAv0WY3hinUVEYBIPOtuNPm4_3CdID3sdYaBsQ,109
|
|
13
|
+
ada_url-1.29.0.dist-info/top_level.txt,sha256=8YlQkS2I0hQyH611C1dxEv7gVFgeljn-aQcwaQL8qcY,49
|
|
14
|
+
ada_url-1.29.0.dist-info/RECORD,,
|
ada_url-1.24.0.dist-info/RECORD
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
ada_url/__init__.py,sha256=WuHpmbotcg4pxUrxr9Gv3NHGy-6GChhSrRGNqSzk8K8,596
|
|
2
|
-
ada_url/_ada_wrapper.pypy310-pp73-win_amd64.pyd,sha256=lsEGAF3JsU2lG0ti2NA2iiT8O0DMv45KE5Q6UHjnCBc,498688
|
|
3
|
-
ada_url/ada.cpp,sha256=hU-WX0BphJ-a_h6zIHq6GZzYTMHerrzQpNkD_g74E-o,972080
|
|
4
|
-
ada_url/ada.h,sha256=z1bMTBVPtnZ2COnxkNHDIvhs7_ro26YoAX-9gFRXXvI,394548
|
|
5
|
-
ada_url/ada_adapter.py,sha256=vDPcK0dh4IQdnVv1HgFbHVpQBNB5A-p5r6vgIwdaKQw,22350
|
|
6
|
-
ada_url/ada_build.py,sha256=Fp_eO9W7PQDabozwpK4eH85p2Rx4c7VutuiC3Tc7AZo,963
|
|
7
|
-
ada_url/ada_c.h,sha256=iQ9zuDizK-5H9sN1hwTD5eNkpA0NlDM0qJt32g1gXLc,7536
|
|
8
|
-
ada_url/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
-
ada_url-1.24.0.dist-info/licenses/LICENSE,sha256=e7_O0JIMhf0A3_J7t02xCN_XaKk4nanCV2v-0GOSVRg,1081
|
|
10
|
-
docs/conf.py,sha256=w_AXvhHSszTT69hQtPdxWEPXo3UKYlgrQLFnKpNzNMk,659
|
|
11
|
-
ada_url-1.24.0.dist-info/METADATA,sha256=YLwfj-mlp484V3KpyGBv56_FXxoXB0GbwcjbKNkk5bw,5030
|
|
12
|
-
ada_url-1.24.0.dist-info/WHEEL,sha256=092FxqZvDsD2Hq3_m5wIOsQ4_e-S-rfSm6W9mNaowS4,108
|
|
13
|
-
ada_url-1.24.0.dist-info/top_level.txt,sha256=8YlQkS2I0hQyH611C1dxEv7gVFgeljn-aQcwaQL8qcY,49
|
|
14
|
-
ada_url-1.24.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|