Keep-Sabbath
Keep Sabbath is a Django app to automatically redirect website visitors when it is the Sabbath day, with support for overriding on other Biblical Holy days.
Introduction
Keep-Sabbath is for webmasters with e-commerce shops, blogs, etc. who would like to keep the Biblical 7th-day Sabbath and other Holy days of the Bible Holy.
The django app allows you to easily setup a system for a Django-powered website that will automatically redirect visitors to a single page (explaining about the Sabbath, redirect, etc.) if it is the Sabbath day or another Holy day.
The app uses internal, offline calculations (via the SolarTime module) and the current date/time of the server to figure out if it is the Sabbath day (thus, if the user should be redirected), so you do not have to do it manually. It is optimized for performance and speed.
There is also an option to manually override it as well, which is useful for other Biblical Holy days.
The timing is based on the understanding that the 7th-day Sabbath day starts on 6th day ("Friday") evening and ends on 7th day ("Saturday") evening, according to the Bible.
Features
- Simple setup
- 2 ways to use it
- Automatically redirects when it is the 7th day Sabbath
- Support for manual overriding
- Supports Django 3.2+
Installation
pip install keep_sabbathpip install pytz
Documentation
The documentation can be found in the demo: example/examplewebsite.
Contributing
All contributions are welcome! Feel free to open a PR or ask questions. :)
Releasing on PyPI
Navigate to the root directory
Run py -m build
Then run twine upload dist/* and follow the prompts.
License
Keep-Sabbath is licensed under the BSD 3-Clause License. Feel free to use as needed in your own projects. See the LICENSE for full copyright and license information.
Metadata
Release files for keep-sabbath 0.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| keep_sabbath-0.7.0.tar.gz | 10.2 kB | Without provenance | Details for keep_sabbath-0.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| keep_sabbath-0.7.0-py3-none-any.whl | Python 3 | none | any | Details for keep_sabbath-0.7.0-py3-none-any.whl |
Total release size: 21.9 kB
Release files / keep_sabbath-0.7.0.tar.gz
| Download URL | keep_sabbath-0.7.0.tar.gz |
|---|---|
| Size | 10.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
061841adcccf944064b02d3a3dc0973efdc76d6676858fac84d2aac36291ba2b
|
|
BLAKE2b-256 checksum How to use checksums |
2d5afe12efabc7996c0c3f017a64ead55ddc223e8ecd30f8fcc88a5ee5a17891
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.2
|
Release files / keep_sabbath-0.7.0-py3-none-any.whl
| Download URL | keep_sabbath-0.7.0-py3-none-any.whl |
|---|---|
| Size | 11.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6d6e9fe2ad5a525452f08f320745682dbdf4b99b5639e49d0a6e489593445447
|
|
BLAKE2b-256 checksum How to use checksums |
987a5d5e2b0d2a5e7f2deee58023eb31fdbb442e9d35f5335123f014454ae52e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.2
|
Security for keep-sabbath 0.7.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.