Skip to main content

Zmanim Core Python Bindings

PyPI Version Python Versions License

High-performance Python bindings for the Zmanim Core library - a comprehensive solution for calculating Jewish religious times (zmanim) and astronomical events.

🌟 Features

  • Astronomical Calculations: Precise sunrise, sunset, and astronomical event calculations
  • Jewish Religious Times: Complete zmanim calculations including:
    • Alos Hashachar (dawn)
    • Tzais (nightfall)
    • Chatzos (midday)
    • Prayer times (Shacharis, Mincha, Maariv)
    • Candle lighting times
  • Hebrew Calendar: Full Jewish calendar support with:
    • Date conversions between Gregorian and Jewish dates
    • Holiday calculations
    • Parsha (weekly Torah portion) information
    • Daf Yomi calculations
  • Geolocation Support: Location-based calculations using coordinates
  • High Performance: Optimized Rust implementation with minimal overhead
  • Cross-Platform: Supports Windows, Linux, macOS

🚀 Installation

pip install zmanim-core-bindings

📖 Quick Start

Basic Usage

import zmanim_py.zmanim_core as zmanim
from datetime import datetime
import time

# Get current timestamp (milliseconds since epoch)
now = int(time.time() * 1000)

# Create a location (Jerusalem coordinates)
location = zmanim.new_geolocation(
    latitude=31.78,    # Jerusalem latitude
    longitude=35.22,   # Jerusalem longitude
    elevation=754.0    # Elevation in meters
)

# Create a zmanim calendar
calendar = zmanim.new_zmanim_calendar(
    timestamp=now,
    geo_location=location,
    use_astronomical_chatzos=True,
    use_astronomical_chatzos_for_other_zmanim=True,
    candle_lighting_offset=18 * 60 * 1000  # 18 minutes before sunset
)

# Get Alos Hashachar (dawn)
alos_timestamp = calendar.get_alos_hashachar()
if alos_timestamp:
    alos_datetime = datetime.fromtimestamp(alos_timestamp / 1000)
    print(f"Alos Hashachar: {alos_datetime}")
    # Note: This is in UTC, convert to local timezone as needed

For more information, see the Rust API Docs and the original KosherJava docs which this library is based on.

📄 License

This project is licensed under the Lesser General Public License v2.1 - see the LICENSE file for details.

🙏 Acknowledgments

This library is a Rust port of the KosherJava library, which provides the reference implementation and testing framework. Special thanks to the KosherJava contributors for their excellent work.

📞 Support


Made with ❤️ for the Jewish community and Python developers

Release files for zmanim-core-bindings 0.2.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zmanim-core-bindings 0.2.7
File Size Uploaded
zmanim_core_bindings-0.2.7.tar.gz 764.5 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for zmanim-core-bindings 0.2.7
File
zmanim_core_bindings-0.2.7-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
zmanim_core_bindings-0.2.7-py3-none-win32.whl Python 3 none Windows x86-32 Details
zmanim_core_bindings-0.2.7-py3-none-musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64 Details
zmanim_core_bindings-0.2.7-py3-none-musllinux_1_2_i686.whl Python 3 none Linux musl 1.2+ x86-32 Details
zmanim_core_bindings-0.2.7-py3-none-musllinux_1_2_armv7l.whl Python 3 none Linux musl 1.2+ ARMv7l Details
zmanim_core_bindings-0.2.7-py3-none-musllinux_1_2_aarch64.whl Python 3 none Linux musl 1.2+ ARM64 Details
zmanim_core_bindings-0.2.7-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details
zmanim_core_bindings-0.2.7-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl Python 3 none Linux glibc 2.17+ IBM System/390x Details
zmanim_core_bindings-0.2.7-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl Python 3 none Linux glibc 2.17+ x86-32 Details
zmanim_core_bindings-0.2.7-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl Python 3 none Linux glibc 2.17+ ARMv7l Details
zmanim_core_bindings-0.2.7-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details
zmanim_core_bindings-0.2.7-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details
zmanim_core_bindings-0.2.7-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details

Total release size: 6.5 MB

Release files / zmanim_core_bindings-0.2.7.tar.gz

Download URL zmanim_core_bindings-0.2.7.tar.gz
Size 764.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9d9a8809efec44c6382d97e96d8b6187c2cebf95180d31c82c652125931919d5
BLAKE2b-256 checksum
How to use checksums
e395a25b13712b3dd893311a6237f6e2c300e1186334a385376dbac9fac01408
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.6

Release files / zmanim_core_bindings-0.2.7-py3-none-win_amd64.whl

Download URL zmanim_core_bindings-0.2.7-py3-none-win_amd64.whl
Size 396.9 kB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
a3b3348202dcd86a1a8945410b293b10e6bf59f5c14c93aa47109250be43f7eb
BLAKE2b-256 checksum
How to use checksums
1d5d7380f04991d50d275fcc1bc3a9e08ec87d28cfd4b5adc0a60172d23d5a59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.6

Release files / zmanim_core_bindings-0.2.7-py3-none-win32.whl

Download URL zmanim_core_bindings-0.2.7-py3-none-win32.whl
Size 339.2 kB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
0e3f0e843469fb95679cfcbc0375facebd355866ae08f99ba742496c17ceda7e
BLAKE2b-256 checksum
How to use checksums
973db72e23a5c447da482da93a89ca4b6cdaffc6cb65ed1a60da4fd3201a4563
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.6

Release files / zmanim_core_bindings-0.2.7-py3-none-musllinux_1_2_x86_64.whl

