Skip to main content

Python API wrapper for weather-api

Project description

Taranis

Version Build License

Taranis is a Python API wrapper for weather-api. It provides quick and easy retrieval of weather data for a given city.

Installation:

Install and update using pip:

pip install -U taranis

Usage:

Import the module:

>>> import taranis

Then call any of the below functions:

>>> taranis.get_weather('San Francisco')
{'temperature': '+15 °C', 'wind': '24 km/h', 'description': 'Partly cloudy', 'forecast': [{'day': '1', 'temperature': '20 °C', 'wind': '18 km/h'}, {'day': '2', 'temperature': '16 °C', 'wind': '22 km/h'}, {'day': '3', 'temperature': '17 °C', 'wind': '12 km/h'}]}
>>> taranis.get_temperature('San Francisco')
'+15 °C'
>>> taranis.get_wind('San Francisco')
'24 km/h'
>>> taranis.get_description('San Francisco')
'Partly cloudy'
>>> taranis.get_forecast('San Francisco')
[{'day': '1', 'temperature': '20 °C', 'wind': '18 km/h'}, {'day': '2', 'temperature': '16 °C', 'wind': '22 km/h'}, {'day': '3', 'temperature': '17 °C', 'wind': '12 km/h'}]

Project details


Download files

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

Source Distribution

taranis-0.2.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

taranis-0.2.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file taranis-0.2.0.tar.gz.

File metadata

  • Download URL: taranis-0.2.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10

File hashes

Hashes for taranis-0.2.0.tar.gz
Algorithm Hash digest
SHA256 73928e4ca91a9e7676f04a633a4d73bb14445b98a71649dd107e4a3e18694f00
MD5 de7f5b554e45a68475c82b8ada5d0f4b
BLAKE2b-256 eb369378710b045739684077429a6d3ece422791df280f23443e78d3ee9ef19e

See more details on using hashes here.

File details

Details for the file taranis-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: taranis-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10

File hashes

Hashes for taranis-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a6e26b59ccd0a6a0d8ac151409f2dff1753d36e47f44c179ab017f6396d35cb2
MD5 785175486427a06677269e6b6e40318c
BLAKE2b-256 0782663f57f6194e64738dd4afd61ca031493a6d65d73620a0a2ccdbb76977c3

See more details on using hashes here.

Supported by

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