rust-pgn-reader-python-binding 3.4.0__cp314-cp314-musllinux_1_2_armv7l.whl
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.
- rust_pgn_reader_python_binding/__init__.py +5 -0
- rust_pgn_reader_python_binding/__init__.pyi +54 -0
- rust_pgn_reader_python_binding/py.typed +0 -0
- rust_pgn_reader_python_binding/rust_pgn_reader_python_binding.cpython-314-arm-linux-musleabihf.so +0 -0
- rust_pgn_reader_python_binding-3.4.0.dist-info/METADATA +7 -0
- rust_pgn_reader_python_binding-3.4.0.dist-info/RECORD +8 -0
- rust_pgn_reader_python_binding-3.4.0.dist-info/WHEEL +4 -0
- rust_pgn_reader_python_binding.libs/libgcc_s-262c4f60.so.1 +0 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
from typing import List, Optional, Tuple
|
|
2
|
+
import pyarrow
|
|
3
|
+
|
|
4
|
+
class PyUciMove:
|
|
5
|
+
from_square: int
|
|
6
|
+
to_square: int
|
|
7
|
+
promotion: Optional[int]
|
|
8
|
+
|
|
9
|
+
def __init__(
|
|
10
|
+
self, from_square: int, to_square: int, promotion: Optional[int]
|
|
11
|
+
) -> None: ...
|
|
12
|
+
@property
|
|
13
|
+
def get_from_square_name(self) -> str: ...
|
|
14
|
+
@property
|
|
15
|
+
def get_to_square_name(self) -> str: ...
|
|
16
|
+
@property
|
|
17
|
+
def get_promotion_name(self) -> Optional[str]: ...
|
|
18
|
+
def __str__(self) -> str: ...
|
|
19
|
+
def __repr__(self) -> str: ...
|
|
20
|
+
|
|
21
|
+
class PositionStatus:
|
|
22
|
+
is_checkmate: bool
|
|
23
|
+
is_stalemate: bool
|
|
24
|
+
legal_move_count: int
|
|
25
|
+
is_game_over: bool
|
|
26
|
+
insufficient_material: Tuple[bool, bool]
|
|
27
|
+
turn: bool
|
|
28
|
+
|
|
29
|
+
class MoveExtractor:
|
|
30
|
+
moves: List[PyUciMove]
|
|
31
|
+
valid_moves: bool
|
|
32
|
+
comments: List[Optional[str]]
|
|
33
|
+
evals: List[Optional[float]]
|
|
34
|
+
clock_times: List[Optional[Tuple[int, int, float]]]
|
|
35
|
+
outcome: Optional[str]
|
|
36
|
+
headers: List[Tuple[str, str]]
|
|
37
|
+
castling_rights: List[Optional[Tuple[bool, bool, bool, bool]]]
|
|
38
|
+
position_status: Optional[PositionStatus]
|
|
39
|
+
|
|
40
|
+
def __init__(self, store_legal_moves: bool = False) -> None: ...
|
|
41
|
+
def turn(self) -> bool: ...
|
|
42
|
+
def update_position_status(self) -> None: ...
|
|
43
|
+
@property
|
|
44
|
+
def legal_moves(self) -> List[List[PyUciMove]]: ...
|
|
45
|
+
|
|
46
|
+
def parse_game(pgn: str, store_legal_moves: bool = False) -> MoveExtractor: ...
|
|
47
|
+
def parse_games(
|
|
48
|
+
pgns: List[str], num_threads: Optional[int] = None, store_legal_moves: bool = False
|
|
49
|
+
) -> List[MoveExtractor]: ...
|
|
50
|
+
def parse_game_moves_arrow_chunked_array(
|
|
51
|
+
pgn_chunked_array: pyarrow.ChunkedArray,
|
|
52
|
+
num_threads: Optional[int] = None,
|
|
53
|
+
store_legal_moves: bool = False,
|
|
54
|
+
) -> List[MoveExtractor]: ...
|
|
File without changes
|
rust_pgn_reader_python_binding/rust_pgn_reader_python_binding.cpython-314-arm-linux-musleabihf.so
ADDED
|
Binary file
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: rust_pgn_reader_python_binding
|
|
3
|
+
Version: 3.4.0
|
|
4
|
+
Classifier: Programming Language :: Rust
|
|
5
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
6
|
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
7
|
+
Requires-Python: >=3.9
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
rust_pgn_reader_python_binding/__init__.py,sha256=lhSdJaKZEMrZVdzPOP73MTNFcg6hOIbqlkQ070gWYAQ,203
|
|
2
|
+
rust_pgn_reader_python_binding/__init__.pyi,sha256=Tb5LqcM2mVLGMTLU4V9XEC6Cys6MpNbhTEGudhkCPgU,1690
|
|
3
|
+
rust_pgn_reader_python_binding/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
rust_pgn_reader_python_binding/rust_pgn_reader_python_binding.cpython-314-arm-linux-musleabihf.so,sha256=aS11u5eb4WAnMvf07d2shUTfA-MjoNKdMWZ3qFd_-yk,3984369
|
|
5
|
+
rust_pgn_reader_python_binding-3.4.0.dist-info/METADATA,sha256=qpRJp2FLK-Nu3T7iy3ndQl-nvXc25mFduihIGQal8pI,279
|
|
6
|
+
rust_pgn_reader_python_binding-3.4.0.dist-info/WHEEL,sha256=K9_oCw4TGOuUrQ81lQkKk6bU7nMBUpFaHv3OtJfmhh4,108
|
|
7
|
+
rust_pgn_reader_python_binding.libs/libgcc_s-262c4f60.so.1,sha256=xPsZgCvL7EO-llmjqc5bm96baehLsO4avBqUhih0xZg,2810501
|
|
8
|
+
rust_pgn_reader_python_binding-3.4.0.dist-info/RECORD,,
|
|
Binary file
|