Skip to main content

Fast Python Betfair historic data file parser

Project description

Betfair Data

Betfair Data is a fast Betfair historical data file parsing library for python. It currently supports tar archives containing BZ2 compressed NLJSON files.

Installation

pip install betfair_data

Note: requires Python >= 3.6.

Example

import betfair_data

paths = [
    "data/HistoricalDataFile1.tar",
    "data/HistoricalDataFile2.tar",
]

market_count = 0
update_count = 0

for market in betfair_data.TarBz2(paths):
    market_count += 1
    while market.update():
        update_count += 1

    print("Markets {} Updates {}".format(market_count, update_count), end='\r')

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

betfair_data-0.1.3.tar.gz (22.6 kB view hashes)

Uploaded Source

Built Distributions

betfair_data-0.1.3-cp36-abi3-win_amd64.whl (418.8 kB view hashes)

Uploaded CPython 3.6+ Windows x86-64

betfair_data-0.1.3-cp36-abi3-win32.whl (392.9 kB view hashes)

Uploaded CPython 3.6+ Windows x86

betfair_data-0.1.3-cp36-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (1.7 MB view hashes)

Uploaded CPython 3.6+ manylinux: glibc 2.17+ s390x

betfair_data-0.1.3-cp36-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (1.5 MB view hashes)

Uploaded CPython 3.6+ manylinux: glibc 2.17+ ppc64le

betfair_data-0.1.3-cp36-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl (1.5 MB view hashes)

Uploaded CPython 3.6+ manylinux: glibc 2.17+ ppc64

betfair_data-0.1.3-cp36-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (1.3 MB view hashes)

Uploaded CPython 3.6+ manylinux: glibc 2.17+ ARMv7l

betfair_data-0.1.3-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.3 MB view hashes)

Uploaded CPython 3.6+ manylinux: glibc 2.17+ ARM64

betfair_data-0.1.3-cp36-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.3 MB view hashes)

Uploaded CPython 3.6+ manylinux: glibc 2.5+ x86-64

betfair_data-0.1.3-cp36-abi3-manylinux_2_5_i686.manylinux1_i686.whl (1.4 MB view hashes)

Uploaded CPython 3.6+ manylinux: glibc 2.5+ i686

betfair_data-0.1.3-cp36-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (1.1 MB view hashes)

Uploaded CPython 3.6+ macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

betfair_data-0.1.3-cp36-abi3-macosx_10_7_x86_64.whl (540.8 kB view hashes)

Uploaded CPython 3.6+ macOS 10.7+ x86-64

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