Identify whether the current date and time is Saturday or not.
Project description
is shabbat
a simple module to save the shabbat in your code!
example of a telegram bot:
"""
an example of telegram bot that will not work in shabbat!
"""
from pyrogram import Client, filters, types
from shabbat import Shabbat
app = Client("my_account")
s = Shabbat()
@app.on_message(filters.incoming)
def shabbat_handler(_, m: types.Message):
if s.is_shabbat():
return m.reply_text("Today is Shabbat! send me your messages after that!")
app.run()
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
shabbat-0.1.0.tar.gz
(2.8 kB
view details)
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 shabbat-0.1.0.tar.gz.
File metadata
- Download URL: shabbat-0.1.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e18c88b132e4d2da14346bebe18a202776bb6ec9d6cb17af2513f30abb6404ec
|
|
| MD5 |
cddaf03417ebbb77ecf4a46bf9cb594b
|
|
| BLAKE2b-256 |
df597489c84dbdd88bb7333a93cffc9f4109def2a091d6479443c468e77c1d7e
|
File details
Details for the file shabbat-0.1.0-py3-none-any.whl.
File metadata
- Download URL: shabbat-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48a5a3ce9d4490e76ae437df80a7a2f88a9c383dfba2b2489f62dbdc964f5693
|
|
| MD5 |
8722f8a25082c6e1d4a83fada425dab4
|
|
| BLAKE2b-256 |
978acb2f89965c9ed142173709212872b5d2f5a2cc06a5a5c57d027dbc9a9bf0
|