pythonapikit


Namepythonapikit JSON
Version 0.0.2 PyPI version JSON
download
home_page
SummaryCollection of different APIs.
upload_time2023-11-16 20:42:22
maintainer
docs_urlNone
authorShadowFlameFox
requires_python
license
keywords python api weather collection integration wrapper client request endpoint http rest web services connector utility toolset helper manager facade handler assist bundle kit
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # API-Kit Python Library
## Overview
The WeatherAPI Python library is a simple tool designed to interact with the WeatherAPI service, allowing users to retrieve weather information for a specific location.

## Features
Get the current temperature.
Retrieve the maximum temperature for the day.
Obtain the minimum temperature for the day.
Retrieve the average temperature for the day.
Installation
To use the WeatherAPI library, you need to install it using the following command:
`pip install pythonapikit`
## Usage
### Initializing the WeatherAPI Object
```
from pythonapikit import WeatherAPI

weatherapi_key = "YOUR_WEATHERAPI_KEY"`
location = "City, Country"`
unit = "c"  # Temperature unit, default is Celsius
weather = WeatherAPI(weatherapi_key, location, unit)
```
### Getting Current Temperature
```
current_temperature = weather.get_current_temperature()
print(f"Current Temperature: {current_temperature}°{unit.upper()}")
```
### Getting Maximum Temperature
```
max_temperature = weather.get_max_temperature()
print(f"Maximum Temperature: {max_temperature}°{unit.upper()}")
```
### Getting Minimum Temperature
```
min_temperature = weather.get_min_temperature()
print(f"Minimum Temperature: {min_temperature}°{unit.upper()}")
```
### Getting Average Temperature
```
avg_temperature = weather.get_avg_temperature()
print(f"Average Temperature: {avg_temperature}°{unit.upper()}")
```
## Dependencies
[requests](https://pypi.org/project/requests/): Used for making HTTP requests to the WeatherAPI service.
## License
This library is licensed under the [MIT License].

## Contributing
Contributions are welcome! Feel free to open issues or submit pull requests on the [GitHub repository](https://github.com/ShadowFlameFox/API-Kit/).

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "pythonapikit",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "Python,API,weather,Collection,Integration,Wrapper,Client,Request,Endpoint,HTTP,REST,Web Services,Connector,Utility,Toolset,Helper,Manager,Facade,Handler,Assist,Bundle,Kit",
    "author": "ShadowFlameFox",
    "author_email": "<shadow_flame_fox@web.de>",
    "download_url": "https://files.pythonhosted.org/packages/55/6f/65ba69fe7e943547e5564f70802f7726a285bc0032bdfce312380d2bd856/pythonapikit-0.0.2.tar.gz",
    "platform": null,
    "description": "# API-Kit Python Library\r\n## Overview\r\nThe WeatherAPI Python library is a simple tool designed to interact with the WeatherAPI service, allowing users to retrieve weather information for a specific location.\r\n\r\n## Features\r\nGet the current temperature.\r\nRetrieve the maximum temperature for the day.\r\nObtain the minimum temperature for the day.\r\nRetrieve the average temperature for the day.\r\nInstallation\r\nTo use the WeatherAPI library, you need to install it using the following command:\r\n`pip install pythonapikit`\r\n## Usage\r\n### Initializing the WeatherAPI Object\r\n```\r\nfrom pythonapikit import WeatherAPI\r\n\r\nweatherapi_key = \"YOUR_WEATHERAPI_KEY\"`\r\nlocation = \"City, Country\"`\r\nunit = \"c\"  # Temperature unit, default is Celsius\r\nweather = WeatherAPI(weatherapi_key, location, unit)\r\n```\r\n### Getting Current Temperature\r\n```\r\ncurrent_temperature = weather.get_current_temperature()\r\nprint(f\"Current Temperature: {current_temperature}\u00b0{unit.upper()}\")\r\n```\r\n### Getting Maximum Temperature\r\n```\r\nmax_temperature = weather.get_max_temperature()\r\nprint(f\"Maximum Temperature: {max_temperature}\u00b0{unit.upper()}\")\r\n```\r\n### Getting Minimum Temperature\r\n```\r\nmin_temperature = weather.get_min_temperature()\r\nprint(f\"Minimum Temperature: {min_temperature}\u00b0{unit.upper()}\")\r\n```\r\n### Getting Average Temperature\r\n```\r\navg_temperature = weather.get_avg_temperature()\r\nprint(f\"Average Temperature: {avg_temperature}\u00b0{unit.upper()}\")\r\n```\r\n## Dependencies\r\n[requests](https://pypi.org/project/requests/): Used for making HTTP requests to the WeatherAPI service.\r\n## License\r\nThis library is licensed under the [MIT License].\r\n\r\n## Contributing\r\nContributions are welcome! Feel free to open issues or submit pull requests on the [GitHub repository](https://github.com/ShadowFlameFox/API-Kit/).\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Collection of different APIs.",
    "version": "0.0.2",
    "project_urls": null,
    "split_keywords": [
        "python",
        "api",
        "weather",
        "collection",
        "integration",
        "wrapper",
        "client",
        "request",
        "endpoint",
        "http",
        "rest",
        "web services",
        "connector",
        "utility",
        "toolset",
        "helper",
        "manager",
        "facade",
        "handler",
        "assist",
        "bundle",
        "kit"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a2ef227b6dcf1842ea579c1e85d5d04440974235f91d397540290b75f361c44c",
                "md5": "31ba8dc774761c41ea68966c8865ac40",
                "sha256": "1575aa4c6a6acde9fa6d3f468343e6fff38e27f59b3aef7d8999ecb785985f8c"
            },
            "downloads": -1,
            "filename": "pythonapikit-0.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "31ba8dc774761c41ea68966c8865ac40",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 3432,
            "upload_time": "2023-11-16T20:42:18",
            "upload_time_iso_8601": "2023-11-16T20:42:18.787420Z",
            "url": "https://files.pythonhosted.org/packages/a2/ef/227b6dcf1842ea579c1e85d5d04440974235f91d397540290b75f361c44c/pythonapikit-0.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "556f65ba69fe7e943547e5564f70802f7726a285bc0032bdfce312380d2bd856",
                "md5": "c04902ecc89ac2d56753291054948f83",
                "sha256": "e1f2d83c621b701fd5f8b8f9e86344d94eab399791ef5488db953c29e0c798b9"
            },
            "downloads": -1,
            "filename": "pythonapikit-0.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "c04902ecc89ac2d56753291054948f83",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2565,
            "upload_time": "2023-11-16T20:42:22",
            "upload_time_iso_8601": "2023-11-16T20:42:22.922730Z",
            "url": "https://files.pythonhosted.org/packages/55/6f/65ba69fe7e943547e5564f70802f7726a285bc0032bdfce312380d2bd856/pythonapikit-0.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-16 20:42:22",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "pythonapikit"
}
        
Elapsed time: 0.15225s