donationalerts-1.0.1


توضیحات

Handling your donation in real time
ویژگی مقدار
سیستم عامل -
نام فایل donationalerts-1.0.1
نام donationalerts
نسخه کتابخانه 1.0.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده cxldxice
ایمیل نویسنده cxldxfxtxre@gmail.com
آدرس صفحه اصلی https://github.com/cxldxice/donationalerts
آدرس اینترنتی https://pypi.org/project/donationalerts/
مجوز MIT
# Get token ## Get client_id and client_secret - [here](https://www.donationalerts.com/application/clients) ```python import donationalerts auth = donationalerts.Authorization("CLIENT_ID", "CLIENT_SECRET") auth.start_authorization() ``` # Test application ## Donation notifer ```python import donationalerts import win10toast token = "YOUR_TOKEN_HERE" donation = donationalerts.DonationAlerts(token) notify = win10toast.ToastNotifier() @donation.handler def on_donate(donation_data): notify.show_toast( title=f"{donation_data['username']} donated {donation_data['amount']}{donation_data['currency']}!", msg=donation_data["message"], duration=10 ) if __name__ == "__main__": donation.polling() ``` > by @cxldxice with ♥


نحوه نصب


نصب پکیج whl donationalerts-1.0.1:

    pip install donationalerts-1.0.1.whl


نصب پکیج tar.gz donationalerts-1.0.1:

    pip install donationalerts-1.0.1.tar.gz