nox-cipher 1.2.0__tar.gz

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.
@@ -0,0 +1,5 @@
1
+ Metadata-Version: 2.1
2
+ Name: nox-cipher
3
+ Version: 1.2.0
4
+ Summary: Native Python bindings (CPython 3.15+ abi3t, free-threaded) for Cipher encoding and crypto utilities
5
+ Requires-Python: >=3.15
@@ -0,0 +1,10 @@
1
+ # nox-cipher
2
+
3
+ Native Python (`CPython 3.15+` `abi3t`, free-threaded `3.15t`) bindings for [cipher](https://github.com/mburakmmm/cipher).
4
+
5
+ ```python
6
+ import nox_cipher
7
+
8
+ enc = nox_cipher.encode_base64url("hello")
9
+ assert nox_cipher.decode_base64url(enc) == "hello"
10
+ ```
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "nox_cipher_bridge",
3
+ "version": "1.2.0",
4
+ "source": "nox",
5
+ "entry": "src/lib.nox",
6
+ "requires": [
7
+ {
8
+ "alias": "cipher",
9
+ "repo": "https://github.com/mburakmmm/cipher.git",
10
+ "ref": "a046dc9a6e98edaf9cbdb1b82b5cbd4b42569feb",
11
+ "require_signed_commit": false
12
+ }
13
+ ]
14
+ }
@@ -0,0 +1,27 @@
1
+ [build-system]
2
+ requires = ["noxpy>=0.7.0a2"]
3
+ build-backend = "noxpy.build"
4
+
5
+ [project]
6
+ name = "nox-cipher"
7
+ version = "1.2.0"
8
+ description = "Native Python bindings (CPython 3.15+ abi3t, free-threaded) for Cipher encoding and crypto utilities"
9
+ readme = "README.md"
10
+ license = { text = "MIT" }
11
+ requires-python = ">=3.15"
12
+
13
+ [tool.noxpy]
14
+ module-name = "nox_cipher"
15
+ source = "src/lib.nox"
16
+ backend = "llvm"
17
+ abi = "abi3t"
18
+ free-threaded = true
19
+ generate-stubs = true
20
+ export = "public"
21
+
22
+ [tool.noxpy.publish]
23
+ enabled = true
24
+ repository = "pypi"
25
+ trigger = "release-tag"
26
+ include-sdist = true
27
+ require-attestation = true
@@ -0,0 +1,41 @@
1
+ import cipher.encoding
2
+
3
+
4
+ @export
5
+ def validate_base64url_syntax(s: str) -> None:
6
+ cipher.encoding.validate_base64url_syntax(s)
7
+
8
+
9
+ @export
10
+ def encode_base64url(raw: str) -> str:
11
+ return cipher.encoding.encode_base64url(raw)
12
+
13
+
14
+ @export
15
+ def decode_base64url(encoded: str) -> str:
16
+ return cipher.encoding.decode_base64url(encoded)
17
+
18
+
19
+ @export
20
+ def is_valid_hex(hex_str: str) -> bool:
21
+ return cipher.encoding.is_valid_hex(hex_str)
22
+
23
+
24
+ @export
25
+ def hex_to_bytes(hex_str: str) -> str:
26
+ return cipher.encoding.hex_to_bytes(hex_str)
27
+
28
+
29
+ @export
30
+ def bytes_to_hex(raw: str) -> str:
31
+ return cipher.encoding.bytes_to_hex(raw)
32
+
33
+
34
+ @export
35
+ def decode_base64url_hex(encoded: str) -> str:
36
+ return cipher.encoding.decode_base64url_hex(encoded)
37
+
38
+
39
+ @export
40
+ def encode_base64url_from_hex(hex_str: str) -> str:
41
+ return cipher.encoding.encode_base64url_from_hex(hex_str)