{
"info": {
"author": "Moshe G",
"author_email": "themygcompany@gmail.com",
"bugtrack_url": null,
"classifiers": [
"Development Status :: 2 - Pre-Alpha",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3"
],
"description": "# Hebcal\n### A python package for working with Hebrew dates, times, and holidays\n\n#### Note: This is still in development and not ready for production. There will still be lots of breaking changes.\nThere are several python packages that deal with Hebrew dates, Z'manim and Jewish holidays. However, since the Hebrew calendar considers nightfall the beginning of the new day, I've found it very inconvenient to work with other packages. Just converting a Gregorian date to a Hebrew date doesn't give you the proper conversion, as it could be past nightfall, which needs to manually accommodated.\n\nThe same goes for any Jewish holiday package. You first need to figure out what the real Hebrew date is before you can determine if it's currently a holiday.\n\nI wanted something that I can just ask \"is today a rest holiday?\" and I should get a True or False.\n\nI wrote Hebcal to solve these problems. It takes in a latitude and longitude to calculate the location.\nIt can be installed through pip: `pip install hebcal`.\n\nHere's a quick example:\n```python\nimport hebcal\n\ntime_info = hebcal.TimeInfo.now(latitude=40.089909, longitude=-74.216270)\nprint(time_info.today_sunrise().strftime('%-I:%M:%S %p'))\n###6:48:58 AM\nprint(time_info.hebrew_date)\n###(5779, 7, 19)\n```\nYou can input a specific date and time with a string:\n```python\ntime_info = hebcal.TimeInfo('2018, 9, 27 10:07 pm', latitude=40.089909, longitude=-74.216270)\nprint(time_info.today_sunrise().strftime('%-I:%M:%S %p'))\n###6:48:58 AM\nprint(time_info.hebrew_date)\n###(5779, 7, 19)\n```\nThe Hebrew date that is returned takes into account sunrise/sunset. If it's after sunset it will automatically return the correct Hebrew date.\n\nYou can also query directly if its night, or day\n```python\nprint(time_info.is_night())\n###True\nprint(time_info.is_yom())\n###False\n```\n\n\nNote: Calculating the timezone from the lat/lon slows down the calculations. It is best to pass the timezone as an argument:\n\n```python\ntime_info = hebcal.TimeInfo.now(timezone='America/New_York', latitude=40.089909, longitude=-74.216270)\n```\nYou can manually get the timezone using Hebcal:\n```python\nfrom hebcal.util.location import get_location\ntimezone = get_location(latitude==40.089909, longitude=-74.216270)\nprint(timezone)\n###America/New_York\n```\n\n\n### Hebcal zmanim.Zmanim\nnote: All times are datetime.datetime objects. They can be formated using `.strftime()`.\n\nHere's an example of the hebcal.zmanim\n```python\ntime_info = hebcal.TimeInfo.now(latitude=40.089909, longitude=-74.216270)\n\n# pass a hbcal.TimeInfo object into Zmanim\nzmanim = hebcal.Zmanim(time_info)\nprint(zmanim.last_shema_ma)\n###2018-09-27 09:12:12.895624-04:00\nprint(zmanim.last_shema_ma.strftime(\"%-I:%M:%S %p\"))\n###9:12:12 AM\n```\nOther than accessing individual zmanim, You can just print the Zmanim object, which returns formated times (i.e. `9:12:12 AM`).\n\nAnother option is to get all the zmanim configures as json:\n```python\nzmanim_json = hebcal.Zmanim.json(time_info)\nprint(zmanim_json['earliest mincha'])\n###2018-09-27 13:17:19.756457-04:00\n```\n\nAdd calandar README here.\n\n",
"description_content_type": "text/markdown",
"docs_url": null,
"download_url": "",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://github.com/TheBestMoshe/hebcal",
"keywords": "",
"license": "",
"maintainer": "",
"maintainer_email": "",
"name": "hebcal",
"package_url": "https://pypi.org/project/hebcal/",
"platform": "",
"project_url": "https://pypi.org/project/hebcal/",
"project_urls": {
"Homepage": "https://github.com/TheBestMoshe/hebcal"
},
"release_url": "https://pypi.org/project/hebcal/0.0.1a0.dev2/",
"requires_dist": [
"convertdate (==2.1.3)",
"ephem (==3.7.6.0)",
"py-dateutil (==2.2)",
"pyluach (==0.3.0.dev1)",
"pytz (==2018.5)",
"tzwhere (==3.0.3)"
],
"requires_python": ">=3.6",
"summary": "A Python package to manipulate location aware, Hebrew dates, times, and holidays.",
"version": "0.0.1a0.dev2"
},
"last_serial": 4344753,
"releases": {
"0.0.1a0.dev0": [
{
"comment_text": "",
"digests": {
"md5": "2b52b8d17241633f6cb4bf3e92354c65",
"sha256": "d6c899ca2d319514456bfc58c6bc49ba48d58f2c7ebf6ad6adb052e56d4d855f"
},
"downloads": -1,
"filename": "hebcal-0.0.1a0.dev0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2b52b8d17241633f6cb4bf3e92354c65",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 17561,
"upload_time": "2018-10-03T19:16:54",
"url": "https://files.pythonhosted.org/packages/c3/0e/add56a53b73e4531645f632a056877b9e02b3b1e8b769ab5c837caf33a67/hebcal-0.0.1a0.dev0-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "2970c4134c46ec1e3e16c709cc13beee",
"sha256": "3fd021ef23c65b98d66900868040c57f92cc4c3fb52f8a5e001c5d66d00a6dce"
},
"downloads": -1,
"filename": "hebcal-0.0.1a0.dev0.tar.gz",
"has_sig": false,
"md5_digest": "2970c4134c46ec1e3e16c709cc13beee",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 11182,
"upload_time": "2018-10-03T19:16:55",
"url": "https://files.pythonhosted.org/packages/3e/39/c6bcb2e8f4da03403cf05db11ef3ca519378e2a2015b82cb5548c4b3b17d/hebcal-0.0.1a0.dev0.tar.gz"
}
],
"0.0.1a0.dev1": [
{
"comment_text": "",
"digests": {
"md5": "848d4b3ec5729f5dfdaf5fe194e8dc69",
"sha256": "20249c751081c226cde12ee924d36f5c2d3ca49182dbc93ccad6e250f917d5ce"
},
"downloads": -1,
"filename": "hebcal-0.0.1a0.dev1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "848d4b3ec5729f5dfdaf5fe194e8dc69",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 18687,
"upload_time": "2018-10-05T15:06:54",
"url": "https://files.pythonhosted.org/packages/b5/ac/0a975817d5f3c64b694f333f84abfe4994fd25b31c9ac9b50c13a2995882/hebcal-0.0.1a0.dev1-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "78db9075616d878a0c9793b22b3e2b4f",
"sha256": "0bab3ebb9964bf7770103d2176615000e9cdb70af088fee135e6c7b309f36784"
},
"downloads": -1,
"filename": "hebcal-0.0.1a0.dev1.tar.gz",
"has_sig": false,
"md5_digest": "78db9075616d878a0c9793b22b3e2b4f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 11901,
"upload_time": "2018-10-05T15:06:56",
"url": "https://files.pythonhosted.org/packages/08/44/53d8d56a5e03510e86687916834d7e60ab38948969d8eda42f50201be0ba/hebcal-0.0.1a0.dev1.tar.gz"
}
],
"0.0.1a0.dev2": [
{
"comment_text": "",
"digests": {
"md5": "4dcfea25641912d256e96dee8e8872bc",
"sha256": "dd6d485b4b038205136607acd5a9e94de627ce091b039c575fd3b10e960b4e2f"
},
"downloads": -1,
"filename": "hebcal-0.0.1a0.dev2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4dcfea25641912d256e96dee8e8872bc",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 18687,
"upload_time": "2018-10-05T15:54:10",
"url": "https://files.pythonhosted.org/packages/52/62/4a1aa8698fb24784ab4ffbada3d3531cd62727b9634048d36a67b4099a01/hebcal-0.0.1a0.dev2-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "853c9e5c538a46969398ded5f4d63ee1",
"sha256": "c2e856e9e0c7332a50e8e439059f04713beaea7b7581076bc58375181634e1ef"
},
"downloads": -1,
"filename": "hebcal-0.0.1a0.dev2.tar.gz",
"has_sig": false,
"md5_digest": "853c9e5c538a46969398ded5f4d63ee1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 11896,
"upload_time": "2018-10-05T15:54:11",
"url": "https://files.pythonhosted.org/packages/a3/18/ca8bbd737fbbe00a91740dae39f2e13dd57e63f582dbbbe3436a1a23dd22/hebcal-0.0.1a0.dev2.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "4dcfea25641912d256e96dee8e8872bc",
"sha256": "dd6d485b4b038205136607acd5a9e94de627ce091b039c575fd3b10e960b4e2f"
},
"downloads": -1,
"filename": "hebcal-0.0.1a0.dev2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4dcfea25641912d256e96dee8e8872bc",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 18687,
"upload_time": "2018-10-05T15:54:10",
"url": "https://files.pythonhosted.org/packages/52/62/4a1aa8698fb24784ab4ffbada3d3531cd62727b9634048d36a67b4099a01/hebcal-0.0.1a0.dev2-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "853c9e5c538a46969398ded5f4d63ee1",
"sha256": "c2e856e9e0c7332a50e8e439059f04713beaea7b7581076bc58375181634e1ef"
},
"downloads": -1,
"filename": "hebcal-0.0.1a0.dev2.tar.gz",
"has_sig": false,
"md5_digest": "853c9e5c538a46969398ded5f4d63ee1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 11896,
"upload_time": "2018-10-05T15:54:11",
"url": "https://files.pythonhosted.org/packages/a3/18/ca8bbd737fbbe00a91740dae39f2e13dd57e63f582dbbbe3436a1a23dd22/hebcal-0.0.1a0.dev2.tar.gz"
}
]
}