A package to split poker history files
Project description
Poker Splitter
A package to split poker history files
Table of Contents
Description
A package to split poker history files Currently only supports Winamax history files
Setup
From PyPi:
pip install pkrsplitter
From source:
git clone https://github.com/manggy94/PokerSplitter.git
cd PokerSplitter
Add a .env file in the root directory with the following content:
DATA_DIR=path/to/data/dir
BUCKET_NAME=your_bucket_name on s3
You can also directly set the environment variable in your system.
Usage
Basic Usage from the command line:
# Split all files in the directory to local split directory
python -m pkrsplitter.runs.local.split_files
# split only the files that have not been split yet from S3 raw histories to S3 split histories
python -m pkrsplitter.runs.s3.split_new_files
Usage in a script:
from pkrsplitter.splitters.local import LocalFileSplitter
splitter = LocalFileSplitter(data_dir='path/to/data/dir')
splitter.split_files()
You can choose to split all the files in the directory or only the files that have not been split yet.:
from pkrsplitter.splitters.local import LocalFileSplitter
splitter = LocalFileSplitter(data_dir='path/to/data/dir')
splitter.split_new_files()
This will result in overwriting the files if they already exist in the split directory. The same can be done considering splitting only raw histories that have never been split before:
from pkrsplitter.splitters.local import LocalFileSplitter
splitter = LocalFileSplitter(data_dir='path/to/data/dir')
splitter.split_new_histories()
We can also replace the LocalFileSplitter with the S3FileSplitter to split files from an S3 bucket:
License
This project is licensed under the MIT License - You can check out the full license here
Documentation
The documentation can be found here
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
Built Distribution
File details
Details for the file pkrsplitter-1.1.3.tar.gz
.
File metadata
- Download URL: pkrsplitter-1.1.3.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb0b38af440628ee5a4f34a78fc66b660296a1296f3019bda4b331ccfd7b76a4 |
|
MD5 | 8b57548868d92051afce987dac648f95 |
|
BLAKE2b-256 | 9cf0bdd810483ae8fe5ed31a003dbd851cb204fc5f0bec8aea898d8f582c7223 |
File details
Details for the file pkrsplitter-1.1.3-py3-none-any.whl
.
File metadata
- Download URL: pkrsplitter-1.1.3-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01a92368950d62373190c63578a5a520c1acafb3c159b62997f53d65d60e478e |
|
MD5 | 859c798348128cd2f5ce1a77ec61d8ed |
|
BLAKE2b-256 | f8bc9db12bfdbe94fcc1df9dcf6e95aef611f72a47124f44319e17bd877f394f |