bencoder.pyx 3.0.2__cp313-cp313-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.
Binary file
@@ -0,0 +1,145 @@
1
+ Metadata-Version: 2.4
2
+ Name: bencoder.pyx
3
+ Version: 3.0.2
4
+ Summary: Yet another bencode implementation in Cython
5
+ Home-page: https://github.com/whtsky/bencoder.pyx
6
+ Author: whtsky
7
+ Author-email: whtsky@gmail.com
8
+ License: BSDv3
9
+ Keywords: bencoding,encode,decode,bittorrent,bencode,bencoder,cython
10
+ Platform: POSIX
11
+ Platform: Windows
12
+ Classifier: Development Status :: 5 - Production/Stable
13
+ Classifier: Environment :: Other Environment
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: License :: OSI Approved :: BSD License
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Programming Language :: Cython
18
+ Classifier: Programming Language :: Python
19
+ Classifier: Programming Language :: Python :: 3
20
+ Classifier: Programming Language :: Python :: 3.10
21
+ Classifier: Programming Language :: Python :: 3.11
22
+ Classifier: Programming Language :: Python :: 3.12
23
+ Classifier: Programming Language :: Python :: 3.13
24
+ Classifier: Programming Language :: Python :: Implementation :: CPython
25
+ Classifier: Programming Language :: Python :: Implementation :: PyPy
26
+ Classifier: Intended Audience :: Developers
27
+ Classifier: Topic :: Software Development :: Libraries
28
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
29
+ Classifier: Topic :: Utilities
30
+ Requires-Python: >=3.10
31
+ License-File: LICENSE
32
+ Dynamic: author
33
+ Dynamic: author-email
34
+ Dynamic: classifier
35
+ Dynamic: description
36
+ Dynamic: home-page
37
+ Dynamic: keywords
38
+ Dynamic: license
39
+ Dynamic: license-file
40
+ Dynamic: platform
41
+ Dynamic: requires-python
42
+ Dynamic: summary
43
+
44
+ Bencoder.pyx
45
+ ============
46
+
47
+ A fast bencode implementation in Cython for Python 3.
48
+
49
+ .. image:: https://img.shields.io/pypi/l/bencoder.pyx.svg
50
+ :alt: PyPI License
51
+ :target: https://pypi.org/project/bencoder.pyx/
52
+ .. image:: https://codecov.io/gh/whtsky/bencoder.pyx/branch/master/graph/badge.svg
53
+ :alt: Codecov Coverage
54
+ :target: https://codecov.io/gh/whtsky/bencoder.pyx
55
+
56
+ Install
57
+ -------
58
+
59
+
60
+ .. code-block:: bash
61
+
62
+ pip install bencoder.pyx
63
+
64
+
65
+ Usage
66
+ -----
67
+
68
+
69
+ .. code-block:: python
70
+
71
+ from bencoder import bencode, bdecode, bdecode2
72
+
73
+ assert bencode("WWWWWW") == b'6:WWWWWW'
74
+ assert bencode(233) == b'i233e'
75
+
76
+ with open("debian-8.3.0-amd64-netinst.iso.torrent", "rb") as f:
77
+ torrent = bdecode(f.read())
78
+ print(torrent['announce'])
79
+
80
+ decoded, length = bdecode2(b'6:WWWWWWi233e')
81
+ assert decoded == b'WWWWWW'
82
+ assert length == 8
83
+
84
+ ChangeLog
85
+ ----------
86
+
87
+ Version 3.0.2
88
+ ~~~~~~~~~~~~~~~
89
+
90
+ + Drop support for Python 3.6–3.9, require Python >= 3.10
91
+ + Add support for Python 3.12 & 3.13
92
+ + Fix Cython 3 build
93
+
94
+ Version 3.0.1
95
+ ~~~~~~~~~~~~~~~
96
+
97
+ + Add support for Python 3.11
98
+
99
+ Version 3.0.0
100
+ ~~~~~~~~~~~~~~~
101
+
102
+ + Add support for Python 3.9 & 3.10
103
+ + Drop support for Python 2
104
+ + Build wheels for musl & aarch64
105
+
106
+ Version 2.0.1
107
+ ~~~~~~~~~~~~~~~
108
+
109
+ + Add support for Python 3.8
110
+ + Drop support for Python 3.4
111
+
112
+ Version 2.0.0
113
+ ~~~~~~~~~~~~~~~
114
+
115
+ + Use built-in dict instead of OrderedDict on Python >= 3.7
116
+ + Drop support for Python 3.3
117
+ + Fix bytes parsing when used with python-future `#41 <https://github.com/whtsky/bencoder.pyx/pull/41>`_
118
+
119
+ Version 1.2.1
120
+ ~~~~~~~~~~~~~~~
121
+
122
+ + Drop support for Python 2.6
123
+ + Performance boost for `bencode` method. `#7 <https://github.com/whtsky/bencoder.pyx/issues/7>`_
124
+
125
+ Version 1.2.0
126
+ ~~~~~~~~~~~~~~~
127
+
128
+ + Add `bdecode2` method. `#6 <https://github.com/whtsky/bencoder.pyx/pull/6>`_
129
+
130
+ Version 1.1.3
131
+ ~~~~~~~~~~~~~~~
132
+
133
+ + Performance Improvement
134
+ + Fix package metainfo `#3 <https://github.com/whtsky/bencoder.pyx/issues/3>`_
135
+
136
+ Version 1.1.2
137
+ ~~~~~~~~~~~~~~~
138
+
139
+ + Support encode large int
140
+
141
+ Version 1.1.0
142
+ ~~~~~~~~~~~~~~~
143
+
144
+ + Use OrderedDict instaed of dict
145
+ + Support encoding subclasses of dict
@@ -0,0 +1,6 @@
1
+ bencoder.cp313-win_amd64.pyd,sha256=RovbuOv8_JB7pueubqP1BH_DtHOgcBIE51Oo1T0rdrc,84992
2
+ bencoder_pyx-3.0.2.dist-info/licenses/LICENSE,sha256=k1RCJQVmPy_YOnU465Q4wHmCzKASBqCNIEOpHhcSXJ8,1503
3
+ bencoder_pyx-3.0.2.dist-info/METADATA,sha256=t93q8mRDzrbn59obCYSoAV6sTDSCgjMc0WiOWql8468,3794
4
+ bencoder_pyx-3.0.2.dist-info/WHEEL,sha256=Xr-hSQu17ZxKorLWItir4Mz0GplQpPFz9u2i9sztbpM,101
5
+ bencoder_pyx-3.0.2.dist-info/top_level.txt,sha256=HqPLT7amHRFwecaAv_TltA0Q4lkmxGRLZCyby-F_sD0,9
6
+ bencoder_pyx-3.0.2.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp313-cp313-win_amd64
5
+
@@ -0,0 +1,27 @@
1
+ Copyright (c) 2016, whtsky
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without
5
+ modification, are permitted provided that the following conditions are met:
6
+
7
+ * Redistributions of source code must retain the above copyright notice, this
8
+ list of conditions and the following disclaimer.
9
+
10
+ * Redistributions in binary form must reproduce the above copyright notice,
11
+ this list of conditions and the following disclaimer in the documentation
12
+ and/or other materials provided with the distribution.
13
+
14
+ * Neither the name of bencoder.pyx nor the names of its
15
+ contributors may be used to endorse or promote products derived from
16
+ this software without specific prior written permission.
17
+
18
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
22
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1 @@
1
+ bencoder