apsig 0.1.0__tar.gz → 0.1.2__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.
apsig-0.1.2/PKG-INFO ADDED
@@ -0,0 +1,31 @@
1
+ Metadata-Version: 2.1
2
+ Name: apsig
3
+ Version: 0.1.2
4
+ Summary: Signature implementation used in ActivityPub.
5
+ Author-Email: AmaseCocoa <amase.cocoa@gmail.com>
6
+ License: MIT
7
+ Classifier: Development Status :: 3 - Alpha
8
+ Classifier: Intended Audience :: Developers
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.9
12
+ Classifier: Programming Language :: Python :: 3.10
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
18
+ Classifier: Topic :: Security
19
+ Classifier: Natural Language :: English
20
+ Project-URL: Source, https://github.com/AmaseCocoa/apsig
21
+ Requires-Python: >=3.9
22
+ Requires-Dist: cryptography>=43.0.1
23
+ Requires-Dist: pynacl>=1.5.0
24
+ Requires-Dist: pyld>=2.0.4
25
+ Requires-Dist: aiohttp>=3.10.5
26
+ Description-Content-Type: text/markdown
27
+
28
+ # apsig
29
+ Signature implementation used in ActivityPub.
30
+
31
+ This library implements the creation/verification of signatures for HTTP Signatures (draft-cavage-http-signatures-12), Linked Data Signatures, and Object Integrity Proofs (FEP-8b32).
@@ -0,0 +1,48 @@
1
+ [project]
2
+ name = "apsig"
3
+ version = "0.1.2"
4
+ description = "Signature implementation used in ActivityPub."
5
+ authors = [
6
+ { name = "AmaseCocoa", email = "amase.cocoa@gmail.com" },
7
+ ]
8
+ dependencies = [
9
+ "cryptography>=43.0.1",
10
+ "pynacl>=1.5.0",
11
+ "pyld>=2.0.4",
12
+ "aiohttp>=3.10.5",
13
+ ]
14
+ classifiers = [
15
+ "Development Status :: 3 - Alpha",
16
+ "Intended Audience :: Developers",
17
+ "License :: OSI Approved :: MIT License",
18
+ "Programming Language :: Python :: 3",
19
+ "Programming Language :: Python :: 3.9",
20
+ "Programming Language :: Python :: 3.10",
21
+ "Programming Language :: Python :: 3.11",
22
+ "Programming Language :: Python :: 3.12",
23
+ "Programming Language :: Python :: 3.13",
24
+ "Operating System :: OS Independent",
25
+ "Topic :: Software Development :: Libraries :: Python Modules",
26
+ "Topic :: Security",
27
+ "Natural Language :: English",
28
+ ]
29
+ requires-python = ">=3.9"
30
+ readme = "README.md"
31
+
32
+ [project.license]
33
+ text = "MIT"
34
+
35
+ [project.urls]
36
+ Source = "https://github.com/AmaseCocoa/apsig"
37
+
38
+ [build-system]
39
+ requires = [
40
+ "pdm-backend",
41
+ ]
42
+ build-backend = "pdm.backend"
43
+
44
+ [tool.pdm]
45
+ distribution = true
46
+
47
+ [tool.pdm.scripts]
48
+ test = "python test_runner.py"
@@ -4,7 +4,7 @@ from cryptography.hazmat.primitives.asymmetric import rsa
4
4
  from cryptography.hazmat.primitives import serialization
5
5
  from cryptography.hazmat.backends import default_backend
6
6
 
7
- from http_signactures import draftSigner, draftVerifier
7
+ from apsig import draftSigner, draftVerifier
8
8
 
9
9
  class TestSignatureFunctions(unittest.TestCase):
10
10
 
@@ -1,5 +1,5 @@
1
1
  import unittest
2
- from http_signactures import JSONLDSigner
2
+ from apsig import JSONLDSigner
3
3
 
4
4
  class TestJsonLdSigner(unittest.TestCase):
5
5
 
@@ -1,7 +1,7 @@
1
1
  import unittest
2
2
  from cryptography.hazmat.primitives.asymmetric import ed25519
3
3
 
4
- from http_signactures import OIPSigner, OIPVerifier
4
+ from apsig import OIPSigner, OIPVerifier
5
5
 
6
6
  class TestOIPSignerVerifier(unittest.TestCase):
7
7
 
apsig-0.1.0/PKG-INFO DELETED
@@ -1,17 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: apsig
3
- Version: 0.1.0
4
- Summary: Signature implementation used in ActivityPub.
5
- Author-Email: AmaseCocoa <amase.cocoa@gmail.com>
6
- License: MIT
7
- Requires-Python: >=3.10
8
- Requires-Dist: cryptography>=43.0.1
9
- Requires-Dist: pynacl>=1.5.0
10
- Requires-Dist: pyld>=2.0.4
11
- Requires-Dist: aiohttp>=3.10.5
12
- Description-Content-Type: text/markdown
13
-
14
- # apsig
15
- Signature implementation used in ActivityPub.
16
-
17
- This library implements the creation/verification of signatures for HTTP Signatures (draft-cavage-http-signatures-12), Linked Data Signatures, and Object Integrity Proofs (FEP-8b32).
@@ -1,30 +0,0 @@
1
- [project]
2
- name = "apsig"
3
- version = "0.1.0"
4
- description = "Signature implementation used in ActivityPub."
5
- authors = [
6
- { name = "AmaseCocoa", email = "amase.cocoa@gmail.com" },
7
- ]
8
- dependencies = [
9
- "cryptography>=43.0.1",
10
- "pynacl>=1.5.0",
11
- "pyld>=2.0.4",
12
- "aiohttp>=3.10.5",
13
- ]
14
- requires-python = ">=3.10"
15
- readme = "README.md"
16
-
17
- [project.license]
18
- text = "MIT"
19
-
20
- [build-system]
21
- requires = [
22
- "pdm-backend",
23
- ]
24
- build-backend = "pdm.backend"
25
-
26
- [tool.pdm]
27
- distribution = true
28
-
29
- [tool.pdm.scripts]
30
- test = "python test_runner.py"
@@ -1,31 +0,0 @@
1
- import json
2
-
3
- def load_json_ld(json_ld_str):
4
- """JSON-LD文字列を辞書型にロードする"""
5
- return json.loads(json_ld_str)
6
-
7
- def apply_context(data, context):
8
- """コンテキストを適用して、プレフィックスを解決する"""
9
- if '@context' in data:
10
- context.update(data['@context'])
11
- expanded_data = {}
12
- for key, value in data.items():
13
- if key == '@context':
14
- continue
15
- expanded_key = expand_key(key, context)
16
- expanded_data[expanded_key] = value
17
- return expanded_data
18
-
19
- def expand_key(key, context):
20
- if key in context:
21
- return context[key]
22
- return key
23
-
24
- def expand(data):
25
- context = {}
26
- if '@context' in data:
27
- context = data['@context']
28
- return apply_context(data, context)
29
-
30
- def normalize(data):
31
- return json.dumps(data, indent=2)
File without changes
File without changes
File without changes