{ "info": { "author": "Kasper Laudrup", "author_email": "laudrup@stacktrace.dk", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: MIT License", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3 :: Only", "Topic :: Software Development :: Libraries" ], "description": ".. image:: https://travis-ci.org/laudrup/salling-group-holidays.svg?master\n :target: https://travis-ci.org/laudrup/salling-group-holidays\n :alt: Linux Build Status\n\n.. image:: https://ci.appveyor.com/api/projects/status/github/laudrup/salling-group-holidays?branch=master&svg=true\n :target: https://ci.appveyor.com/project/laudrup/salling-group-holidays/branch/master\n :alt: Windows Build Status\n\nUnofficial library for the Salling Group Holidays API\n=====================================================\n\nUnofficial Python 3 library for the `Salling Group Holidays API `_.\n\nThe API supports fetching Danish holidays for a given date or range of\ndates. This library simply provides an abstraction over that API.\n\n.. note::\n This library is in no way supported by Salling Group A/S nor is the author in any way affiliated with Salling Groups A/S.\n\nInstallation\n------------\n\nTo install this library, type the following into the command prompt:\n\n::\n\n $ pip install salling-group-holidays\n\nUsage\n-----\n\nFirst of all, an API key is needed to use the Salling Group Holidays\nAPI. `Contact Salling Group to receive your API key\n`_.\n\nOnce you have received your key, you can start using this library. Usage is fairly simple. Start by getting an API instance:\n\n.. code-block:: python\n\n import salling_group_holidays\n\n API_KEY = 'your_api_key'\n v1 = salling_group_holidays.v1(API_KEY)\n\nTo see if a given date is a holiday, use a Python `datetime.date\nobject `__. and\ncall the *is_holiday* method. For example, to see if today is a Danish\nholiday:\n\n.. code-block:: python\n\n from datetime import date\n import salling_group_holidays\n\n v1 = salling_group_holidays.v1(API_KEY)\n\n if v1.is_holiday(date.today()):\n print('Great news. No work today!')\n else:\n print('Get back to work. No holiday today.')\n\nTo get a list of holidays for a given period, call the *holidays*\nmethod with a start and end date as a Python `datetime.date\nobject `__. This\nmethod returns a Python dictionary with the holiday dates as the key\nand the name of the day as well as whether it is a holiday. For\nexample to get the list of Danish holidays in December 2018:\n\n.. code-block:: python\n\n from datetime import date\n import salling_group_holidays\n\n v1 = salling_group_holidays.v1(API_KEY)\n holidays = v1.holidays(date(2018, 12, 1), date(2018, 12, 31))\n\n print('There are {} holidays in December 2018.'.format(len(holidays)))\n print('December 25th is {}'.format(holidays[date(2018, 12, 25)]['name']))\n\nWill output:\n\n::\n\n There are 4 holidays in December 2018\n December 25th is 1. juledag.\n\n\n", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/laudrup/salling-group-holidays", "keywords": "holidays,calendar,salling,denmark,danish", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "salling-group-holidays", "package_url": "https://pypi.org/project/salling-group-holidays/", "platform": "", "project_url": "https://pypi.org/project/salling-group-holidays/", "project_urls": { "Homepage": "https://github.com/laudrup/salling-group-holidays" }, "release_url": "https://pypi.org/project/salling-group-holidays/0.3/", "requires_dist": [ "requests", "wheel" ], "requires_python": "", "summary": "Unofficial library for the Salling Group holidays API", "version": "0.3" }, "last_serial": 4058941, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "51abcd999080a3c1b76bb45ad5791a38", "sha256": "d07b4541b2370a9a470228a87856ef56289707dc18ab6ec1ee9fcfda1f914f7f" }, "downloads": -1, "filename": "salling_group_holidays-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "51abcd999080a3c1b76bb45ad5791a38", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3325, "upload_time": "2018-07-11T17:25:54", "url": "https://files.pythonhosted.org/packages/ef/7d/1e198ca328585e88570aa45445ada903f684fcb15072108031f142857972/salling_group_holidays-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "984fa85eb3c585ade88b0502e088ceb5", "sha256": "1d2842c107ed66b756f75dc53de1a099b0083760b446e1bdd7dc853be23be7ce" }, "downloads": -1, "filename": "salling-group-holidays-0.1.tar.gz", "has_sig": false, "md5_digest": "984fa85eb3c585ade88b0502e088ceb5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2851, "upload_time": "2018-07-11T17:25:55", "url": "https://files.pythonhosted.org/packages/11/52/19143e5080daaa0e6d83ed2f093b92c204a9990955ad2abd0636f2d240bd/salling-group-holidays-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "fc3770af04e06e4a8e56c813d9b9388a", "sha256": "b1fd357fbca10e09be064e8005205112faf8c6acad1a55dab69c1994bcb218ad" }, "downloads": -1, "filename": "salling_group_holidays-0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "fc3770af04e06e4a8e56c813d9b9388a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3336, "upload_time": "2018-07-11T18:35:08", "url": "https://files.pythonhosted.org/packages/9d/f7/364b4175d3adeb6951edcf5533e32b7561a849a24e802ec155bda5b1f601/salling_group_holidays-0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ee176ac01e4a051ddbea3d730bb2a0bc", "sha256": "0a4146900ac352584a56eab8973d59d31638e1d03c2b3ab54c6a5259420c878b" }, "downloads": -1, "filename": "salling-group-holidays-0.2.tar.gz", "has_sig": false, "md5_digest": "ee176ac01e4a051ddbea3d730bb2a0bc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2882, "upload_time": "2018-07-11T18:35:09", "url": "https://files.pythonhosted.org/packages/c6/b8/25818ced4587a5cfede4d32f2261b82b1809a1b72485d5247fad73327db0/salling-group-holidays-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "ec99da449ff0db7c2d0990e089e6d869", "sha256": "92508eff8a56f08f19208acacb52a033df1ee192c18dac6487e7ba1cb627565c" }, "downloads": -1, "filename": "salling_group_holidays-0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "ec99da449ff0db7c2d0990e089e6d869", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3528, "upload_time": "2018-07-13T18:33:12", "url": "https://files.pythonhosted.org/packages/fa/6a/acb99dca563a12d29ae913df6057d5c9d5dba0eb9f2130c5828d1285eef0/salling_group_holidays-0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7c5286d280c011381842a82dcc72d849", "sha256": "8d41ba447b7c051fb593cf0d6e4a6bfab6bb10351a248bd133c156c0350e3c6e" }, "downloads": -1, "filename": "salling-group-holidays-0.3.tar.gz", "has_sig": false, "md5_digest": "7c5286d280c011381842a82dcc72d849", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3170, "upload_time": "2018-07-13T18:33:14", "url": "https://files.pythonhosted.org/packages/fa/23/9abdee1baeee79d6f3582a3630da0a55fc55223fb42b70f855528ce70d7a/salling-group-holidays-0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ec99da449ff0db7c2d0990e089e6d869", "sha256": "92508eff8a56f08f19208acacb52a033df1ee192c18dac6487e7ba1cb627565c" }, "downloads": -1, "filename": "salling_group_holidays-0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "ec99da449ff0db7c2d0990e089e6d869", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3528, "upload_time": "2018-07-13T18:33:12", "url": "https://files.pythonhosted.org/packages/fa/6a/acb99dca563a12d29ae913df6057d5c9d5dba0eb9f2130c5828d1285eef0/salling_group_holidays-0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7c5286d280c011381842a82dcc72d849", "sha256": "8d41ba447b7c051fb593cf0d6e4a6bfab6bb10351a248bd133c156c0350e3c6e" }, "downloads": -1, "filename": "salling-group-holidays-0.3.tar.gz", "has_sig": false, "md5_digest": "7c5286d280c011381842a82dcc72d849", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3170, "upload_time": "2018-07-13T18:33:14", "url": "https://files.pythonhosted.org/packages/fa/23/9abdee1baeee79d6f3582a3630da0a55fc55223fb42b70f855528ce70d7a/salling-group-holidays-0.3.tar.gz" } ] }