Skip to main content

Weather Seasons is a simple tool for getting the dates of the solstice and equinox. It returns the dates of the solstice and equinox for a given year.

Project description

Weather Seasons API

Weather Seasons is a simple tool for getting the dates of the solstice and equinox. It returns the dates of the solstice and equinox for a given year.

Build Status Code Climate Prod Ready

This is a Python API Wrapper for the Weather Seasons API


Installation

pip install apiverve-weatherseasons

Configuration

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


Usage

The Weather Seasons API documentation is found here: https://docs.apiverve.com/api/weatherseasons.
You can find parameters, example responses, and status codes documented here.

Setup

# Import the client module
from apiverve_weatherseasons.apiClient import WeatherseasonsAPIClient

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

Perform Request

Using the API client, you can perform requests to the API.

Define Query
query = { "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": {
    "year": 2024,
    "timezone": "UTC",
    "march_equinox": "2024-03-20 03:06:24",
    "june_solstice": "2024-06-20 20:50:58",
    "september_equinox": "2024-09-22 12:43:55",
    "december_solstice": "2024-12-21 09:20:18"
  },
  "code": 200
}

Customer Support

Need any assistance? Get in touch with Customer Support.


Updates

Stay up to date by following @apiverveHQ on Twitter.


Legal

All usage of the APIVerve website, API, and services is subject to the APIVerve Terms of Service 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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apiverve_weatherseasons-1.1.5.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

apiverve_weatherseasons-1.1.5-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file apiverve_weatherseasons-1.1.5.tar.gz.

File metadata

File hashes

Hashes for apiverve_weatherseasons-1.1.5.tar.gz
Algorithm Hash digest
SHA256 a0b4f28778a7c996833e8fca9404b0aaeeacb4068322647b4a5d699f97f68da9
MD5 a871f75156b5502da64d25859ce05a4f
BLAKE2b-256 1c7ab03af50535a7432544ba0dfeec8dd2b346244b8fd3088adf9fb964a0532e

See more details on using hashes here.

File details

Details for the file apiverve_weatherseasons-1.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for apiverve_weatherseasons-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 9bfde988457262f3d4718bf8160b453553e4526815584c22c1d8dc2bcfe9f497
MD5 aa6b3351acae59efbff814d694518d93
BLAKE2b-256 f0f899b650abdf0f970f0a0faf2b434495012e8983ca46308ce8f8efd8df6ac6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page