Skip to content
This repository was archived by the owner on Oct 20, 2022. It is now read-only.

Commit a35d1a6

Browse files
Remove unused dependencies, change home() to get_home(), and upgrade version
1 parent c178f7c commit a35d1a6

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Python library for interacting with the Meower API
33
## Commands
44
- `meower.repair()` - Checks if the server is in repair mode
55
- `meower.post_id(num)` - A very misleading name. Downloads home, then finds the post number
6-
- `meower.home()` - Downloads home
6+
- `meower.get_home()` - Downloads home
77
- `meower.home_len()` - Shows the number of posts on home
88
- `meower.get_post(str)` - Gets the specified post, and shows in `username: post` format
99
- `meower.page_len()` - Shows the number of home pages
@@ -19,4 +19,9 @@ pip3 install meower
1919
### Windows
2020
```
2121
py -m pip install meower
22+
```
23+
## Usage
24+
For some reason (maybe because of the lack of a class), you can't use the traditional `import meower` method. Instead, use:
25+
```python
26+
from meower import meower
2227
```

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = meower
3-
version = 0.0.2
3+
version = 0.0.3
44
author = M.D. Walters
55
author_email = [email protected]
66
description = Python library for interacting with the Meower API

src/meower/meower.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from requests import get
22
import json
3-
from stopwatch import Stopwatch, profile
3+
from stopwatch import Stopwatch
44

55
page = 1
66
stopwatch = Stopwatch()
@@ -21,7 +21,7 @@ def post_id(id):
2121
except json.decoder.JSONDecodeError:
2222
pass
2323

24-
def home():
24+
def get_home():
2525
home = get(f"https://api.meower.org/home?page={page}").text
2626
try:
2727
load = json.loads(home)

0 commit comments

Comments
 (0)