Skip to main content

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'}]

Metadata

Release files for taranis 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for taranis 0.2.0
File Size Uploaded
taranis-0.2.0.tar.gz 2.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for taranis 0.2.0
File Interpreter ABI Platform
taranis-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.9 kB

Release files / taranis-0.2.0.tar.gz

Download URL taranis-0.2.0.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
73928e4ca91a9e7676f04a633a4d73bb14445b98a71649dd107e4a3e18694f00
BLAKE2b-256 checksum
How to use checksums
eb369378710b045739684077429a6d3ece422791df280f23443e78d3ee9ef19e
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / taranis-0.2.0-py3-none-any.whl

Download URL taranis-0.2.0-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a6e26b59ccd0a6a0d8ac151409f2dff1753d36e47f44c179ab017f6396d35cb2
BLAKE2b-256 checksum
How to use checksums
0782663f57f6194e64738dd4afd61ca031493a6d65d73620a0a2ccdbb76977c3
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page