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.1.0.tar.gz (2.9 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.1.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: taranis-0.1.0.tar.gz
  • Upload date:
  • Size: 2.9 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.1.0.tar.gz
Algorithm Hash digest
SHA256 d90016f454fa7a48855f1e2dc99b7db24c1dba929619f5b40e43637b07b990e9
MD5 6ea8332092c66d74c97343b44ea243bc
BLAKE2b-256 66b1e63c85be003c87f967ef360720903ec6a654a1af1be71baec388d16ede87

See more details on using hashes here.

File details

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

File metadata

  • Download URL: taranis-0.1.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 94ffdbae71f9f7d8dc76bb17786ba9d35e7d393ce0bd02861fb31822005e4215
MD5 451e5eca8f869999ec2df112d47c479c
BLAKE2b-256 b373d8fbb90155d48cd0a9d3b2f75d3bd35f7d427e6698c23c78233d31851540

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