New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

python-snookerbot

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

python-snookerbot - pypi Package Compare versions

Comparing version
1.2.0
to
1.3.0
+2
-2
PKG-INFO
Metadata-Version: 2.1
Name: python-snookerbot
Version: 1.2.0
Version: 1.3.0
Summary: Snookerbot
Home-page: https://github.com/alexander-schillemans/python-snookerbot
Download-URL: https://github.com/alexander-schillemans/python-snookerbot/archive/refs/tags/1.2.0.tar.gz
Download-URL: https://github.com/alexander-schillemans/python-snookerbot/archive/refs/tags/1.3.0.tar.gz
Author: Alexander Schillemans

@@ -8,0 +8,0 @@ Author-email: alexander.schillemans@hotmail.com

Metadata-Version: 2.1
Name: python-snookerbot
Version: 1.2.0
Version: 1.3.0
Summary: Snookerbot
Home-page: https://github.com/alexander-schillemans/python-snookerbot
Download-URL: https://github.com/alexander-schillemans/python-snookerbot/archive/refs/tags/1.2.0.tar.gz
Download-URL: https://github.com/alexander-schillemans/python-snookerbot/archive/refs/tags/1.3.0.tar.gz
Author: Alexander Schillemans

@@ -8,0 +8,0 @@ Author-email: alexander.schillemans@hotmail.com

@@ -12,3 +12,3 @@ from setuptools import setup

packages=['snookerbot', 'snookerbot.models', 'snookerbot.endpoints'],
version = '1.2.0',
version = '1.3.0',
license='GPL-3.0-or-later',

@@ -21,3 +21,3 @@ description = 'Snookerbot',

url = 'https://github.com/alexander-schillemans/python-snookerbot',
download_url = 'https://github.com/alexander-schillemans/python-snookerbot/archive/refs/tags/1.2.0.tar.gz',
download_url = 'https://github.com/alexander-schillemans/python-snookerbot/archive/refs/tags/1.3.0.tar.gz',
keywords = ['snooker', 'snooker.org', 'bot', 'snookerbot', 'api'],

@@ -24,0 +24,0 @@ install_requires=[

@@ -8,6 +8,6 @@ from .base import APIEndpoint

def __init__(self, api):
super().__init__(api, "?t=")
super().__init__(api, "")
def get_ongoing(self):
url = '{endpoint}7'.format(endpoint=self.endpoint)
url = '?t=7'

@@ -21,3 +21,3 @@ status, headers, resp = self.api.get(url)

def get_upcoming(self):
url = '{endpoint}14'.format(endpoint=self.endpoint)
url = '?t=14'

@@ -31,3 +31,3 @@ status, headers, resp = self.api.get(url)

def get_event(self, event):
url = '{endpoint}6&e={event}'.format(endpoint=self.endpoint, event=event)
url = '?t=6&e={event}'.format(event=event)

@@ -38,2 +38,15 @@ status, headers, resp = self.api.get(url)

return matches
return matches
def get(self, event_id, round_id, match_number):
url = '?e={event_id}&r={round_id}&n={match_number}'.format(
event_id=event_id,
round_id=round_id,
match_number=match_number
)
status, headers, resp = self.api.get(url)
if status == 400: return Match().parse_error(resp)
match = Match().parse(resp[0])
return match