A Python Package that enables you to fetch data from Truth or Dare API
Project description
<br />
<p>
<a href="https://github.com/iamd4rk/truthordare.py"><img src="https://i.imgur.com/IOdIA3y.png" width="600" alt="truthordare.py" /></a>
</p>
<br />
📝 Info
An easy to use Truth or Dare API wrapper written in Python.
💫 Main Features
-
Very easy to use
-
Covers entire API
⬇️ Installation
Python v3.8 or above is recommended
# Windows
py -3 -m pip install truthordare.py
# Linux/macOS
python3 -m pip install truthordare.py
🔃 Import
import truthordare
✅ Commands
You can use the following Funtions :- truth() | dare() | paranoia() | wyr() | nhie()
👼 Example
import truthordare
print(truthordare.truth())
print(truthordare.dare())
print(truthordare.nhie())
print(truthordare.wyr())
print(truthordare.paranoia())
🔎 With rating parameter
import truthordare
print(truthordare.truth("PG"))
Valid Paramaters are: - "PG" , "PG13" , "R"
☑️ Output Log (Example)
{'id': 'ku9abgpkwrf4', 'type': 'PARANOIA', 'rating': 'PG', 'question': "Who's most likely to enjoy reading over watching movies?", 'translations': {'bn': 'কার সিনেমা দেখার চেয়ে বেশি পড়তে ভালো লাগে?', 'de': 'Wer liest am ehest ten, anstatt sich Filme anzusehen?', 'es': '¿Quién es más probable que disfrute leyendo en lugar de ver películas?', 'fr': "Qui est le plus susceptible d'apprécier la lecture plutôt que de regarder des films\xa0?", 'hi': 'फिल्मेें देखने के बजाय पढ़ने का आनंद लेने की सबसे अधिक संभावना किसे है?', 'tl': 'Sino ang mas malamang na mag-enjoy sa pagbabasa sa panonood ng mga pelikula?'}}
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
truthordare.py-0.0.4.tar.gz
(4.1 kB
view details)
Built Distribution
File details
Details for the file truthordare.py-0.0.4.tar.gz
.
File metadata
- Download URL: truthordare.py-0.0.4.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3ffd1365b77df9acc70fb97d3860d5fa6bf3ae54af78abe75a661198165b9c6 |
|
MD5 | 6af29b1cec4553d88a0b3875698cdb4a |
|
BLAKE2b-256 | d9a192e05c1e1be86ce0dab00cd9d5ed7782cc2b3496fabfa6da83b4152c80b4 |
File details
Details for the file truthordare.py-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: truthordare.py-0.0.4-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e85a59c2e19261068a84b1b5cb6cfdd7bd240a268b767b1114b0687a83e4d9ae |
|
MD5 | 0edf21b60ac0db80d4a23c4f06e12199 |
|
BLAKE2b-256 | 6afceb91b2aa33f949c5e62a4574f9b50d30de29f16cf3f764fc9483caaf2f8c |