Skip to main content

A simple command line utility for converting logs from Poker Now games to other formats

Project description

🂡 Poker Now Log Converter 🂡

pypi python Build Status

A command line utility for converting logs from Poker Now games to other formats.

Introduction

Poker Now is a free online client for playing Texas Hold'em, Omaha PL and Omaha PL Hi/Lo poker.

Currently the game logs that can be downloaded from the Poker Now client are not supported by most poker analysis programs such as GTO Wizard, PokerTracker, Holdem Manager, UpSwingPoker etc

Poker Now Log Converter can be used to convert Poker Now logs into the PokerStars format for further analysis.

This project was written for my personal use, and is not affiliated, endorsed or sponsored by the Poker Now team.

Features

  • Cross platform: Windows, Mac and Linux
  • Supports log files from Poker Now version 0.1.53 (06/24/2020) to present.
  • Run from the command line, or include as a python library. (Supports >=Python 3.8)
  • Outputs log files in PokerStars format which can then be uploaded into tools such as GTO Wizard, PokerTracker etc for analysis.
  • Currently supports only Texas Hold'em cash games.
  • Can adjust log output settings such as currency and timezone.
  • Use Interactive Alias Mode from the command line to easily rename players seen during poker hands to their known aliases.

Installation

Poker Now Log Converter supports Python 3.8 to 3.11.

1. Install via Pip:

$ pip install poker-now-log-converter
$ python -m poker_now_log_converter 

2. Install from Git:

$ git clone git://github.com/charlestudor/PokerNowLogConverter
$ python setup.py install
$ python -m poker_now_log_converter 

3. Use as a script without installing

$ git clone git://github.com/charlestudor/PokerNowLogConverter
$ python ./PokerNowLogConverter

Usage

As a command line tool:

$ python -m poker_now_log_converter -h

usage: __main__.py [-h] [-o OUTPUTDIR] [-H HERONAME] [-a ALIASES] [-c CURRENCY] [-tz TIMEZONE]
               [-f FILENAME | -d DIRECTORY] [-q | -i]

optional arguments:
  -h, --help            show this help message and exit
  -o OUTPUTDIR, --outputDir OUTPUTDIR
                        Specify output directory to save logs to. Defaults to current folder.
  -H HERONAME, --heroName HERONAME
                        Specify the name of the hero. This should match an alias or unique 'name @ id' of the player
                        who cards are being dealt to.
  -a ALIASES, --aliases ALIASES
                        Specify a mapping of player ids to aliases. The format should
                        be:'player1=alias1,player2=alias2'
  -c CURRENCY, --currency CURRENCY
                        Set currency being used in games. Defaults to USD
  -tz TIMEZONE, --timezone TIMEZONE
                        Set timezone these games were recorded in. Defaults to ET
  -f FILENAME, --filename FILENAME
                        Specify PokerNow Log file to convert.
  -d DIRECTORY, --directory DIRECTORY
                        Specify directory containing PokerNow Log files to convert.
  -q, --quiet           Run converter tool without outputting to terminal.
  -i, --interactive     Use interactive mode to set the aliases of players seen in the log
  
$ python -m poker_now_log_converter -H CT -f ./PNLogExample.txt -c GBP -tz GMT -i -o ./OutputDir

As a library:

$ python
>>> from poker_now_log_converter.main import convert_poker_now_files
>>> convert_poker_now_files(hero_name="CT", input_filename="./PNLogExample.txt")

Contributing

If you find a bug please file an issue. Please upload an example log which is broken to aid in fixing.

License

MIT

Special thanks to Samuel Simões for creating Poker Now, which is a brilliant poker client.

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

poker_now_log_converter-0.0.14.tar.gz (27.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

poker_now_log_converter-0.0.14-py3-none-any.whl (27.4 kB view details)

Uploaded Python 3

File details

Details for the file poker_now_log_converter-0.0.14.tar.gz.

File metadata

File hashes

Hashes for poker_now_log_converter-0.0.14.tar.gz
Algorithm Hash digest
SHA256 6fc808f1c7e525591c6349fe79bb1afb52d73f58b60784025703307a337de8b9
MD5 4092edfac0c96df50f896a6f50c53299
BLAKE2b-256 6181e15b2c0e8a1d4793f998ae37beb6a95e8958339023be891e1ed14acc75d5

See more details on using hashes here.

File details

Details for the file poker_now_log_converter-0.0.14-py3-none-any.whl.

File metadata

File hashes

Hashes for poker_now_log_converter-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 95a9a5803016a12fcac9b8786a3dae777eccf20dfddb980c6af7ad82a0b0f73d
MD5 780d3e386fbb3e9adae9baf08b12957a
BLAKE2b-256 05899b19d9a53c3a5c4a094761499cc0c1fa9b9fb7244791248f8fb7ff802da2

See more details on using hashes here.

Supported by

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