A simple CLI tool for converting logs from Poker Now games to other formats

Overview

πŸ‚‘ 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 PokerTracker or Holdem Manager.

Poker Now Log Converter can be used to convert Poker Now logs into other formats for further analysis. (Currently supports only the PokerStars format)

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. (OpenHH Format on the way)
  • Currently supports only Texas Hold'em cash games (Omaha and tournaments on the way)
  • 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

1. Install via Pip:

$ pip install poker-now-log-converter

2. Install from Git:

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

3. Use as a script without installing

$ git clone git://github.com/charlestudor/PokerNowLogConverter
python PokerNowLogConverter/src/poker_now_log_converter/main.py

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 card 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_pokernow_files
>>> convert_pokernow_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.

You might also like...
Yts-cli-streamer - A CLI movie streaming client which works on yts.mx API written in python
Yts-cli-streamer - A CLI movie streaming client which works on yts.mx API written in python

YTSP It is a CLI movie streaming client which works on yts.mx API written in pyt

A command line application to analyse reports from TBC Warcraft Logs.

README A command line application to analyse reports from TBC Warcraft Logs. The application was written and tested with Python 3.9. Features Dumps an

Module for converting 2D Python lists to fancy ASCII tables. Table2Ascii lets you display pretty tables in the terminal and on Discord.
Module for converting 2D Python lists to fancy ASCII tables. Table2Ascii lets you display pretty tables in the terminal and on Discord.

table2ascii Module for converting 2D Python lists to a fancy ASCII/Unicode tables table2ascii πŸ“₯ Installation πŸ§‘β€πŸ’» Usage Convert lists to ASCII table

A Python module and command-line utility for converting .ANS format ANSI art to HTML

ansipants A Python module and command-line utility for converting .ANS format ANSI art to HTML. Installation pip install ansipants Command-line usage

Albert launcher extension for converting units of length, mass, speed, temperature, time, current, luminosity, printing measurements, molecular substance, and more
Albert launcher extension for converting units of length, mass, speed, temperature, time, current, luminosity, printing measurements, molecular substance, and more

unit-converter-albert-ext Extension for converting units of length, mass, speed, temperature, time, current, luminosity, printing measurements, molecu

Set of scripts & tools for converting between numbers and major system encoded words.
Set of scripts & tools for converting between numbers and major system encoded words.

major-system-converter Set of scripts & tools for converting between numbers and major system encoded words. Uses phonetics instead of letters to conv

Dead simple CLI tool to try Python packages - It's never been easier! :package:
Dead simple CLI tool to try Python packages - It's never been easier! :package:

try - It's never been easier to try Python packages try is an easy-to-use cli tool to try out Python packages. Features Install specific package versi

Simple CLI tool to track your cryptocurrency portfolio in real time.
Simple CLI tool to track your cryptocurrency portfolio in real time.

Simple tool to track your crypto portfolio in realtime. It can be used to track any coin on the BNB network, even obscure coins that are not listed or trackable by major portfolio tracking applications.

Comments
  • Possible issue with names with parentheses.

    Possible issue with names with parentheses.

    Hi thank you for creating this. I don't much coding experience at all.

    I am trying to run this.

    python3 -m poker_now_log_converter -H (eli)

    zsh: missing end of string

    Is there a way to get it to recognize names with ()?

    opened by elireznekervitz 15
  • Antes not being recognised/converted

    Antes not being recognised/converted

    I managed to convert a log to a text file using the tool but when attempting to upload to PT4 I get an "invalid pot size/winnings" error which seems to be caused when we introduced antes to the blind structure; the converter doesn't look like it reads the antes and when PT4 compares how much was put in the pot with how much was reported to have been won they don't match and so it fails to upload the hand. The antes were introduced at line 6172 of the csv file and the first error is reported at line #472 of the converted log (and every subsequent hand). I've attached both files.

    poker_now_log.csv ConvertedPNLog-2022-12-19-2002-25.0-50.0-Hold'em No Limit.txt

    I really appreciate what you've done here and am going to try to understand how it all works - I am completely new to programming - but if there's anything you can do to help that would be really useful.

    opened by Beermagic 5
Releases(v0.0.10)
Owner
null
A simple CLI based any Download Tool, that find files and let you stream or download thorugh WebTorrent CLI or Aria or any command tool

Privateer A simple CLI based any Download Tool, that find files and let you stream or download thorugh WebTorrent CLI or Aria or any command tool How

Shreyash Chavan 2 Apr 4, 2022
AWS Interactive CLI - Allows you to execute a complex AWS commands by chaining one or more other AWS CLI dependency

AWS Interactive CLI - Allows you to execute a complex AWS commands by chaining one or more other AWS CLI dependency

Rafael Torres 2 Dec 10, 2021
Sink is a CLI tool that allows users to synchronize their local folders to their Google Drives. It is similar to the Git CLI and allows fast and reliable syncs with the drive.

Sink is a CLI synchronisation tool that enables a user to synchronise local system files and folders with their Google Drives. It follows a git C

Yash Thakre 16 May 29, 2022
[WIP]An ani-cli like cli tool for movies and webseries

mov-cli A cli to browse and watch movies. Installation This project is a work in progress. However, you can try it out python git clone https://github

null 166 Dec 30, 2022
A simple automation script that logs into your kra account and files your taxes with one command

EASY_TAX A simple automation script that logs into your kra account and files your taxes with one command Currently works for Chrome users. Will creat

leon koech 13 Sep 23, 2021
3DigitDev 29 Jan 17, 2022
Python script to tabulate data formats like json, csv, html, etc

pyT PyT is a a command line tool and as well a library for visualising various data formats like: JSON HTML Table CSV XML, etc. Features Print table o

Mobolaji Abdulsalam 1 Dec 30, 2021
Convert shellcode into :sparkles: different :sparkles: formats!

Bluffy Convert shellcode into ✨ different ✨ formats! Bluffy is a utility which was used in experiments to bypass Anti-Virus products (statically) by f

pre.empt.dev 305 Dec 17, 2022
flora-dev-cli (fd-cli) is command line interface software to interact with flora blockchain.

Install git clone https://github.com/Flora-Network/fd-cli.git cd fd-cli python3 -m venv venv source venv/bin/activate pip install -e . --extra-index-u

null 14 Sep 11, 2022
Python-Stock-Info-CLI: Get stock info through CLI by passing stock ticker.

Python-Stock-Info-CLI Get stock info through CLI by passing stock ticker. Installation Use the following command to install the required modules at on

Ayush Soni 1 Nov 5, 2021