apiverve-worldtime


Nameapiverve-worldtime JSON
Version 1.0.11 PyPI version JSON
download
home_pageNone
SummaryWorld Time is a simple tool for getting the current time in any city. It returns the current time, date, and more.
upload_time2024-05-28 15:02:13
maintainerNone
docs_urlNone
authorNone
requires_python>=3.12
licenseNone
keywords time world time current time time zone time zone api
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            World Time API
============

World Time is a simple tool for getting the current time in any city. It returns the current time, date, and more.

![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 Time API](https://apiverve.com/marketplace/api/worldtime)

---

## Installation
	pip install apiverve-worldtime

---

## Configuration

Before using the worldtime 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 Time API documentation is found here: [https://docs.apiverve.com/api/worldtime](https://docs.apiverve.com/api/worldtime).  
You can find parameters, example responses, and status codes documented here.

### Setup

```
# Import the client module
from apiverve_worldtime.apiClient import WorldtimeAPIClient

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

---


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

###### Define Query

```
query = { "city": "San Francisco" }
```

###### Simple Request

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

# Print the result
print(result)
```

###### Example Response

```
{
  "status": "ok",
  "error": null,
  "data": {
    "search": "San Francisco",
    "foundCities": [
      {
        "city": "San Francisco",
        "city_ascii": "San Francisco",
        "country": "Argentina",
        "iso2": "AR",
        "iso3": "ARG",
        "province": "Córdoba",
        "timezone": "America/Argentina/Cordoba",
        "time": "18:53",
        "time24": "18:53:54",
        "time12": "06:53:54 PM",
        "date": "2024-05-15",
        "day": "Wednesday",
        "month": "May",
        "year": "2024",
        "unix": "1715810034",
        "dst": false,
        "dst_start": "2024-05-15 18:53:54",
        "dst_end": "2024-05-15 18:53:54",
        "dst_name": "-03"
      },
      {
        "city": "San Francisco",
        "city_ascii": "San Francisco",
        "country": "United States of America",
        "iso2": "US",
        "iso3": "USA",
        "province": "California",
        "state_ansi": "CA",
        "timezone": "America/Los_Angeles",
        "time": "14:53",
        "time24": "14:53:54",
        "time12": "02:53:54 PM",
        "date": "2024-05-15",
        "day": "Wednesday",
        "month": "May",
        "year": "2024",
        "unix": "1715810034",
        "dst": true,
        "dst_start": "2024-05-15 14:53:54",
        "dst_end": "2024-05-15 14:53:54",
        "dst_name": "PDT"
      }
    ]
  }
}
```

---

## 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-worldtime",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.12",
    "maintainer_email": null,
    "keywords": "time, world time, current time, time zone, time zone api",
    "author": null,
    "author_email": "APIVerve <hello@apiverve.com>",
    "download_url": "https://files.pythonhosted.org/packages/52/ef/bf0ef813af2a50ea49b4979db528da37d1b8c2e5f258520df467ad5f5264/apiverve_worldtime-1.0.11.tar.gz",
    "platform": null,
    "description": "World Time API\r\n============\r\n\r\nWorld Time is a simple tool for getting the current time in any city. It returns the current time, date, and more.\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 Time API](https://apiverve.com/marketplace/api/worldtime)\r\n\r\n---\r\n\r\n## Installation\r\n\tpip install apiverve-worldtime\r\n\r\n---\r\n\r\n## Configuration\r\n\r\nBefore using the worldtime 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 Time API documentation is found here: [https://docs.apiverve.com/api/worldtime](https://docs.apiverve.com/api/worldtime).  \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_worldtime.apiClient import WorldtimeAPIClient\r\n\r\n# Initialize the client with your APIVerve API key\r\napi = WorldtimeAPIClient(\"[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 = { \"city\": \"San Francisco\" }\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    \"search\": \"San Francisco\",\r\n    \"foundCities\": [\r\n      {\r\n        \"city\": \"San Francisco\",\r\n        \"city_ascii\": \"San Francisco\",\r\n        \"country\": \"Argentina\",\r\n        \"iso2\": \"AR\",\r\n        \"iso3\": \"ARG\",\r\n        \"province\": \"C\u00f3rdoba\",\r\n        \"timezone\": \"America/Argentina/Cordoba\",\r\n        \"time\": \"18:53\",\r\n        \"time24\": \"18:53:54\",\r\n        \"time12\": \"06:53:54 PM\",\r\n        \"date\": \"2024-05-15\",\r\n        \"day\": \"Wednesday\",\r\n        \"month\": \"May\",\r\n        \"year\": \"2024\",\r\n        \"unix\": \"1715810034\",\r\n        \"dst\": false,\r\n        \"dst_start\": \"2024-05-15 18:53:54\",\r\n        \"dst_end\": \"2024-05-15 18:53:54\",\r\n        \"dst_name\": \"-03\"\r\n      },\r\n      {\r\n        \"city\": \"San Francisco\",\r\n        \"city_ascii\": \"San Francisco\",\r\n        \"country\": \"United States of America\",\r\n        \"iso2\": \"US\",\r\n        \"iso3\": \"USA\",\r\n        \"province\": \"California\",\r\n        \"state_ansi\": \"CA\",\r\n        \"timezone\": \"America/Los_Angeles\",\r\n        \"time\": \"14:53\",\r\n        \"time24\": \"14:53:54\",\r\n        \"time12\": \"02:53:54 PM\",\r\n        \"date\": \"2024-05-15\",\r\n        \"day\": \"Wednesday\",\r\n        \"month\": \"May\",\r\n        \"year\": \"2024\",\r\n        \"unix\": \"1715810034\",\r\n        \"dst\": true,\r\n        \"dst_start\": \"2024-05-15 14:53:54\",\r\n        \"dst_end\": \"2024-05-15 14:53:54\",\r\n        \"dst_name\": \"PDT\"\r\n      }\r\n    ]\r\n  }\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 Time is a simple tool for getting the current time in any city. It returns the current time, date, and more.",
    "version": "1.0.11",
    "project_urls": {
        "Homepage": "https://apiverve.com"
    },
    "split_keywords": [
        "time",
        " world time",
        " current time",
        " time zone",
        " time zone api"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "eab168c56fa5abb07117f4e160bc7fe9e1b82db1debfd6f2a464f557f459048b",
                "md5": "1c9f7e325c99c28b6ecab0a6f29198b8",
                "sha256": "ab9cd91589a938441af1df842cdbf6d2b49a62b85825a2d5b0948a61910b9b65"
            },
            "downloads": -1,
            "filename": "apiverve_worldtime-1.0.11-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1c9f7e325c99c28b6ecab0a6f29198b8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.12",
            "size": 6687,
            "upload_time": "2024-05-28T15:02:12",
            "upload_time_iso_8601": "2024-05-28T15:02:12.707570Z",
            "url": "https://files.pythonhosted.org/packages/ea/b1/68c56fa5abb07117f4e160bc7fe9e1b82db1debfd6f2a464f557f459048b/apiverve_worldtime-1.0.11-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "52efbf0ef813af2a50ea49b4979db528da37d1b8c2e5f258520df467ad5f5264",
                "md5": "18750c7ed94b153c244260d10a3f354b",
                "sha256": "dd212e160b4db1ba6990709a6f94f854f9dd7a809a18a088e5958afbf52f924a"
            },
            "downloads": -1,
            "filename": "apiverve_worldtime-1.0.11.tar.gz",
            "has_sig": false,
            "md5_digest": "18750c7ed94b153c244260d10a3f354b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.12",
            "size": 7065,
            "upload_time": "2024-05-28T15:02:13",
            "upload_time_iso_8601": "2024-05-28T15:02:13.973841Z",
            "url": "https://files.pythonhosted.org/packages/52/ef/bf0ef813af2a50ea49b4979db528da37d1b8c2e5f258520df467ad5f5264/apiverve_worldtime-1.0.11.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-28 15:02:13",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "apiverve-worldtime"
}
        
Elapsed time: 0.24457s