API wraper for rule34.xxx
Project description
Getting Started
Install it using pip
pip install rule34py
Building it from Source
git clone https://github.com/b3yc0d3/rule34Py.git
cd rule34Py
python3 -m build
Documentation
You can find the documentation here.
[!NOTE] The documentation might move in the future.
Code Snippet
from rule34Py import rule34Py
r34Py = rule34Py()
# get comments of an post
r34Py.get_comments(4153825)
# get post by its id
r34Py.get_post(4153825)
# get top 100 icame
r34Py.icame()
# search for posts by tag(s)
r34Py.search(["neko"], page_id=2, limit=50)
# get pool by id
r34Py.get_pool(28)
# get a random post (in this case with tag(s))
random = r34Py.random_post(["neko"])
Development
Follow these steps to setup everything needed to develop on rule34Py.
Currently this setup guide only shows how it is done on unix-like systems.
Clone This Repository
git clone https://github.com/b3yc0d3/rule34Py.git
cd rule34Py
git checkout develop
Setting Up Virtual Python Environment
python -m venv venv
source venv/bin/activate
To deactivate the virtual environment type the following in your terminal
deactivate
Install and Build rule34Py in the Virtual Environment
python3 -m build
pip install -e .
Running the Test Suite
This project is tested by an organic pytest
suite, stored under the :tests/
directory.
See the tests/README.md
file for instructions on how to run the test suite.
Committing your Changes
- Branch name should be prefixed with
fix-
when fixing an bug/errorfeat-
when a feature got addedchore-
everything else that doesn't fall in the above categories
- The title must be descriptive, what your pull request changes/does.
- Write a breve description of what the pull request does/solves in the commit.
- If your pull request fixes an issue, please mention that issue in the commit title.
Example structure of a commit message
here goes the title of the commit
Here goes the description
The title shall not be longer then 50 characters.
Select the develop
branch for pull requests.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file rule34py-2.0.0.tar.gz
.
File metadata
- Download URL: rule34py-2.0.0.tar.gz
- Upload date:
- Size: 40.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ae755220d67f50126eb4928bff788b46ab79acde61f1d8ea9b76a97263b925b |
|
MD5 | d7662f3bf063d435b5bdc27ad9ffed44 |
|
BLAKE2b-256 | 5fa1e8f40f5a0dff98727daf7716c61b6ba33ed20d6fba2c78530052895b7d83 |
File details
Details for the file rule34Py-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: rule34Py-2.0.0-py3-none-any.whl
- Upload date:
- Size: 27.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a5adbdce09d730beb25dde4889851962c6c739f143bb69768b9c92b28d9acac |
|
MD5 | 147a2b98576a96325b6826112d32765d |
|
BLAKE2b-256 | 27ec5926485e04c723b85296deeea8264d3adeb11ed7617a0d38374d3aded55d |