Skip to main content

A package to split poker history files

Project description

Poker Splitter

A package to split poker history files

Documentation Status PyPI version

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

pkrsplitter-1.1.2.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

pkrsplitter-1.1.2-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file pkrsplitter-1.1.2.tar.gz.

File metadata

  • Download URL: pkrsplitter-1.1.2.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.12

File hashes

Hashes for pkrsplitter-1.1.2.tar.gz
Algorithm Hash digest
SHA256 00cbde600b970ab14d9931641f06797846425084426d0d61f472754e6b6e36c6
MD5 a004d85ccc45f151e40e98c55ae8db35
BLAKE2b-256 6827aa2599c1c305fd10cb51788a7407f126b06a942675b245b6f248aaf66ca8

See more details on using hashes here.

File details

Details for the file pkrsplitter-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: pkrsplitter-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.12

File hashes

Hashes for pkrsplitter-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6ac31264f8e2eef3cd634b7a976c2ec8792d787dc0939ee60756703618ffd137
MD5 006057721f5cb798e1d361d1f356f2de
BLAKE2b-256 46de50248782346ea21a3f5749e3986871b7d4d2a8a1747d9fccd4de60339d4f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page