From ec997055fd98fb2710edcd78e614c14f0e88310b Mon Sep 17 00:00:00 2001 From: lunaticsm Date: Tue, 17 Sep 2024 07:09:17 +0000 Subject: [PATCH] minor fix --- README.md | 8 ++++++++ setup.py | 2 +- src/catbox/helpers.py | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b83f6a9..84de37d 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,14 @@ from catbox import CatboxUploader uploader = CatboxUploader(userhash='your_userhash_here') ``` +### Initialize without Userhash + +```python +from catbox import CatboxUploader + +uploader = CatboxUploader() +``` + ### Upload a File ```python diff --git a/setup.py b/setup.py index 908e9c7..8700e5a 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name='catbox_uploader', - version='2.7', + version='2.9', packages=find_packages(where="src"), package_dir={"": "src"}, install_requires=['requests'], diff --git a/src/catbox/helpers.py b/src/catbox/helpers.py index 0761f29..931ebf4 100644 --- a/src/catbox/helpers.py +++ b/src/catbox/helpers.py @@ -1,4 +1,5 @@ import requests +from io import BytesIO import os from .exceptions import CatboxError, TimeoutError, ConnectionError, HTTPError