pd-code-rotate 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.
- pd_code_rotate-0.1.1/PKG-INFO +64 -0
- pd_code_rotate-0.1.1/README.md +43 -0
- {pd_code_rotate-0.1.0 → pd_code_rotate-0.1.1}/pyproject.toml +1 -1
- pd_code_rotate-0.1.0/PKG-INFO +0 -44
- pd_code_rotate-0.1.0/README.md +0 -23
- {pd_code_rotate-0.1.0 → pd_code_rotate-0.1.1}/LICENSE +0 -0
- {pd_code_rotate-0.1.0 → pd_code_rotate-0.1.1}/pd_code_rotate/__init__.py +0 -0
- {pd_code_rotate-0.1.0 → pd_code_rotate-0.1.1}/pd_code_rotate/main.py +0 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pd-code-rotate
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: given a link or knot,rotate its 2d diagram by changing its pd_code.
|
|
5
|
+
License: MIT
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
Author: GGN_2015
|
|
8
|
+
Author-email: neko@jlulug.org
|
|
9
|
+
Requires-Python: >=3.10
|
|
10
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
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: Programming Language :: Python :: 3.14
|
|
17
|
+
Requires-Dist: pd-code-pre-nxt (>=0.1.0)
|
|
18
|
+
Requires-Dist: pd-code-sanity (>=0.1.0)
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
|
|
21
|
+
# pd-code-rotate
|
|
22
|
+
|
|
23
|
+
Rotate the local representation of every crossing while respecting component orientation.
|
|
24
|
+
|
|
25
|
+
## Installation
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
pip install pd-code-rotate
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Usage example
|
|
32
|
+
|
|
33
|
+
```python
|
|
34
|
+
from pd_code_rotate import rotate
|
|
35
|
+
|
|
36
|
+
pd = [[1, 5, 2, 4], [3, 1, 4, 6], [5, 3, 6, 2]]
|
|
37
|
+
print(rotate(pd))
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Algorithm
|
|
41
|
+
|
|
42
|
+
Predecessor/successor maps determine the direction of each strand. For crossing `[a,b,c,d]`, the implementation selects either `[b,a,d,c]` or `[d,c,b,a]` so the rotated crossing remains consistent with the canonical component direction. Arc incidences and crossing count are preserved.
|
|
43
|
+
|
|
44
|
+
## Input conventions
|
|
45
|
+
|
|
46
|
+
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.
|
|
47
|
+
|
|
48
|
+
## External software
|
|
49
|
+
|
|
50
|
+
No external software is required.
|
|
51
|
+
|
|
52
|
+
## Development
|
|
53
|
+
|
|
54
|
+
Run examples and package checks before release. Python packages require Python 3.10 or newer. Build PyPI artifacts with:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
poetry check
|
|
58
|
+
poetry build
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## License
|
|
62
|
+
|
|
63
|
+
MIT. See `LICENSE`.
|
|
64
|
+
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# pd-code-rotate
|
|
2
|
+
|
|
3
|
+
Rotate the local representation of every crossing while respecting component orientation.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pip install pd-code-rotate
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage example
|
|
12
|
+
|
|
13
|
+
```python
|
|
14
|
+
from pd_code_rotate import rotate
|
|
15
|
+
|
|
16
|
+
pd = [[1, 5, 2, 4], [3, 1, 4, 6], [5, 3, 6, 2]]
|
|
17
|
+
print(rotate(pd))
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Algorithm
|
|
21
|
+
|
|
22
|
+
Predecessor/successor maps determine the direction of each strand. For crossing `[a,b,c,d]`, the implementation selects either `[b,a,d,c]` or `[d,c,b,a]` so the rotated crossing remains consistent with the canonical component direction. Arc incidences and crossing count are preserved.
|
|
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`.
|
pd_code_rotate-0.1.0/PKG-INFO
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: pd-code-rotate
|
|
3
|
-
Version: 0.1.0
|
|
4
|
-
Summary: given a link or knot,rotate its 2d diagram by changing its pd_code.
|
|
5
|
-
License: MIT
|
|
6
|
-
License-File: LICENSE
|
|
7
|
-
Author: GGN_2015
|
|
8
|
-
Author-email: neko@jlulug.org
|
|
9
|
-
Requires-Python: >=3.10
|
|
10
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
-
Classifier: Programming Language :: Python :: 3
|
|
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: Programming Language :: Python :: 3.14
|
|
17
|
-
Requires-Dist: pd-code-pre-nxt (>=0.1.0)
|
|
18
|
-
Requires-Dist: pd-code-sanity (>=0.1.0)
|
|
19
|
-
Description-Content-Type: text/markdown
|
|
20
|
-
|
|
21
|
-
# pd-code-rotate
|
|
22
|
-
|
|
23
|
-
Rotate every PD crossing while preserving component orientation.
|
|
24
|
-
|
|
25
|
-
## Installation
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
pip install pd-code-rotate
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
## Quick start
|
|
32
|
-
|
|
33
|
-
`from pd_code_rotate import rotate`.
|
|
34
|
-
|
|
35
|
-
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.
|
|
36
|
-
|
|
37
|
-
## Development
|
|
38
|
-
|
|
39
|
-
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.
|
|
40
|
-
|
|
41
|
-
## License
|
|
42
|
-
|
|
43
|
-
MIT. See `LICENSE`.
|
|
44
|
-
|
pd_code_rotate-0.1.0/README.md
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# pd-code-rotate
|
|
2
|
-
|
|
3
|
-
Rotate every PD crossing while preserving component orientation.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
pip install pd-code-rotate
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Quick start
|
|
12
|
-
|
|
13
|
-
`from pd_code_rotate import rotate`.
|
|
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
|
|
File without changes
|
|
File without changes
|