Download URL zmanim_core_bindings-0.2.7-py3-none-musllinux_1_2_x86_64.whl
Size 555.9 kB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
b25d0f3c0d12ab739648a0f8d57e102e5608f62182e89cb259f1eb9c62b6a909
BLAKE2b-256 checksum
How to use checksums
847de6da2c6d4f6e0fdbc3cc7c93be9cdefc5ccf3c0cf24afb6f9e0437486a4e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.6

Release files / zmanim_core_bindings-0.2.7-py3-none-musllinux_1_2_i686.whl

Download URL zmanim_core_bindings-0.2.7-py3-none-musllinux_1_2_i686.whl
Size 574.7 kB
Tags Linux musl 1.2+ x86-32 Python 3
SHA-256 checksum
How to use checksums
0981fc278133c1fe1c3c133fff3a807b3f7e15cfa60ed1725366d9b95736d5a8
BLAKE2b-256 checksum
How to use checksums
65aa6407053809e012f893c9a444048790de6355bc328b185653e4104314ad88
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.6

Release files / zmanim_core_bindings-0.2.7-py3-none-musllinux_1_2_armv7l.whl

Download URL zmanim_core_bindings-0.2.7-py3-none-musllinux_1_2_armv7l.whl
Size 622.2 kB
Tags Linux musl 1.2+ ARMv7l Python 3
SHA-256 checksum
How to use checksums
e67dc56cc19500977196f9ce5a081822117ddae9d22eeb4daa384861c6588475
BLAKE2b-256 checksum
How to use checksums
2df67dd9fb065564cb93366483a47270a04622f9e1a03c34e7632b00f878b750
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.6

Release files / zmanim_core_bindings-0.2.7-py3-none-musllinux_1_2_aarch64.whl

Download URL zmanim_core_bindings-0.2.7-py3-none-musllinux_1_2_aarch64.whl
Size 536.4 kB
Tags Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
970c0d05696eb8d73444fe95ea0615159fe75a694d2fc7225e5375f00294678d
BLAKE2b-256 checksum
How to use checksums
bbd8c73e01e3324bcff0f82bd870b09d4739f8547d4d0f5cbd255ae722b357bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.6

Release files / zmanim_core_bindings-0.2.7-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL zmanim_core_bindings-0.2.7-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 395.2 kB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
1d6993eeae8728e89bb596d2d636b139d6c70126a69531baaf08ada514e6f8b3
BLAKE2b-256 checksum
How to use checksums
feec85bbb96ee31996c299c26cb43e7dc92e635099b5d2f1c769e397af7fba4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.6

Release files / zmanim_core_bindings-0.2.7-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl

Download URL zmanim_core_bindings-0.2.7-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl
Size 407.3 kB
Tags Linux glibc 2.17+ IBM System/390x Python 3
SHA-256 checksum
How to use checksums
37d630e4d5c5d6d6754c5c233557492bd58ff00ccd67bd1b3b6ef8a3ca464840
BLAKE2b-256 checksum
How to use checksums
ee5322f0eff1e1dbfe97ae3f2e8dd97055ce1c312c30bceb7c5b0bbd37909d53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.6

Release files / zmanim_core_bindings-0.2.7-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl

Download URL zmanim_core_bindings-0.2.7-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl
Size 421.1 kB
Tags Linux glibc 2.17+ x86-32 Python 3
SHA-256 checksum
How to use checksums
f04d7474a2dde56c3ec83d3fb2cb288fabbb0bbb7ee99c6dd489ac103752726f
BLAKE2b-256 checksum
How to use checksums
10f138b007049aca9c68e0bd2768f9718c6d5ab29ef55711f7530e9d6744149f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.6

Release files / zmanim_core_bindings-0.2.7-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl

Download URL zmanim_core_bindings-0.2.7-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Size 364.2 kB
Tags Linux glibc 2.17+ ARMv7l Python 3
SHA-256 checksum
How to use checksums
89721c68a47ab1ad9e2c44fe1bd8f76c71f2600fe0045c2d23b5d117d3203998
BLAKE2b-256 checksum
How to use checksums
11b447e2d85758b8387b33b6cc2573eb5461cf3190c6257660857ebfc76b0168
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.6

Release files / zmanim_core_bindings-0.2.7-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL zmanim_core_bindings-0.2.7-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 372.3 kB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
c738fe941ef6626bdd89234ad324f35bc622769708e4d1f261ea3c2363eb1a1a
BLAKE2b-256 checksum
How to use checksums
f4b60a70a17455b32fe3b8c308d627f323466ca8d25e90b4c8426d88b9476d0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.6

Release files / zmanim_core_bindings-0.2.7-py3-none-macosx_11_0_arm64.whl

Download URL zmanim_core_bindings-0.2.7-py3-none-macosx_11_0_arm64.whl
Size 368.9 kB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
6d7d76ad455d5f4ec9694018e4614dc8d20719153bb968b66f2e7ee37ebc6606
BLAKE2b-256 checksum
How to use checksums
3aba68116a64df5875b8acdec8b46b55dab433f55ba2642aae2aeaef2f0cb393
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.6

Release files / zmanim_core_bindings-0.2.7-py3-none-macosx_10_12_x86_64.whl

Download URL zmanim_core_bindings-0.2.7-py3-none-macosx_10_12_x86_64.whl
Size 395.2 kB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
968a5246cf54dab9ddf8188e99c098e0b4e89ee7724faf69166303d319019e83
BLAKE2b-256 checksum
How to use checksums
c02423b67d3f27355bc53d70d44cafbf76bc2acc86d901de0e76c63f12f30efa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.6

Release history Release notifications | RSS feed

This release

0.2.7 This release

14 release files

0.2.6

14 release files

0.2.1

14 release files

0.2.0

14 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page