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