Unofficial Plume API Wrapper
Project description
PlumeAPI
PlumeAPI is a Python wrapper for the Plume API, providing easy access to various endpoints for fun, utility, and image manipulation.
Installation
To install PlumeAPI, simply use pip:
pip install plume_api
Usage
Here's a quick example of how to use the PlumeAPI:
from plume_api import PlumeAPI
api = PlumeAPI()
# Get a random 8-ball response
response = api.eight_ball()
print(response)
# Get a fun fact
fun_fact = api.fun_fact()
print(fun_fact)
# Get an ISS image
iss_image = api.iss_image()
with open('iss_image.png', 'wb') as f:
f.write(iss_image)
Available Endpoints
Fun Endpoints
eight_ball(locale: Optional[str] = None) -> Dict[str, Any]emoji_mix(left: str, right: str) -> Dict[str, Any]fun_fact(locale: Optional[str] = None) -> Dict[str, Any]iss_image(circle: Optional[bool] = None) -> bytesiss() -> Dict[str, Any]joke(locale: Optional[str] = None) -> Dict[str, Any]math(expr: str) -> Dict[str, Any]meme() -> Dict[str, Any]nasa_apod() -> Dict[str, Any]npm(name: str) -> Dict[str, Any]quote(locale: Optional[str] = None) -> Dict[str, Any]random_emoji_mix() -> Dict[str, Any]urban(word: str) -> Dict[str, Any]color(hex: str) -> Dict[str, Any]color_image(hex: str) -> bytesrandom_color() -> Dict[str, Any]decode(type: str, text: str) -> Dict[str, Any]encode(type: str, text: str) -> Dict[str, Any]github_repository(name: str) -> Dict[str, Any]github_user(name: str) -> Dict[str, Any]upside_down(text: str) -> Dict[str, Any]
Utility Endpoints
captcha() -> Dict[str, Union[str, bytes]]crypto(name: str, currency: Literal["usd", "eur"]) -> Dict[str, Any]definition(locale: str, word: str) -> Dict[str, Any]exec_code(language: str, code: str) -> Dict[str, Any]free_games(locale: Optional[str] = None) -> Dict[str, Any]ip_info(ip: str) -> Dict[str, Any]qrcode(text: str) -> bytesreverse_text(text: str) -> Dict[str, Any]translate(text: str, to: str) -> Dict[str, Any]weather(city: str) -> Dict[str, Any]wikipedia(page: str, locale: Optional[str] = None) -> Dict[str, Any]
Image Creation
achievement(text: str) -> bytesalert(text: str) -> bytescaution(text: str) -> byteschallenge(text: str) -> bytesjail(avatar: str) -> bytesnokia(url: str) -> bytestweet(avatar: str, name: str, username: str, text: str, retweets: Optional[int] = None, quote_tweets: Optional[int] = None, likes: Optional[int] = None) -> byteswanted(avatar: str) -> bytesscreenshot(url: str) -> bytes
Image Manipulation
blur(url: str) -> bytescolorify(url: str, color: str) -> bytesgrayscale(url: str) -> bytesinvert(url: str) -> bytesrotate(url: str, deg: int) -> bytes
Meme Creation
change_my_mind(text: str) -> bytesdid_you_mean(search: str, correction: str) -> bytesdrake(top: str, bottom: str) -> bytesduolingo(text: str) -> bytesfacts(text: str) -> bytesfuze3(text: str) -> byteshugo(text: str) -> bytesnothing(text: str) -> bytesoogway(text: str) -> bytessadcat(top: str, bottom: str) -> bytesstonks(avatar: str, stonks: Optional[bool] = None) -> bytestable_flip(avatar: str) -> byteswater(text: str) -> byteswoosh(avatar: str) -> bytespepe_hug(avatar: str) -> bytes
Cards
boost(avatar: str, username: str, text: Optional[str] = None) -> bytescouple(avatar1: str, avatar2: str, percentage: Optional[int] = None, primary_color: Optional[str] = None) -> bytesrank(avatar: str, global_name: str, username: str, level: int, xp: int, max_xp: int, rank: Optional[int] = None, bg_url: Optional[str] = None, bg_color: Optional[str] = None, blur: Optional[bool] = None, color: Optional[str] = None) -> byteswelcome(avatar: str, text1: str, text2: Optional[str] = None, text3: Optional[str] = None, bg_url: Optional[str] = None, bg_color: Optional[str] = None, font_color: Optional[str] = None, blur: Optional[bool] = None) -> bytesgoodbye(avatar: str, text1: str, text2: Optional[str] = None, text3: Optional[str] = None, bg_url: Optional[str] = None, bg_color: Optional[str] = None, font_color: Optional[str] = None, blur: Optional[bool] = None) -> bytes
License
This project is licensed under the MIT License.
Project details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file plume_api-1.1.2.tar.gz.
File metadata
- Download URL: plume_api-1.1.2.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
492cc381925587fdba1046c35540eb5cabe8614d9978c1495df18ee474249f85
|
|
| MD5 |
2f258b269bec91e82e2ca6b3bbfc1eee
|
|
| BLAKE2b-256 |
913bb9f1ca15a48ecd8e6edd849e524a5366d1c369467244458d37a726999eb5
|
Provenance
The following attestation bundles were made for plume_api-1.1.2.tar.gz:
Publisher:
publish.yml on Awakno/plume-api.py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
plume_api-1.1.2.tar.gz -
Subject digest:
492cc381925587fdba1046c35540eb5cabe8614d9978c1495df18ee474249f85 - Sigstore transparency entry: 226932656
- Sigstore integration time:
-
Permalink:
Awakno/plume-api.py@e5d47cce0b5bd9160afe2b66aba45819ff460576 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Awakno
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e5d47cce0b5bd9160afe2b66aba45819ff460576 -
Trigger Event:
push
-
Statement type:
File details
Details for the file plume_api-1.1.2-py3-none-any.whl.
File metadata
- Download URL: plume_api-1.1.2-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d7f048a53c8a6f88ccbd42a4aeb51dfeac1ecb694cabf94fa51404df2677b7a
|
|
| MD5 |
808bbb270bd6d13b41ab908f61def5b5
|
|
| BLAKE2b-256 |
aab4876034d4ed3b4a77d43aa16cf24c1b3eb502f813c281771f38197f094fbc
|
Provenance
The following attestation bundles were made for plume_api-1.1.2-py3-none-any.whl:
Publisher:
publish.yml on Awakno/plume-api.py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
plume_api-1.1.2-py3-none-any.whl -
Subject digest:
0d7f048a53c8a6f88ccbd42a4aeb51dfeac1ecb694cabf94fa51404df2677b7a - Sigstore transparency entry: 226932657
- Sigstore integration time:
-
Permalink:
Awakno/plume-api.py@e5d47cce0b5bd9160afe2b66aba45819ff460576 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Awakno
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e5d47cce0b5bd9160afe2b66aba45819ff460576 -
Trigger Event:
push
-
Statement type: