parses scramble history from cstimer.net and other sources
Project description
scramble-history
WIP
parses scramble history from cstimer.net and other sources
TODO:
- parse scramble codes into names/enum
- allow dumping parsed data to JSON
- integrate with https://github.com/seanbreckenridge/cube-scramble-cli
Installation
Requires python3.7+
To install with pip, run:
pip install scramble_history
Usage
To use, export cstimer.net solves to a file, which scramble_history parse cstimer
accepts as input:
$ scramble_history parse cstimer ~/Downloads/cstimer_20221014_231808.txt
Use sess to review session data
In [1]: sess[0].raw_scramble_type
Out[1]: '333'
In [2]: sess[0].solves[-1]
Out[2]: Solve(scramble="D U2 F2 U' F2 R2 D B2 U' L2 F2 U2 B R U F' L U2 L2 F U'", comment='', solve_time=Decimal('25.248'), penalty=Decimal('0'), dnf=False, when=datetime.datetime(2022, 10, 15, 6, 8, 8, tzinfo=datetime.timezone.utc))
Tests
git clone 'https://github.com/seanbreckenridge/scramble-history'
cd ./scramble-history
pip install '.[testing]'
pytest
flake8 ./scramble_history
mypy ./scramble_history
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
scramble_history-0.1.0.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for scramble_history-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 991e6af185d6ed4ed3b6fa394e7644ed8feee0b3a475e64c910b7659b25e7977 |
|
MD5 | 429910c6d52b198950e11537b766a380 |
|
BLAKE2b-256 | 9bd6d84ba76d29c12fd653f8d24171452587be7e82151f649d5641bfa124acdd |