ada-url 1.22.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/ada_adapter.py CHANGED
@@ -754,3 +754,6 @@ class idna:
754
754
  idna_to_unicode = idna.decode
755
755
 
756
756
  idna_to_ascii = idna.encode
757
+
758
+ def get_version():
759
+ return ffi.string(lib.ada_get_version()).decode()
ada_url/ada_build.py CHANGED
@@ -9,6 +9,7 @@ compile_args = ['/std:c++20'] if platform == 'win32' else ['-std=c++20']
9
9
 
10
10
  ada_obj = Extension(
11
11
  'ada',
12
+ define_macros=[('ADA_INCLUDE_URL_PATTERN', '0')],
12
13
  language="c++",
13
14
  sources=['ada_url/ada.cpp'],
14
15
  include_dirs=[file_dir],
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.22.0
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 2.0
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.9
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 ``urlib.parse`` module:
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
- Alternative Python bindings
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 has a performance cost.
165
- The alternative `can_ada <https://github.com/tktech/can_ada>`__ (Canadian Ada)
166
- package uses `pybind11 <https://pybind11.readthedocs.io/en/stable/>`__ to generate a
167
- Python extension module, which is more performant.
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,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (78.1.0)
2
+ Generator: setuptools (80.10.2)
3
3
  Root-Is-Purelib: false
4
4
  Tag: pp310-pypy310_pp73-win_amd64
5
5
 
@@ -1,14 +0,0 @@
1
- ada_url/__init__.py,sha256=WuHpmbotcg4pxUrxr9Gv3NHGy-6GChhSrRGNqSzk8K8,596
2
- ada_url/_ada_wrapper.pypy310-pp73-win_amd64.pyd,sha256=UhRy6kVRkZqwSMyn7cdmfZ4P06YKFskisZgz0qhuAwo,496128
3
- ada_url/ada.cpp,sha256=bBOzBOPwnTkQTqpYAReWoxrpx1JGSNrlH-BTb_I0Z38,968269
4
- ada_url/ada.h,sha256=xb7uSltlgvR22Suda7gu410CYYZWqvmhGW0sj0_2g_E,394494
5
- ada_url/ada_adapter.py,sha256=vDPcK0dh4IQdnVv1HgFbHVpQBNB5A-p5r6vgIwdaKQw,22350
6
- ada_url/ada_build.py,sha256=OzA4HFzdet_zRcGsRlyHsIoXjUqVWNyhLvdv55FJq6U,908
7
- ada_url/ada_c.h,sha256=iQ9zuDizK-5H9sN1hwTD5eNkpA0NlDM0qJt32g1gXLc,7536
8
- ada_url/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
- ada_url-1.22.0.dist-info/licenses/LICENSE,sha256=e7_O0JIMhf0A3_J7t02xCN_XaKk4nanCV2v-0GOSVRg,1081
10
- docs/conf.py,sha256=w_AXvhHSszTT69hQtPdxWEPXo3UKYlgrQLFnKpNzNMk,659
11
- ada_url-1.22.0.dist-info/METADATA,sha256=CJQVmsXE-kfiTBtp5JoNdQQNZHLiXM6JcPStq-kxGec,5030
12
- ada_url-1.22.0.dist-info/WHEEL,sha256=Dto7XZiEuX4q87kHK_nY4q-ctRtlLXSf6Uefou7VrA8,108
13
- ada_url-1.22.0.dist-info/top_level.txt,sha256=8YlQkS2I0hQyH611C1dxEv7gVFgeljn-aQcwaQL8qcY,49
14
- ada_url-1.22.0.dist-info/RECORD,,