# Path: poker/_common.py
# def _make_float(string):
#     return float(string.strip().replace(",", ""))


import attr
import requests
from lxml import etree
from .._common import _make_float


__all__ = ["get_ranked_players", "WEBSITE_URL", "RANKINGS_URL"]


WEBSITE_URL = "http://www.pocketfives.com"
RANKINGS_URL = WEBSITE_URL + "/rankings/"


@attr.s(slots=True)
class _Player:
    """Pocketfives player data."""

    name = attr.ib()
    country = attr.ib()
    triple_crowns = attr.ib(convert=int)
    monthly_win = attr.ib(convert=int)
    biggest_cash = attr.ib()
    plb_score = attr.ib(convert=_make_float)

# Path: poker/_common.py
# def _make_float(string):
#     return float(string.strip().replace(",", ""))


# Path: poker/website/pocketfives.py
import attr
import requests
from lxml import etree
from .._common import _make_float



__all__ = ["get_ranked_players", "WEBSITE_URL", "RANKINGS_URL"]


WEBSITE_URL = "http://www.pocketfives.com"
RANKINGS_URL = WEBSITE_URL + "/rankings/"


@attr.s(slots=True)
class _Player:
    """Pocketfives player data."""

    name = attr.ib()
    country = attr.ib()
    triple_crowns = attr.ib(convert=int)
    monthly_win = attr.ib(convert=int)
    biggest_cash = attr.ib()
    plb_score = attr.ib(convert=_make_float)

    biggest_score = attr.ib(convert=_make_float)