pd-code-mirror 0.0.1__tar.gz → 0.1.1__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,62 @@
1
+ Metadata-Version: 2.4
2
+ Name: pd-code-mirror
3
+ Version: 0.1.1
4
+ Summary: # pd_code_mirror
5
+ License: MIT
6
+ License-File: LICENSE
7
+ Author: mirror a link or knot with pd_code.
8
+ Requires-Python: >=3.10
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.10
12
+ Classifier: Programming Language :: Python :: 3.11
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Classifier: Programming Language :: Python :: 3.13
15
+ Classifier: Programming Language :: Python :: 3.14
16
+ Requires-Dist: pd-code-sanity (>=0.1.0)
17
+ Description-Content-Type: text/markdown
18
+
19
+ # pd-code-mirror
20
+
21
+ Construct the mirror image of a knot or link represented by a PD code.
22
+
23
+ ## Installation
24
+
25
+ ```bash
26
+ pip install pd-code-mirror
27
+ ```
28
+
29
+ ## Usage example
30
+
31
+ ```python
32
+ from pd_code_mirror import mirror_pd_code
33
+
34
+ pd = [[1, 5, 2, 4], [3, 1, 4, 6], [5, 3, 6, 2]]
35
+ print(mirror_pd_code(pd))
36
+ ```
37
+
38
+ ## Algorithm
39
+
40
+ Mirroring reverses the cyclic crossing order while keeping the first slot fixed: `[a,b,c,d]` becomes `[a,d,c,b]`. This switches over/under crossing information without changing arc incidences. The input and output are structurally validated, and the caller's list is not mutated.
41
+
42
+ ## Input conventions
43
+
44
+ A PD code is represented as a list of four-entry crossings. Arc labels normally occur exactly twice. Public functions validate inputs and return new values rather than mutating caller-owned data unless their API explicitly says otherwise.
45
+
46
+ ## External software
47
+
48
+ No external software is required.
49
+
50
+ ## Development
51
+
52
+ Run examples and package checks before release. Python packages require Python 3.10 or newer. Build PyPI artifacts with:
53
+
54
+ ```bash
55
+ poetry check
56
+ poetry build
57
+ ```
58
+
59
+ ## License
60
+
61
+ MIT. See `LICENSE`.
62
+
@@ -0,0 +1,43 @@
1
+ # pd-code-mirror
2
+
3
+ Construct the mirror image of a knot or link represented by a PD code.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ pip install pd-code-mirror
9
+ ```
10
+
11
+ ## Usage example
12
+
13
+ ```python
14
+ from pd_code_mirror import mirror_pd_code
15
+
16
+ pd = [[1, 5, 2, 4], [3, 1, 4, 6], [5, 3, 6, 2]]
17
+ print(mirror_pd_code(pd))
18
+ ```
19
+
20
+ ## Algorithm
21
+
22
+ Mirroring reverses the cyclic crossing order while keeping the first slot fixed: `[a,b,c,d]` becomes `[a,d,c,b]`. This switches over/under crossing information without changing arc incidences. The input and output are structurally validated, and the caller's list is not mutated.
23
+
24
+ ## Input conventions
25
+
26
+ A PD code is represented as a list of four-entry crossings. Arc labels normally occur exactly twice. Public functions validate inputs and return new values rather than mutating caller-owned data unless their API explicitly says otherwise.
27
+
28
+ ## External software
29
+
30
+ No external software is required.
31
+
32
+ ## Development
33
+
34
+ Run examples and package checks before release. Python packages require Python 3.10 or newer. Build PyPI artifacts with:
35
+
36
+ ```bash
37
+ poetry check
38
+ poetry build
39
+ ```
40
+
41
+ ## License
42
+
43
+ MIT. See `LICENSE`.
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pd-code-mirror"
3
- version = "0.0.1"
3
+ version = "0.1.1"
4
4
  description = "# pd_code_mirror"
5
5
  authors = [
6
6
  {name = "mirror a link or knot with pd_code."}
@@ -9,7 +9,7 @@ license = {text = "MIT"}
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
11
11
  dependencies = [
12
- "pd_code_sanity"
12
+ "pd-code-sanity>=0.1.0"
13
13
  ]
14
14
 
15
15
 
@@ -1,36 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: pd-code-mirror
3
- Version: 0.0.1
4
- Summary: # pd_code_mirror
5
- License: MIT
6
- License-File: LICENSE
7
- Author: mirror a link or knot with pd_code.
8
- Requires-Python: >=3.10
9
- Classifier: License :: OSI Approved :: MIT License
10
- Classifier: Programming Language :: Python :: 3
11
- Classifier: Programming Language :: Python :: 3.10
12
- Classifier: Programming Language :: Python :: 3.11
13
- Classifier: Programming Language :: Python :: 3.12
14
- Classifier: Programming Language :: Python :: 3.13
15
- Classifier: Programming Language :: Python :: 3.14
16
- Requires-Dist: pd_code_sanity
17
- Description-Content-Type: text/markdown
18
-
19
- # pd_code_mirror
20
- mirror a link or knot with pd_code.
21
-
22
- ## Install
23
-
24
- ```bash
25
- pip install pd-code-mirror
26
- ```
27
-
28
- ## Usage
29
-
30
- ```python
31
- import pd_code_mirror
32
-
33
- pd_code = [[1, 5, 2, 4], [3, 1, 4, 6], [5, 3, 6, 2]]
34
- print(pd_code_mirror.mirror_pd_code(pd_code))
35
- ```
36
-
@@ -1,17 +0,0 @@
1
- # pd_code_mirror
2
- mirror a link or knot with pd_code.
3
-
4
- ## Install
5
-
6
- ```bash
7
- pip install pd-code-mirror
8
- ```
9
-
10
- ## Usage
11
-
12
- ```python
13
- import pd_code_mirror
14
-
15
- pd_code = [[1, 5, 2, 4], [3, 1, 4, 6], [5, 3, 6, 2]]
16
- print(pd_code_mirror.mirror_pd_code(pd_code))
17
- ```
File without changes