Annotating and exporting labels
Project description
Moveread Labels
Annotating and exporting labels
Usage
import moveread.labels as lab
ann = lab.Annotations(language='DE', styles=lab.StylesNA(pawn_capture='de', piece_capture='NxN'))
lab.export(['e4', 'e5', 'Nf3', 'Nc6', 'd4', 'exd4', 'Nxd4', 'Nf6', 'Nxc6', 'bxc6'], ann)
# Right(value=['e4', 'e5', 'Sf3', 'Sc6', 'd4', 'ed', 'SxB', 'Sf6', 'SxS', 'bc'])
lab.export(['e4', 'e4'], ann)
# Left(value=IllegalMoveError("illegal san: 'e4' in rnbqkbnr/[...]"))
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
moveread_labels-0.1.0.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for moveread_labels-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3170aa35c39023f84d7b73a77b38044ad7c9f776bef2e2652b733ae48f4a72a7 |
|
MD5 | f95ed33ce7121d3c609ece4d0c1e55fb |
|
BLAKE2b-256 | 784978733e99fc36fc987342670e1bbbd8b0de76c2033eefccd471b35c0ace95 |