dhravyapy-0.0.9


توضیحات

An asynchronous wrapper for interacting with the Dhravya API
ویژگی مقدار
سیستم عامل -
نام فایل dhravyapy-0.0.9
نام dhravyapy
نسخه کتابخانه 0.0.9
نگهدارنده []
ایمیل نگهدارنده []
نویسنده 27Saumya
ایمیل نویسنده -
آدرس صفحه اصلی https://github.com/27Saumya/dhravyapy
آدرس اینترنتی https://pypi.org/project/dhravyapy/
مجوز MIT
<div align="center"><b>DhravyaPy</b></div <div align="left"> <a href="https://pypi.org/project/dhravyapy"> <img alt="Downloads" src="https://img.shields.io/pypi/dw/dhravyapy?color=blue"> </div> ## DhravyaPy is a basic, asynchronous wrapper for the [DhravyaAPI](https://api.dhravya.me) ### DhravyaPy works with [Python 3.8+](https://python.org) ### Features * Easy to use OOP design * Get random jokes * Get random topics * Generate images and memes ### Installation To install the library through [PyPi](https://pypi.org) use:- ``` pip install dhravyapy ``` To install the development version(using git):- ``` pip install git+https://github.com/27Saumya/dhravyapy ``` ### Examples To get a random joke ```py import dhravya import asyncio async def main(): joke = await dhravya.Fun().joke() print(joke) if __name__ == "__main__": loop = asyncio.get_event_loop() loop.run_until_complete(main()) ``` To generate a qrcode ```py import dhravya import asyncio async def main(): # the text of the qrcode(can be links or just normal text) text = "https://api.dhravya.me" qrcode = await dhravya.Image().qrcode(text) # saving the image of the qrcode await qrcode.save("qrcode.png") if __name__ == "__main__": loop = asyncio.get_event_loop() loop.run_until_complete(main()) ``` For more examples see the examples directory.


نیازمندی

مقدار نام
<3.9.0,>=3.6.0 aiohttp
- aiofiles


زبان مورد نیاز

مقدار نام
>=3.8.0 Python


نحوه نصب


نصب پکیج whl dhravyapy-0.0.9:

    pip install dhravyapy-0.0.9.whl


نصب پکیج tar.gz dhravyapy-0.0.9:

    pip install dhravyapy-0.0.9.tar.gz