pd-code-mirror 0.1.0__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.1.0"
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."}
@@ -1,42 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: pd-code-mirror
3
- Version: 0.1.0
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 of a PD code.
22
-
23
- ## Installation
24
-
25
- ```bash
26
- pip install pd-code-mirror
27
- ```
28
-
29
- ## Quick start
30
-
31
- `from pd_code_mirror import mirror_pd_code`.
32
-
33
- PD codes are lists of four-entry crossings. Each arc label must occur exactly twice. Functions validate their inputs and do not mutate caller-owned PD-code lists unless explicitly documented.
34
-
35
- ## Development
36
-
37
- Use Python 3.10 or newer for Python packages. Build distributions with `poetry build`. Run the package's tests or examples before publishing. C++ projects require a modern standards-compliant compiler.
38
-
39
- ## License
40
-
41
- MIT. See `LICENSE`.
42
-
@@ -1,23 +0,0 @@
1
- # pd-code-mirror
2
-
3
- Construct the mirror of a PD code.
4
-
5
- ## Installation
6
-
7
- ```bash
8
- pip install pd-code-mirror
9
- ```
10
-
11
- ## Quick start
12
-
13
- `from pd_code_mirror import mirror_pd_code`.
14
-
15
- PD codes are lists of four-entry crossings. Each arc label must occur exactly twice. Functions validate their inputs and do not mutate caller-owned PD-code lists unless explicitly documented.
16
-
17
- ## Development
18
-
19
- Use Python 3.10 or newer for Python packages. Build distributions with `poetry build`. Run the package's tests or examples before publishing. C++ projects require a modern standards-compliant compiler.
20
-
21
- ## License
22
-
23
- MIT. See `LICENSE`.
File without changes