From 61bcc51a164352d36cb27682c215ee6babf2172c Mon Sep 17 00:00:00 2001 From: Sasen Perera Date: Wed, 22 Jun 2022 12:24:23 +0530 Subject: [PATCH] updated init and Version --- pyproject.toml | 2 +- setup.py | 2 +- xkcd_python/__init__.py | 4 +++- xkcd_python/xkcd.py | 4 ++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 185e9a7..66ec39d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "xkcd-python" -version = "2.0.5" +version = "2.1.0" description = "A wrapper for xkcd.com's API. Built Using Python." authors = ["Sasen Perera "] license = "MIT" diff --git a/setup.py b/setup.py index 11454c2..7022f75 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup( # the name must match the folder name 'verysimplemodule' name= "xkcd_python", - version= "2.5", + version= "2.1.0", author= xkcd_python.__author__, author_email= "sasen.learnings@gmail.com", description= xkcd_python.__shot_des__, diff --git a/xkcd_python/__init__.py b/xkcd_python/__init__.py index 6180ffe..2e40ccf 100644 --- a/xkcd_python/__init__.py +++ b/xkcd_python/__init__.py @@ -1,4 +1,6 @@ -__version__ = '2.0.5' +from xkcd import Client + +__version__ = '2.1.0' __author__ = "Sasen Perera" __shot_des__ = "A python wrapper for xkcd.com" __description__ = "A wrapper for xkcd.com's API. Built Using Python." \ No newline at end of file diff --git a/xkcd_python/xkcd.py b/xkcd_python/xkcd.py index 3150046..2f3cfb7 100644 --- a/xkcd_python/xkcd.py +++ b/xkcd_python/xkcd.py @@ -11,10 +11,10 @@ def random(self = None): random_comic = request("GET", f"https://xkcd.com/{comic_id}/info.0.json") return random_comic.json() - def get(self, id: int): + def get(id: int, self = None): comic = request("GET", f"https://xkcd.com/{id}/info.0.json") return comic.json() - def latest_comic(self): + def latest_comic(self = None): comic = request("Get", f"https://xkcd.com/info.0.json") return comic.json \ No newline at end of file