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.4.tar.gz
.
File metadata
- Download URL: pkrsplitter-1.1.4.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 | 2d55c196f1bafb0d9733ca3fbfa496024f64006b343714a87a0ecfebcbae3d7e |
|
MD5 | 41a9e861a9b41fde9db56a3c4b3869bc |
|
BLAKE2b-256 | d02eb16ea033045cc72a7f35a15b25d74c1505ed184affd729bc3d66aee500d1 |
File details
Details for the file pkrsplitter-1.1.4-py3-none-any.whl
.
File metadata
- Download URL: pkrsplitter-1.1.4-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 | f814212c1ea7c6965612ae7a37b2d8c57696c1f19b11bad37963e5892297e7ed |
|
MD5 | 633f15a0e0a3bff0a7cd5bc86354e921 |
|
BLAKE2b-256 | cfa8f484775ce011769ea3202c5c91f480aebdac5c1ace2e89d3abd5e4120718 |