apiverve-worldholidays


Nameapiverve-worldholidays JSON
Version 1.1.5 PyPI version JSON
download
home_pageNone
SummaryWorld Holidays is a simple tool for getting the holidays of the world. It returns the holidays of the world for each day of the year.
upload_time2024-09-21 07:12:03
maintainerNone
docs_urlNone
authorNone
requires_python>=3.12
licenseNone
keywords world holidays world holidays api world holidays tool world holidays software world holidays service
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            World Holidays API
============

World Holidays is a simple tool for getting the holidays of the world. It returns the holidays of the world for each day of the year.

![Build Status](https://img.shields.io/badge/build-passing-green)
![Code Climate](https://img.shields.io/badge/maintainability-B-purple)
![Prod Ready](https://img.shields.io/badge/production-ready-blue)

This is a Python API Wrapper for the [World Holidays API](https://apiverve.com/marketplace/api/worldholidays)

---

## Installation
	pip install apiverve-worldholidays

---

## Configuration

Before using the worldholidays API client, you have to setup your account and obtain your API Key.  
You can get it by signing up at [https://apiverve.com](https://apiverve.com)

---

## Usage

The World Holidays API documentation is found here: [https://docs.apiverve.com/api/worldholidays](https://docs.apiverve.com/api/worldholidays).  
You can find parameters, example responses, and status codes documented here.

### Setup

```
# Import the client module
from apiverve_worldholidays.apiClient import WorldholidaysAPIClient

# Initialize the client with your APIVerve API key
api = WorldholidaysAPIClient("[YOUR_API_KEY]")
```

---


### Perform Request
Using the API client, you can perform requests to the API.

###### Define Query

```
query = { "country": "US",  "year": 2024 }
```

###### Simple Request

```
# Make a request to the API
result = api.execute(query)

# Print the result
print(result)
```

###### Example Response

```
{
  "status": "ok",
  "error": null,
  "data": {
    "country": "US",
    "year": "2024",
    "holidays": [
      {
        "date": "2024-01-01 00:00:00",
        "start": "2024-01-01T05:00:00Z",
        "end": "2024-01-02T05:00:00Z",
        "name": "New Year's Day",
        "type": "public"
      },
      {
        "date": "2024-01-15 00:00:00",
        "start": "2024-01-15T05:00:00Z",
        "end": "2024-01-16T05:00:00Z",
        "name": "Martin Luther King Jr. Day",
        "type": "public"
      },
      {
        "date": "2024-02-14 00:00:00",
        "start": "2024-02-14T05:00:00Z",
        "end": "2024-02-15T05:00:00Z",
        "name": "Valentine's Day",
        "type": "observance"
      },
      {
        "date": "2024-02-19 00:00:00",
        "start": "2024-02-19T05:00:00Z",
        "end": "2024-02-20T05:00:00Z",
        "name": "Washington's Birthday",
        "type": "public"
      },
      {
        "date": "2024-03-17 00:00:00",
        "start": "2024-03-17T04:00:00Z",
        "end": "2024-03-18T04:00:00Z",
        "name": "St. Patrick's Day",
        "type": "observance"
      },
      {
        "date": "2024-03-31 00:00:00",
        "start": "2024-03-31T04:00:00Z",
        "end": "2024-04-01T04:00:00Z",
        "name": "Easter Sunday",
        "type": "observance"
      },
      {
        "date": "2024-04-15 00:00:00",
        "start": "2024-04-15T04:00:00Z",
        "end": "2024-04-16T04:00:00Z",
        "name": "Tax Day",
        "type": "observance"
      },
      {
        "date": "2024-04-24 00:00:00",
        "start": "2024-04-24T04:00:00Z",
        "end": "2024-04-25T04:00:00Z",
        "name": "Administrative Professionals Day",
        "type": "observance"
      },
      {
        "date": "2024-05-12 00:00:00",
        "start": "2024-05-12T04:00:00Z",
        "end": "2024-05-13T04:00:00Z",
        "name": "Mother's Day",
        "type": "observance"
      },
      {
        "date": "2024-05-27 00:00:00",
        "start": "2024-05-27T04:00:00Z",
        "end": "2024-05-28T04:00:00Z",
        "name": "Memorial Day",
        "type": "public"
      },
      {
        "date": "2024-06-16 00:00:00",
        "start": "2024-06-16T04:00:00Z",
        "end": "2024-06-17T04:00:00Z",
        "name": "Father's Day",
        "type": "observance"
      },
      {
        "date": "2024-06-19 00:00:00",
        "start": "2024-06-19T04:00:00Z",
        "end": "2024-06-20T04:00:00Z",
        "name": "Juneteenth",
        "type": "public"
      },
      {
        "date": "2024-07-04 00:00:00",
        "start": "2024-07-04T04:00:00Z",
        "end": "2024-07-05T04:00:00Z",
        "name": "Independence Day",
        "type": "public"
      },
      {
        "date": "2024-09-02 00:00:00",
        "start": "2024-09-02T04:00:00Z",
        "end": "2024-09-03T04:00:00Z",
        "name": "Labor Day",
        "type": "public"
      },
      {
        "date": "2024-10-14 00:00:00",
        "start": "2024-10-14T04:00:00Z",
        "end": "2024-10-15T04:00:00Z",
        "name": "Columbus Day",
        "type": "public"
      },
      {
        "date": "2024-10-31 18:00:00",
        "start": "2024-10-31T22:00:00Z",
        "end": "2024-11-01T04:00:00Z",
        "name": "Halloween",
        "type": "observance"
      },
      {
        "date": "2024-11-05 00:00:00",
        "start": "2024-11-05T05:00:00Z",
        "end": "2024-11-06T05:00:00Z",
        "name": "Election Day",
        "type": "observance"
      },
      {
        "date": "2024-11-11 00:00:00",
        "start": "2024-11-11T05:00:00Z",
        "end": "2024-11-12T05:00:00Z",
        "name": "Veterans Day",
        "type": "public"
      },
      {
        "date": "2024-11-28 00:00:00",
        "start": "2024-11-28T05:00:00Z",
        "end": "2024-11-29T05:00:00Z",
        "name": "Thanksgiving Day",
        "type": "public"
      },
      {
        "date": "2024-11-29 00:00:00",
        "start": "2024-11-29T05:00:00Z",
        "end": "2024-11-30T05:00:00Z",
        "name": "Day after Thanksgiving Day",
        "type": "observance"
      },
      {
        "date": "2024-12-24 00:00:00",
        "start": "2024-12-24T05:00:00Z",
        "end": "2024-12-25T05:00:00Z",
        "name": "Christmas Eve",
        "type": "optional"
      },
      {
        "date": "2024-12-25 00:00:00",
        "start": "2024-12-25T05:00:00Z",
        "end": "2024-12-26T05:00:00Z",
        "name": "Christmas Day",
        "type": "public"
      },
      {
        "date": "2024-12-31 00:00:00",
        "start": "2024-12-31T05:00:00Z",
        "end": "2025-01-01T05:00:00Z",
        "name": "New Year's Eve",
        "type": "observance"
      }
    ]
  },
  "code": 200
}
```

---

## Customer Support

Need any assistance? [Get in touch with Customer Support](https://apiverve.com/contact).

---

## Updates
Stay up to date by following [@apiverveHQ](https://twitter.com/apiverveHQ) on Twitter.

---

## Legal

All usage of the APIVerve website, API, and services is subject to the [APIVerve Terms of Service](https://apiverve.com/terms) and all legal documents and agreements.

---

## License
Licensed under the The MIT License (MIT)

Copyright (©) 2024 APIVerve, and Evlar LLC

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "apiverve-worldholidays",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.12",
    "maintainer_email": null,
    "keywords": "world holidays, world holidays api, world holidays tool, world holidays software, world holidays service",
    "author": null,
    "author_email": "APIVerve <hello@apiverve.com>",
    "download_url": "https://files.pythonhosted.org/packages/d5/b8/2d9fb48a1615681f3d10d85e5caf3c2f042b4eb9ff4fcf24ad94c172ef23/apiverve_worldholidays-1.1.5.tar.gz",
    "platform": null,
    "description": "World Holidays API\r\n============\r\n\r\nWorld Holidays is a simple tool for getting the holidays of the world. It returns the holidays of the world for each day of the year.\r\n\r\n![Build Status](https://img.shields.io/badge/build-passing-green)\r\n![Code Climate](https://img.shields.io/badge/maintainability-B-purple)\r\n![Prod Ready](https://img.shields.io/badge/production-ready-blue)\r\n\r\nThis is a Python API Wrapper for the [World Holidays API](https://apiverve.com/marketplace/api/worldholidays)\r\n\r\n---\r\n\r\n## Installation\r\n\tpip install apiverve-worldholidays\r\n\r\n---\r\n\r\n## Configuration\r\n\r\nBefore using the worldholidays API client, you have to setup your account and obtain your API Key.  \r\nYou can get it by signing up at [https://apiverve.com](https://apiverve.com)\r\n\r\n---\r\n\r\n## Usage\r\n\r\nThe World Holidays API documentation is found here: [https://docs.apiverve.com/api/worldholidays](https://docs.apiverve.com/api/worldholidays).  \r\nYou can find parameters, example responses, and status codes documented here.\r\n\r\n### Setup\r\n\r\n```\r\n# Import the client module\r\nfrom apiverve_worldholidays.apiClient import WorldholidaysAPIClient\r\n\r\n# Initialize the client with your APIVerve API key\r\napi = WorldholidaysAPIClient(\"[YOUR_API_KEY]\")\r\n```\r\n\r\n---\r\n\r\n\r\n### Perform Request\r\nUsing the API client, you can perform requests to the API.\r\n\r\n###### Define Query\r\n\r\n```\r\nquery = { \"country\": \"US\",  \"year\": 2024 }\r\n```\r\n\r\n###### Simple Request\r\n\r\n```\r\n# Make a request to the API\r\nresult = api.execute(query)\r\n\r\n# Print the result\r\nprint(result)\r\n```\r\n\r\n###### Example Response\r\n\r\n```\r\n{\r\n  \"status\": \"ok\",\r\n  \"error\": null,\r\n  \"data\": {\r\n    \"country\": \"US\",\r\n    \"year\": \"2024\",\r\n    \"holidays\": [\r\n      {\r\n        \"date\": \"2024-01-01 00:00:00\",\r\n        \"start\": \"2024-01-01T05:00:00Z\",\r\n        \"end\": \"2024-01-02T05:00:00Z\",\r\n        \"name\": \"New Year's Day\",\r\n        \"type\": \"public\"\r\n      },\r\n      {\r\n        \"date\": \"2024-01-15 00:00:00\",\r\n        \"start\": \"2024-01-15T05:00:00Z\",\r\n        \"end\": \"2024-01-16T05:00:00Z\",\r\n        \"name\": \"Martin Luther King Jr. Day\",\r\n        \"type\": \"public\"\r\n      },\r\n      {\r\n        \"date\": \"2024-02-14 00:00:00\",\r\n        \"start\": \"2024-02-14T05:00:00Z\",\r\n        \"end\": \"2024-02-15T05:00:00Z\",\r\n        \"name\": \"Valentine's Day\",\r\n        \"type\": \"observance\"\r\n      },\r\n      {\r\n        \"date\": \"2024-02-19 00:00:00\",\r\n        \"start\": \"2024-02-19T05:00:00Z\",\r\n        \"end\": \"2024-02-20T05:00:00Z\",\r\n        \"name\": \"Washington's Birthday\",\r\n        \"type\": \"public\"\r\n      },\r\n      {\r\n        \"date\": \"2024-03-17 00:00:00\",\r\n        \"start\": \"2024-03-17T04:00:00Z\",\r\n        \"end\": \"2024-03-18T04:00:00Z\",\r\n        \"name\": \"St. Patrick's Day\",\r\n        \"type\": \"observance\"\r\n      },\r\n      {\r\n        \"date\": \"2024-03-31 00:00:00\",\r\n        \"start\": \"2024-03-31T04:00:00Z\",\r\n        \"end\": \"2024-04-01T04:00:00Z\",\r\n        \"name\": \"Easter Sunday\",\r\n        \"type\": \"observance\"\r\n      },\r\n      {\r\n        \"date\": \"2024-04-15 00:00:00\",\r\n        \"start\": \"2024-04-15T04:00:00Z\",\r\n        \"end\": \"2024-04-16T04:00:00Z\",\r\n        \"name\": \"Tax Day\",\r\n        \"type\": \"observance\"\r\n      },\r\n      {\r\n        \"date\": \"2024-04-24 00:00:00\",\r\n        \"start\": \"2024-04-24T04:00:00Z\",\r\n        \"end\": \"2024-04-25T04:00:00Z\",\r\n        \"name\": \"Administrative Professionals Day\",\r\n        \"type\": \"observance\"\r\n      },\r\n      {\r\n        \"date\": \"2024-05-12 00:00:00\",\r\n        \"start\": \"2024-05-12T04:00:00Z\",\r\n        \"end\": \"2024-05-13T04:00:00Z\",\r\n        \"name\": \"Mother's Day\",\r\n        \"type\": \"observance\"\r\n      },\r\n      {\r\n        \"date\": \"2024-05-27 00:00:00\",\r\n        \"start\": \"2024-05-27T04:00:00Z\",\r\n        \"end\": \"2024-05-28T04:00:00Z\",\r\n        \"name\": \"Memorial Day\",\r\n        \"type\": \"public\"\r\n      },\r\n      {\r\n        \"date\": \"2024-06-16 00:00:00\",\r\n        \"start\": \"2024-06-16T04:00:00Z\",\r\n        \"end\": \"2024-06-17T04:00:00Z\",\r\n        \"name\": \"Father's Day\",\r\n        \"type\": \"observance\"\r\n      },\r\n      {\r\n        \"date\": \"2024-06-19 00:00:00\",\r\n        \"start\": \"2024-06-19T04:00:00Z\",\r\n        \"end\": \"2024-06-20T04:00:00Z\",\r\n        \"name\": \"Juneteenth\",\r\n        \"type\": \"public\"\r\n      },\r\n      {\r\n        \"date\": \"2024-07-04 00:00:00\",\r\n        \"start\": \"2024-07-04T04:00:00Z\",\r\n        \"end\": \"2024-07-05T04:00:00Z\",\r\n        \"name\": \"Independence Day\",\r\n        \"type\": \"public\"\r\n      },\r\n      {\r\n        \"date\": \"2024-09-02 00:00:00\",\r\n        \"start\": \"2024-09-02T04:00:00Z\",\r\n        \"end\": \"2024-09-03T04:00:00Z\",\r\n        \"name\": \"Labor Day\",\r\n        \"type\": \"public\"\r\n      },\r\n      {\r\n        \"date\": \"2024-10-14 00:00:00\",\r\n        \"start\": \"2024-10-14T04:00:00Z\",\r\n        \"end\": \"2024-10-15T04:00:00Z\",\r\n        \"name\": \"Columbus Day\",\r\n        \"type\": \"public\"\r\n      },\r\n      {\r\n        \"date\": \"2024-10-31 18:00:00\",\r\n        \"start\": \"2024-10-31T22:00:00Z\",\r\n        \"end\": \"2024-11-01T04:00:00Z\",\r\n        \"name\": \"Halloween\",\r\n        \"type\": \"observance\"\r\n      },\r\n      {\r\n        \"date\": \"2024-11-05 00:00:00\",\r\n        \"start\": \"2024-11-05T05:00:00Z\",\r\n        \"end\": \"2024-11-06T05:00:00Z\",\r\n        \"name\": \"Election Day\",\r\n        \"type\": \"observance\"\r\n      },\r\n      {\r\n        \"date\": \"2024-11-11 00:00:00\",\r\n        \"start\": \"2024-11-11T05:00:00Z\",\r\n        \"end\": \"2024-11-12T05:00:00Z\",\r\n        \"name\": \"Veterans Day\",\r\n        \"type\": \"public\"\r\n      },\r\n      {\r\n        \"date\": \"2024-11-28 00:00:00\",\r\n        \"start\": \"2024-11-28T05:00:00Z\",\r\n        \"end\": \"2024-11-29T05:00:00Z\",\r\n        \"name\": \"Thanksgiving Day\",\r\n        \"type\": \"public\"\r\n      },\r\n      {\r\n        \"date\": \"2024-11-29 00:00:00\",\r\n        \"start\": \"2024-11-29T05:00:00Z\",\r\n        \"end\": \"2024-11-30T05:00:00Z\",\r\n        \"name\": \"Day after Thanksgiving Day\",\r\n        \"type\": \"observance\"\r\n      },\r\n      {\r\n        \"date\": \"2024-12-24 00:00:00\",\r\n        \"start\": \"2024-12-24T05:00:00Z\",\r\n        \"end\": \"2024-12-25T05:00:00Z\",\r\n        \"name\": \"Christmas Eve\",\r\n        \"type\": \"optional\"\r\n      },\r\n      {\r\n        \"date\": \"2024-12-25 00:00:00\",\r\n        \"start\": \"2024-12-25T05:00:00Z\",\r\n        \"end\": \"2024-12-26T05:00:00Z\",\r\n        \"name\": \"Christmas Day\",\r\n        \"type\": \"public\"\r\n      },\r\n      {\r\n        \"date\": \"2024-12-31 00:00:00\",\r\n        \"start\": \"2024-12-31T05:00:00Z\",\r\n        \"end\": \"2025-01-01T05:00:00Z\",\r\n        \"name\": \"New Year's Eve\",\r\n        \"type\": \"observance\"\r\n      }\r\n    ]\r\n  },\r\n  \"code\": 200\r\n}\r\n```\r\n\r\n---\r\n\r\n## Customer Support\r\n\r\nNeed any assistance? [Get in touch with Customer Support](https://apiverve.com/contact).\r\n\r\n---\r\n\r\n## Updates\r\nStay up to date by following [@apiverveHQ](https://twitter.com/apiverveHQ) on Twitter.\r\n\r\n---\r\n\r\n## Legal\r\n\r\nAll usage of the APIVerve website, API, and services is subject to the [APIVerve Terms of Service](https://apiverve.com/terms) and all legal documents and agreements.\r\n\r\n---\r\n\r\n## License\r\nLicensed under the The MIT License (MIT)\r\n\r\nCopyright (&copy;) 2024 APIVerve, and Evlar LLC\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "World Holidays is a simple tool for getting the holidays of the world. It returns the holidays of the world for each day of the year.",
    "version": "1.1.5",
    "project_urls": {
        "Documentation": "https://docs.apiverve.com/api/worldholidays?utm_source=pypi",
        "Homepage": "https://apiverve.com?utm_source=pypi",
        "Repository": "https://github.com/apiverve/worldholidays.Python-API",
        "Twitter": "https://twitter.com/apivervehq"
    },
    "split_keywords": [
        "world holidays",
        " world holidays api",
        " world holidays tool",
        " world holidays software",
        " world holidays service"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "62bebffba2d94f8f95871a4660f161e78465d5b7bcd5050ed38fe21111786494",
                "md5": "7a7a5fdc3d463975f0e69af7df31422f",
                "sha256": "097d9883b0c1519da18fa5a19ab79a0a2294c345300442efbe057638cfca9b47"
            },
            "downloads": -1,
            "filename": "apiverve_worldholidays-1.1.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7a7a5fdc3d463975f0e69af7df31422f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.12",
            "size": 7905,
            "upload_time": "2024-09-21T07:12:02",
            "upload_time_iso_8601": "2024-09-21T07:12:02.254548Z",
            "url": "https://files.pythonhosted.org/packages/62/be/bffba2d94f8f95871a4660f161e78465d5b7bcd5050ed38fe21111786494/apiverve_worldholidays-1.1.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d5b82d9fb48a1615681f3d10d85e5caf3c2f042b4eb9ff4fcf24ad94c172ef23",
                "md5": "3abf09a708bb1a72943290ee8004949f",
                "sha256": "e656a3174061a4d2ba8b1aabdc4de1d6d0ab3ea377766507b4c7ccc266455011"
            },
            "downloads": -1,
            "filename": "apiverve_worldholidays-1.1.5.tar.gz",
            "has_sig": false,
            "md5_digest": "3abf09a708bb1a72943290ee8004949f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.12",
            "size": 8176,
            "upload_time": "2024-09-21T07:12:03",
            "upload_time_iso_8601": "2024-09-21T07:12:03.204080Z",
            "url": "https://files.pythonhosted.org/packages/d5/b8/2d9fb48a1615681f3d10d85e5caf3c2f042b4eb9ff4fcf24ad94c172ef23/apiverve_worldholidays-1.1.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-21 07:12:03",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "apiverve",
    "github_project": "worldholidays.Python-API",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "apiverve-worldholidays"
}
        
Elapsed time: 3.99157s