Skip to content

Commit 4622fc8

Browse files
committed
Refactor: make major and minor changes to api
Created a module package directory structure to make usage straight forward. Also added docstrings to improve module usage in scripts. Fixed typo in main class method and removed deprecated method. BREAKING CHANGE: removed deprecated method 'download_walpaper'
1 parent 7dcee50 commit 4622fc8

File tree

3 files changed

+370
-277
lines changed

3 files changed

+370
-277
lines changed

wallhavenapi.py

Lines changed: 0 additions & 277 deletions
This file was deleted.

wallhavenapi/__init__.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from .wallhavenapi import WallhavenAPI, Category, Purity, Sorting, Order, TopRange, Color, Type
2+
from .wallhavenapi import RequestsLimitError, ApiKeyError, UnhandledException, NoWallpaperError
3+
4+
__all__ = [
5+
"WallhavenAPI",
6+
"Category",
7+
"Purity",
8+
"Sorting",
9+
"Order",
10+
"TopRange",
11+
"Color",
12+
"Type",
13+
"RequestsLimitError",
14+
"ApiKeyError",
15+
"UnhandledException",
16+
"NoWallpaperError"
17+
]

0 commit comments

Comments
 (0)