LogoLogo
PAO DocsCommunity DocsDeveloper DocsPeerplays.com
  • Infrastructure Documentation
  • The Basics
    • Peerplays Node Types
    • Hardware Requirements
    • Obtaining private keys for cli_wallet
    • Using the CLI Wallet
      • CLI Wallet Fundamentals
      • CLI Commands for All Nodes
      • CLI Commands for Witnesses
      • CLI Commands for SONs
        • Updated CLI commands for SON voting
      • Deriving Keys using CLI Wallet
    • Auto-Starting a Node
    • Backup Servers
    • Obtaining Your First Tokens
    • Updating a Witness Node
    • How to create a Peerplays Account?
  • Advanced Topics
    • Private Testnets
      • Peerplays QA environment
      • Private Testnets - Manual Install
    • Reverse Proxy for Enabling SSL
    • Enabling Elasticsearch on a Node
    • Introduction to Faucet
  • Witnesses
    • What is a Witness node?
    • Installation Guides
      • Build and Install
      • Docker Install
      • GitLab Artifact Install
    • How to become a block producing witness?
    • Other Ways to configure a witness node
      • Peerplays API nodes & Installation Guide
      • Configuring Witness Node as Delayed Node
    • What's Next?
  • Sidechain Operator Nodes (SONs)
    • Installation Guides
      • Manual Install
      • Docker Install
      • SON Configuration - Version 1.5.19
      • SON configuration - Version 1.6.0
      • Bitcoin-SONs Sanity Checks
      • ETH-SONs Configuration & Installation
      • Existing SON node upgrade
  • Bookie Oracle Suite (BOS)
    • Introduction to BOS
    • BOS Installation
      • Installing MongoDB
      • Installing Redis
      • Configuration of bos-auto
      • Spinning Up bos-auto
    • BookieSports
      • Installing Bookiesports
      • Synchronizing BOS with BookieSports
      • BookieSports Module Contents
        • Sub Modules
      • Schema
      • Naming Scheme
    • Manual Intervention Tool (MINT)
      • Installing MINT
      • Introduction
  • DATA PROXIES
    • Introduction to Data Proxies
    • How Data Proxies Work
    • Data Proxy Set Up
  • COUCH POTATO
    • Installation
    • Functional Requirements
      • Flow Diagrams
      • Home Page
      • Create Account
      • Dashboard
        • Header
        • Sports Tabs
        • League Tabs
        • Calendar
        • Notifications
        • Replay
        • Account Menu
      • Game Selector
      • Change Password
    • Help
      • User Guide
        • Introduction
        • Home Page
        • Creating an Account
        • Dashboard
          • Replay
          • Account Menu
            • Change Password
        • Game Selector
    • Database
      • Schema
      • Objects
        • Tables
        • Views
    • API
      • Using the API
      • API Reference
        • Objects
        • Error Codes
      • BOS Schema
    • Proxy Payment Considerations
  • Other Documentation
    • Peerplays Home
    • Community Docs
    • Developer Docs
    • Site Reliability Engineering
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Bookie Oracle Suite (BOS)
  2. BookieSports

BookieSports Module Contents

class bookiesports.BookieSports(chain=None, override_cache=False, **kwargs)

Bases: dict

This class allows to read the data provided by BookieSports

On instantiation of this class the following procedure happens internally:

  1. Open the directory that stores the sports

  2. Load all Sports

  3. For each sport, load the corresponding data subset (event groups, events, rules, participants, etc.)

  4. Validate each data subset

  5. Perform consistency checks

  6. Instantiate a dictionary (self)

As a result, the following call will return a dictionary with all the BookieSports:

from bookiesports 
import BookieSports x = BookieSports()

Parameters:

  • chain (string) – One out ‘alice’, ‘beatrice’, or ‘charlie’ to identify which network we are working with. Can also be a relative path to a locally stored copy of a sports folder

  • override_cache (string) – if true, cache is ignored and sports folder is forcibly reloaded and put into cache

  • network (string) – deprecated, please use chain

Note: It is possible to overload a custom sports_folder by providing it to BookieSports as parameter.

BASE_FOLDER = '/home/docs/checkouts/readthedocs.org/user_builds/bookiesports/envs/latest/lib/python3.7/site-packages/bookiesports-0.4.10-py3.7.egg/bookiesports/bookiesports'

CHAIN_CACHE = {}

Singelton to store data and prevent re- reading if BookieSports is instantiated multiple times

DEFAULT_CHAIN = 'beatrice'

JSON_SCHEMA = None

Schema for validation of the data

SPORTS_FOLDER = None

chain_id

static list_chains()

static list_networks()

@deprecated, use list_chains

network

@deprecated, use self.index

network_name

@deprecated, use self.chain

PreviousSynchronizing BOS with BookieSportsNextSub Modules

Last updated 2 years ago

Was this helpful?

static version()

¶