rust-pgn-reader-python-binding 3.4.0__cp314-cp314-win_amd64.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.
@@ -0,0 +1,5 @@
1
+ from .rust_pgn_reader_python_binding import *
2
+
3
+ __doc__ = rust_pgn_reader_python_binding.__doc__
4
+ if hasattr(rust_pgn_reader_python_binding, "__all__"):
5
+ __all__ = rust_pgn_reader_python_binding.__all__
@@ -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
@@ -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,7 @@
1
+ rust_pgn_reader_python_binding\__init__.py,sha256=lhSdJaKZEMrZVdzPOP73MTNFcg6hOIbqlkQ070gWYAQ,203
2
+ rust_pgn_reader_python_binding\__init__.pyi,sha256=VSaL2hWwcnmLqiQ20PmM7uRfofAVEWfRj_qPP5ddIBw,1744
3
+ rust_pgn_reader_python_binding\py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ rust_pgn_reader_python_binding\rust_pgn_reader_python_binding.cp314-win_amd64.pyd,sha256=8sLnzHphaydiGW78xwHMX5bsGfrKxZdEmFmEwEJpicI,3381760
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=TASrtxyeL-Pi7odwPBMCgR1YebCHdBFZvgqiADG_4b0,97
7
+ rust_pgn_reader_python_binding-3.4.0.dist-info\RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: maturin (1.11.5)
3
+ Root-Is-Purelib: false
4
+ Tag: cp314-cp314-win_amd64