meteostat-cli 0.2.0__tar.gz → 0.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {meteostat_cli-0.2.0 → meteostat_cli-0.3.0}/.claude/skills/meteo/SKILL.md +5 -21
- meteostat_cli-0.3.0/PKG-INFO +122 -0
- meteostat_cli-0.3.0/README.md +95 -0
- meteostat_cli-0.3.0/demo.gif +0 -0
- meteostat_cli-0.3.0/demo.yml +266 -0
- {meteostat_cli-0.2.0 → meteostat_cli-0.3.0}/meteo/__init__.py +1 -1
- {meteostat_cli-0.2.0 → meteostat_cli-0.3.0}/pyproject.toml +2 -1
- {meteostat_cli-0.2.0 → meteostat_cli-0.3.0}/uv.lock +1 -1
- meteostat_cli-0.2.0/.claude/skills/meteo/examples.md +0 -72
- meteostat_cli-0.2.0/PKG-INFO +0 -254
- meteostat_cli-0.2.0/README.md +0 -227
- {meteostat_cli-0.2.0 → meteostat_cli-0.3.0}/.github/workflows/lint.yml +0 -0
- {meteostat_cli-0.2.0 → meteostat_cli-0.3.0}/.github/workflows/publish.yml +0 -0
- {meteostat_cli-0.2.0 → meteostat_cli-0.3.0}/.github/workflows/test.yml +0 -0
- {meteostat_cli-0.2.0 → meteostat_cli-0.3.0}/.gitignore +0 -0
- {meteostat_cli-0.2.0 → meteostat_cli-0.3.0}/LICENSE +0 -0
- {meteostat_cli-0.2.0 → meteostat_cli-0.3.0}/meteo/cli.py +0 -0
- {meteostat_cli-0.2.0 → meteostat_cli-0.3.0}/meteo/commands/__init__.py +0 -0
- {meteostat_cli-0.2.0 → meteostat_cli-0.3.0}/meteo/commands/config.py +0 -0
- {meteostat_cli-0.2.0 → meteostat_cli-0.3.0}/meteo/commands/daily.py +0 -0
- {meteostat_cli-0.2.0 → meteostat_cli-0.3.0}/meteo/commands/hourly.py +0 -0
- {meteostat_cli-0.2.0 → meteostat_cli-0.3.0}/meteo/commands/inventory.py +0 -0
- {meteostat_cli-0.2.0 → meteostat_cli-0.3.0}/meteo/commands/monthly.py +0 -0
- {meteostat_cli-0.2.0 → meteostat_cli-0.3.0}/meteo/commands/nearby.py +0 -0
- {meteostat_cli-0.2.0 → meteostat_cli-0.3.0}/meteo/commands/normals.py +0 -0
- {meteostat_cli-0.2.0 → meteostat_cli-0.3.0}/meteo/commands/station.py +0 -0
- {meteostat_cli-0.2.0 → meteostat_cli-0.3.0}/meteo/config.py +0 -0
- {meteostat_cli-0.2.0 → meteostat_cli-0.3.0}/meteo/plotting.py +0 -0
- {meteostat_cli-0.2.0 → meteostat_cli-0.3.0}/meteo/utils.py +0 -0
- {meteostat_cli-0.2.0 → meteostat_cli-0.3.0}/tests/__init__.py +0 -0
- {meteostat_cli-0.2.0 → meteostat_cli-0.3.0}/tests/conftest.py +0 -0
- {meteostat_cli-0.2.0 → meteostat_cli-0.3.0}/tests/test_cli.py +0 -0
- {meteostat_cli-0.2.0 → meteostat_cli-0.3.0}/tests/test_commands.py +0 -0
- {meteostat_cli-0.2.0 → meteostat_cli-0.3.0}/tests/test_config.py +0 -0
- {meteostat_cli-0.2.0 → meteostat_cli-0.3.0}/tests/test_utils.py +0 -0
|
@@ -5,34 +5,18 @@ description: Access weather and climate data for thousands of weather stations a
|
|
|
5
5
|
|
|
6
6
|
# Meteo
|
|
7
7
|
|
|
8
|
-
## Usage
|
|
9
|
-
|
|
10
|
-
If the `meteo` command is not found, install the tool using:
|
|
11
|
-
|
|
12
|
-
```bash
|
|
13
|
-
uv tool install meteostat-cli
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
Alternatively, you can use `uvx`:
|
|
17
|
-
|
|
18
|
-
```bash
|
|
19
|
-
uvx --from meteostat-cli meteo
|
|
20
|
-
```
|
|
21
|
-
|
|
22
8
|
## Commands
|
|
23
9
|
|
|
24
|
-
|
|
10
|
+
Meteo is a CLI tool, run `meteo --help` to see a list of all available commands and options.
|
|
25
11
|
|
|
26
12
|
## Gotchas
|
|
27
13
|
|
|
28
|
-
-
|
|
29
|
-
-
|
|
14
|
+
- If the `meteo` command is not found, use uvx: `uvx meteostat-cli [YOUR_COMMAND]`
|
|
15
|
+
- `meteo nearby` requires numeric `LAT,LON` argument — city names are not accepted; use coordinates directly
|
|
16
|
+
- When looking for stations that match the elevation of a place, use `meteo nearby` without a radius and filter results by elevation
|
|
30
17
|
- Pass multiple station IDs in one call instead of looping: `meteo daily D1424 EDEV0 10635 --start 2025 --end 2025`
|
|
31
18
|
- Fetch only the columns you need with `--parameters` to eliminate post-processing: `--parameters tmax` or `--parameters tmax,prcp`
|
|
32
19
|
- Aggregate all rows with `--agg` (Pandas `.agg()`): `--agg max`, `--agg mean`, `--agg sum`
|
|
33
20
|
- `--start` and `--end` accept YYYY-MM-DD, YYYY-MM, YYYY
|
|
34
21
|
- Machine-readable output for piping: `--format json` or `--format csv`
|
|
35
|
-
|
|
36
|
-
## Additional resources
|
|
37
|
-
|
|
38
|
-
- For usage examples, see [examples.md](examples.md)
|
|
22
|
+
- To get the date of extreme values, fetch the parameter without aggregation and filter with `sort` after fetching: `meteo daily D1424 --start 2025-01-01 --end 2025-12-31 --parameters tmax -f csv | awk -F',' 'NR>1' | sort -t',' -k3 -rn | head -1`
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: meteostat-cli
|
|
3
|
+
Version: 0.3.0
|
|
4
|
+
Summary: Access weather and climate data through the terminal.
|
|
5
|
+
Project-URL: Homepage, https://github.com/meteostat/cli
|
|
6
|
+
Project-URL: Repository, https://github.com/meteostat/cli
|
|
7
|
+
Project-URL: Issues, https://github.com/meteostat/cli/issues
|
|
8
|
+
Author-email: Meteostat <info@meteostat.net>
|
|
9
|
+
License: MIT
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Keywords: cli,climate,meteostat,weather
|
|
12
|
+
Classifier: Environment :: Console
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Intended Audience :: Science/Research
|
|
15
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Classifier: Topic :: Scientific/Engineering :: Atmospheric Science
|
|
20
|
+
Requires-Python: >=3.11
|
|
21
|
+
Requires-Dist: meteostat<3,>=2.1.4
|
|
22
|
+
Requires-Dist: pyyaml>=6.0
|
|
23
|
+
Requires-Dist: typer>=0.15.0
|
|
24
|
+
Provides-Extra: plot
|
|
25
|
+
Requires-Dist: matplotlib>=3.9.0; extra == 'plot'
|
|
26
|
+
Description-Content-Type: text/markdown
|
|
27
|
+
|
|
28
|
+
<!-- PROJECT SHIELDS -->
|
|
29
|
+
<div align="center">
|
|
30
|
+
|
|
31
|
+
[![PyPI Version][pypi-shield]][pypi-url]
|
|
32
|
+
[![Issues][issues-shield]][issues-url]
|
|
33
|
+
[![MIT License][license-shield]][license-url]
|
|
34
|
+
|
|
35
|
+
</div>
|
|
36
|
+
|
|
37
|
+
<!-- PROJECT LOGO -->
|
|
38
|
+
<br />
|
|
39
|
+
<div align="center">
|
|
40
|
+
<a href="https://github.com/meteostat/cli">
|
|
41
|
+
<img src="https://media.meteostat.net/icon.svg" alt="Meteostat Logo" width="80" height="80">
|
|
42
|
+
</a>
|
|
43
|
+
|
|
44
|
+
<h3 align="center">Meteostat CLI</h3>
|
|
45
|
+
|
|
46
|
+
<p align="center">
|
|
47
|
+
Access weather and climate data through the terminal.
|
|
48
|
+
<p>
|
|
49
|
+
<a href="https://dev.meteostat.net/cli"><strong>Explore the docs »</strong></a>
|
|
50
|
+
</p>
|
|
51
|
+
<p>
|
|
52
|
+
<a href="https://meteostat.net">Visit Website</a>
|
|
53
|
+
·
|
|
54
|
+
<a href="https://github.com/meteostat/cli/issues">Report Bug</a>
|
|
55
|
+
·
|
|
56
|
+
<a href="https://github.com/orgs/meteostat/discussions">Request Feature</a>
|
|
57
|
+
</p>
|
|
58
|
+
</p>
|
|
59
|
+
</div>
|
|
60
|
+
|
|
61
|
+

|
|
62
|
+
|
|
63
|
+
## 📚 Installation
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
uv tool install meteostat-cli
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
For plotting capabilities (`png` and `svg` output), install the `plot` extra:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
uv tool install "meteostat-cli[plot]"
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Alternatively, you can use `uvx`:
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
uvx meteostat-cli [YOUR_COMMAND]
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### ⚡ Shell Completion
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
meteo --install-completion # Bash, Zsh, Fish, PowerShell
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## 🚀 Usage
|
|
88
|
+
|
|
89
|
+
Want to know the hottest temperature of 2024 at Frankfurt Airport (station `10637`)? Run the following command:
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
meteo daily 10637 -s 2024-01-01 -e 2024-12-31 -p tmax --agg max
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
This will yield the following output:
|
|
96
|
+
|
|
97
|
+
```
|
|
98
|
+
tmax
|
|
99
|
+
station
|
|
100
|
+
10637 35.9
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## 📖 Documentation
|
|
104
|
+
|
|
105
|
+
Please refer to the [official documentation](https://dev.meteostat.net/cli) for detailed usage instructions and examples.
|
|
106
|
+
|
|
107
|
+
## 🤝 Contributing
|
|
108
|
+
|
|
109
|
+
Please read our [contributing guidelines](https://dev.meteostat.net/contributing) for details on how to contribute to Meteostat.
|
|
110
|
+
|
|
111
|
+
## 📄 License
|
|
112
|
+
|
|
113
|
+
The Meteostat CLI is licensed under the [**MIT License**](https://github.com/meteostat/cli/blob/main/LICENSE). Data provided by Meteostat is licensed under [**Creative Commons Attribution 4.0 International (CC BY 4.0)**](https://creativecommons.org/licenses/by/4.0). See the [documentation](https://dev.meteostat.net/license) for details.
|
|
114
|
+
|
|
115
|
+
<!-- MARKDOWN LINKS & IMAGES -->
|
|
116
|
+
|
|
117
|
+
[pypi-shield]: https://img.shields.io/pypi/v/meteostat-cli
|
|
118
|
+
[pypi-url]: https://pypi.org/project/meteostat-cli/
|
|
119
|
+
[issues-shield]: https://img.shields.io/github/issues/meteostat/cli.svg
|
|
120
|
+
[issues-url]: https://github.com/meteostat/cli/issues
|
|
121
|
+
[license-shield]: https://img.shields.io/github/license/meteostat/cli.svg
|
|
122
|
+
[license-url]: https://github.com/meteostat/cli/blob/main/LICENSE
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
<!-- PROJECT SHIELDS -->
|
|
2
|
+
<div align="center">
|
|
3
|
+
|
|
4
|
+
[![PyPI Version][pypi-shield]][pypi-url]
|
|
5
|
+
[![Issues][issues-shield]][issues-url]
|
|
6
|
+
[![MIT License][license-shield]][license-url]
|
|
7
|
+
|
|
8
|
+
</div>
|
|
9
|
+
|
|
10
|
+
<!-- PROJECT LOGO -->
|
|
11
|
+
<br />
|
|
12
|
+
<div align="center">
|
|
13
|
+
<a href="https://github.com/meteostat/cli">
|
|
14
|
+
<img src="https://media.meteostat.net/icon.svg" alt="Meteostat Logo" width="80" height="80">
|
|
15
|
+
</a>
|
|
16
|
+
|
|
17
|
+
<h3 align="center">Meteostat CLI</h3>
|
|
18
|
+
|
|
19
|
+
<p align="center">
|
|
20
|
+
Access weather and climate data through the terminal.
|
|
21
|
+
<p>
|
|
22
|
+
<a href="https://dev.meteostat.net/cli"><strong>Explore the docs »</strong></a>
|
|
23
|
+
</p>
|
|
24
|
+
<p>
|
|
25
|
+
<a href="https://meteostat.net">Visit Website</a>
|
|
26
|
+
·
|
|
27
|
+
<a href="https://github.com/meteostat/cli/issues">Report Bug</a>
|
|
28
|
+
·
|
|
29
|
+
<a href="https://github.com/orgs/meteostat/discussions">Request Feature</a>
|
|
30
|
+
</p>
|
|
31
|
+
</p>
|
|
32
|
+
</div>
|
|
33
|
+
|
|
34
|
+

|
|
35
|
+
|
|
36
|
+
## 📚 Installation
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
uv tool install meteostat-cli
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
For plotting capabilities (`png` and `svg` output), install the `plot` extra:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
uv tool install "meteostat-cli[plot]"
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Alternatively, you can use `uvx`:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
uvx meteostat-cli [YOUR_COMMAND]
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### ⚡ Shell Completion
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
meteo --install-completion # Bash, Zsh, Fish, PowerShell
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## 🚀 Usage
|
|
61
|
+
|
|
62
|
+
Want to know the hottest temperature of 2024 at Frankfurt Airport (station `10637`)? Run the following command:
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
meteo daily 10637 -s 2024-01-01 -e 2024-12-31 -p tmax --agg max
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
This will yield the following output:
|
|
69
|
+
|
|
70
|
+
```
|
|
71
|
+
tmax
|
|
72
|
+
station
|
|
73
|
+
10637 35.9
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## 📖 Documentation
|
|
77
|
+
|
|
78
|
+
Please refer to the [official documentation](https://dev.meteostat.net/cli) for detailed usage instructions and examples.
|
|
79
|
+
|
|
80
|
+
## 🤝 Contributing
|
|
81
|
+
|
|
82
|
+
Please read our [contributing guidelines](https://dev.meteostat.net/contributing) for details on how to contribute to Meteostat.
|
|
83
|
+
|
|
84
|
+
## 📄 License
|
|
85
|
+
|
|
86
|
+
The Meteostat CLI is licensed under the [**MIT License**](https://github.com/meteostat/cli/blob/main/LICENSE). Data provided by Meteostat is licensed under [**Creative Commons Attribution 4.0 International (CC BY 4.0)**](https://creativecommons.org/licenses/by/4.0). See the [documentation](https://dev.meteostat.net/license) for details.
|
|
87
|
+
|
|
88
|
+
<!-- MARKDOWN LINKS & IMAGES -->
|
|
89
|
+
|
|
90
|
+
[pypi-shield]: https://img.shields.io/pypi/v/meteostat-cli
|
|
91
|
+
[pypi-url]: https://pypi.org/project/meteostat-cli/
|
|
92
|
+
[issues-shield]: https://img.shields.io/github/issues/meteostat/cli.svg
|
|
93
|
+
[issues-url]: https://github.com/meteostat/cli/issues
|
|
94
|
+
[license-shield]: https://img.shields.io/github/license/meteostat/cli.svg
|
|
95
|
+
[license-url]: https://github.com/meteostat/cli/blob/main/LICENSE
|
|
Binary file
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
# The configurations that used for the recording, feel free to edit them
|
|
2
|
+
config:
|
|
3
|
+
|
|
4
|
+
# Specify a command to be executed
|
|
5
|
+
# like `/bin/bash -l`, `ls`, or any other commands
|
|
6
|
+
# the default is bash for Linux
|
|
7
|
+
# or powershell.exe for Windows
|
|
8
|
+
command: bash -l
|
|
9
|
+
|
|
10
|
+
# Specify the current working directory path
|
|
11
|
+
# the default is the current working directory path
|
|
12
|
+
cwd: /Users/chris/Meteostat/cli
|
|
13
|
+
|
|
14
|
+
# Export additional ENV variables
|
|
15
|
+
env:
|
|
16
|
+
recording: true
|
|
17
|
+
|
|
18
|
+
# Explicitly set the number of columns
|
|
19
|
+
# or use `auto` to take the current
|
|
20
|
+
# number of columns of your shell
|
|
21
|
+
cols: 120
|
|
22
|
+
|
|
23
|
+
# Explicitly set the number of rows
|
|
24
|
+
# or use `auto` to take the current
|
|
25
|
+
# number of rows of your shell
|
|
26
|
+
rows: 20
|
|
27
|
+
|
|
28
|
+
# Amount of times to repeat GIF
|
|
29
|
+
# If value is -1, play once
|
|
30
|
+
# If value is 0, loop indefinitely
|
|
31
|
+
# If value is a positive number, loop n times
|
|
32
|
+
repeat: -1
|
|
33
|
+
|
|
34
|
+
# Quality
|
|
35
|
+
# 1 - 100
|
|
36
|
+
quality: 100
|
|
37
|
+
|
|
38
|
+
# Delay between frames in ms
|
|
39
|
+
# If the value is `auto` use the actual recording delays
|
|
40
|
+
frameDelay: auto
|
|
41
|
+
|
|
42
|
+
# Maximum delay between frames in ms
|
|
43
|
+
# Ignored if the `frameDelay` isn't set to `auto`
|
|
44
|
+
# Set to `auto` to prevent limiting the max idle time
|
|
45
|
+
maxIdleTime: 2000
|
|
46
|
+
|
|
47
|
+
# The surrounding frame box
|
|
48
|
+
# The `type` can be null, window, floating, or solid`
|
|
49
|
+
# To hide the title use the value null
|
|
50
|
+
# Don't forget to add a backgroundColor style with a null as type
|
|
51
|
+
frameBox:
|
|
52
|
+
type: null
|
|
53
|
+
title: Meteostat
|
|
54
|
+
style:
|
|
55
|
+
border: 0px black solid
|
|
56
|
+
backgroundColor: "#1D1D1D"
|
|
57
|
+
# boxShadow: none
|
|
58
|
+
padding: 10px
|
|
59
|
+
|
|
60
|
+
# Add a watermark image to the rendered gif
|
|
61
|
+
# You need to specify an absolute path for
|
|
62
|
+
# the image on your machine or a URL, and you can also
|
|
63
|
+
# add your own CSS styles
|
|
64
|
+
watermark:
|
|
65
|
+
imagePath: null
|
|
66
|
+
style:
|
|
67
|
+
position: absolute
|
|
68
|
+
right: 15px
|
|
69
|
+
bottom: 15px
|
|
70
|
+
width: 100px
|
|
71
|
+
opacity: 0.9
|
|
72
|
+
|
|
73
|
+
# Cursor style can be one of
|
|
74
|
+
# `block`, `underline`, or `bar`
|
|
75
|
+
cursorStyle: block
|
|
76
|
+
|
|
77
|
+
# Font family
|
|
78
|
+
# You can use any font that is installed on your machine
|
|
79
|
+
# in CSS-like syntax
|
|
80
|
+
fontFamily: "Monaco, Lucida Console, Ubuntu Mono, Monospace"
|
|
81
|
+
|
|
82
|
+
# The size of the font
|
|
83
|
+
fontSize: 14
|
|
84
|
+
|
|
85
|
+
# The height of lines
|
|
86
|
+
lineHeight: 1
|
|
87
|
+
|
|
88
|
+
# The spacing between letters
|
|
89
|
+
letterSpacing: 0
|
|
90
|
+
|
|
91
|
+
# Theme
|
|
92
|
+
theme:
|
|
93
|
+
background: "transparent"
|
|
94
|
+
foreground: "#afafaf"
|
|
95
|
+
cursor: "#c7c7c7"
|
|
96
|
+
black: "#232628"
|
|
97
|
+
red: "#fc4384"
|
|
98
|
+
green: "#b3e33b"
|
|
99
|
+
yellow: "#ffa727"
|
|
100
|
+
blue: "#75dff2"
|
|
101
|
+
magenta: "#ae89fe"
|
|
102
|
+
cyan: "#708387"
|
|
103
|
+
white: "#d5d5d0"
|
|
104
|
+
brightBlack: "#626566"
|
|
105
|
+
brightRed: "#ff7fac"
|
|
106
|
+
brightGreen: "#c8ed71"
|
|
107
|
+
brightYellow: "#ebdf86"
|
|
108
|
+
brightBlue: "#75dff2"
|
|
109
|
+
brightMagenta: "#ae89fe"
|
|
110
|
+
brightCyan: "#b1c6ca"
|
|
111
|
+
brightWhite: "#f9f9f4"
|
|
112
|
+
|
|
113
|
+
# Records, feel free to edit them
|
|
114
|
+
records:
|
|
115
|
+
- delay: 151
|
|
116
|
+
content: "$ "
|
|
117
|
+
- delay: 200
|
|
118
|
+
content: m
|
|
119
|
+
- delay: 220
|
|
120
|
+
content: e
|
|
121
|
+
- delay: 103
|
|
122
|
+
content: t
|
|
123
|
+
- delay: 100
|
|
124
|
+
content: e
|
|
125
|
+
- delay: 200
|
|
126
|
+
content: o
|
|
127
|
+
- delay: 167
|
|
128
|
+
content: ' '
|
|
129
|
+
- delay: 100
|
|
130
|
+
content: 'n'
|
|
131
|
+
- delay: 150
|
|
132
|
+
content: e
|
|
133
|
+
- delay: 90
|
|
134
|
+
content: a
|
|
135
|
+
- delay: 200
|
|
136
|
+
content: r
|
|
137
|
+
- delay: 150
|
|
138
|
+
content: b
|
|
139
|
+
- delay: 140
|
|
140
|
+
content: 'y'
|
|
141
|
+
- delay: 110
|
|
142
|
+
content: ' '
|
|
143
|
+
- delay: 200
|
|
144
|
+
content: '5'
|
|
145
|
+
- delay: 170
|
|
146
|
+
content: '0'
|
|
147
|
+
- delay: 100
|
|
148
|
+
content: ','
|
|
149
|
+
- delay: 200
|
|
150
|
+
content: '8'
|
|
151
|
+
- delay: 138
|
|
152
|
+
content: .
|
|
153
|
+
- delay: 209
|
|
154
|
+
content: '6'
|
|
155
|
+
- delay: 200
|
|
156
|
+
content: "\r\n"
|
|
157
|
+
- delay: 103
|
|
158
|
+
content: " name country region latitude longitude elevation timezone distance\r\nid \r\nEDFE0 Egelsbach / Erzhausen DE HE 49.9620 8.6447 117 Europe/Berlin 5298.1\r\n10637 Frankfurt Airport DE HE 50.0500 8.6000 111 Europe/Berlin 5559.7\r\nD4090 Raunheim DE HE 50.0056 8.4291 89 Europe/Berlin 12230.2\r\nD0917 Darmstadt DE HE 49.8809 8.6779 162 Europe/Berlin 14368.8\r\nD1424 Frankfurt Westend DE HE 50.1269 8.6694 124 Europe/Berlin 14954.9\r\n"
|
|
159
|
+
- delay: 38
|
|
160
|
+
content: "$ "
|
|
161
|
+
- delay: 1011
|
|
162
|
+
content: m
|
|
163
|
+
- delay: 168
|
|
164
|
+
content: e
|
|
165
|
+
- delay: 137
|
|
166
|
+
content: t
|
|
167
|
+
- delay: 100
|
|
168
|
+
content: e
|
|
169
|
+
- delay: 200
|
|
170
|
+
content: o
|
|
171
|
+
- delay: 100
|
|
172
|
+
content: ' '
|
|
173
|
+
- delay: 200
|
|
174
|
+
content: d
|
|
175
|
+
- delay: 90
|
|
176
|
+
content: a
|
|
177
|
+
- delay: 200
|
|
178
|
+
content: i
|
|
179
|
+
- delay: 109
|
|
180
|
+
content: l
|
|
181
|
+
- delay: 200
|
|
182
|
+
content: 'y'
|
|
183
|
+
- delay: 123
|
|
184
|
+
content: ' '
|
|
185
|
+
- delay: 200
|
|
186
|
+
content: '1'
|
|
187
|
+
- delay: 200
|
|
188
|
+
content: '0'
|
|
189
|
+
- delay: 188
|
|
190
|
+
content: '6'
|
|
191
|
+
- delay: 150
|
|
192
|
+
content: '3'
|
|
193
|
+
- delay: 174
|
|
194
|
+
content: '7'
|
|
195
|
+
- delay: 145
|
|
196
|
+
content: ' '
|
|
197
|
+
- delay: 200
|
|
198
|
+
content: '-'
|
|
199
|
+
- delay: 130
|
|
200
|
+
content: '-'
|
|
201
|
+
- delay: 200
|
|
202
|
+
content: s
|
|
203
|
+
- delay: 150
|
|
204
|
+
content: t
|
|
205
|
+
- delay: 158
|
|
206
|
+
content: a
|
|
207
|
+
- delay: 142
|
|
208
|
+
content: r
|
|
209
|
+
- delay: 90
|
|
210
|
+
content: t
|
|
211
|
+
- delay: 130
|
|
212
|
+
content: ' '
|
|
213
|
+
- delay: 200
|
|
214
|
+
content: '2'
|
|
215
|
+
- delay: 150
|
|
216
|
+
content: '0'
|
|
217
|
+
- delay: 140
|
|
218
|
+
content: '2'
|
|
219
|
+
- delay: 200
|
|
220
|
+
content: '0'
|
|
221
|
+
- delay: 171
|
|
222
|
+
content: ' '
|
|
223
|
+
- delay: 200
|
|
224
|
+
content: '-'
|
|
225
|
+
- delay: 88
|
|
226
|
+
content: '-'
|
|
227
|
+
- delay: 130
|
|
228
|
+
content: e
|
|
229
|
+
- delay: 200
|
|
230
|
+
content: 'n'
|
|
231
|
+
- delay: 170
|
|
232
|
+
content: d
|
|
233
|
+
- delay: 100
|
|
234
|
+
content: ' '
|
|
235
|
+
- delay: 200
|
|
236
|
+
content: '2'
|
|
237
|
+
- delay: 200
|
|
238
|
+
content: '0'
|
|
239
|
+
- delay: 150
|
|
240
|
+
content: '2'
|
|
241
|
+
- delay: 90
|
|
242
|
+
content: '5'
|
|
243
|
+
- delay: 119
|
|
244
|
+
content: ' '
|
|
245
|
+
- delay: 200
|
|
246
|
+
content: '-'
|
|
247
|
+
- delay: 124
|
|
248
|
+
content: '-'
|
|
249
|
+
- delay: 200
|
|
250
|
+
content: a
|
|
251
|
+
- delay: 140
|
|
252
|
+
content: g
|
|
253
|
+
- delay: 130
|
|
254
|
+
content: g
|
|
255
|
+
- delay: 150
|
|
256
|
+
content: ' '
|
|
257
|
+
- delay: 130
|
|
258
|
+
content: m
|
|
259
|
+
- delay: 120
|
|
260
|
+
content: a
|
|
261
|
+
- delay: 150
|
|
262
|
+
content: x
|
|
263
|
+
- delay: 250
|
|
264
|
+
content: "\r\n"
|
|
265
|
+
- delay: 733
|
|
266
|
+
content: " temp tmin tmax rhum prcp snwd wspd wpgt pres tsun cldc\r\nstation \r\n10637 30.1 22.6 38.4 100 62.5 60 39.6 126.0 1047.5 942 8\r\n"
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "meteostat-cli"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.3.0"
|
|
8
8
|
description = "Access weather and climate data through the terminal."
|
|
9
9
|
authors = [{ name = "Meteostat", email = "info@meteostat.net" }]
|
|
10
10
|
readme = "README.md"
|
|
@@ -32,6 +32,7 @@ plot = ["matplotlib>=3.9.0"]
|
|
|
32
32
|
|
|
33
33
|
[project.scripts]
|
|
34
34
|
meteo = "meteo.cli:main"
|
|
35
|
+
meteostat-cli = "meteo.cli:main"
|
|
35
36
|
|
|
36
37
|
[project.urls]
|
|
37
38
|
Homepage = "https://github.com/meteostat/cli"
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
# Examples
|
|
2
|
-
|
|
3
|
-
## Fetch weather data
|
|
4
|
-
|
|
5
|
-
```bash
|
|
6
|
-
meteo daily 10637 # Station ID for Frankfurt/Main
|
|
7
|
-
meteo hourly 10637 --start 2024-01-01 --end 2024-01-31
|
|
8
|
-
meteo daily 50.1109,8.6821 --start 2024-01-01 --end 2024-12-31 # Geo coordinates (interpolated)
|
|
9
|
-
meteo monthly 10637 --start 2020 --end 2024 --parameters temp,tmin,tmax,prcp
|
|
10
|
-
meteo normals 10637
|
|
11
|
-
meteo hourly 10637 10635 --start 2024-06-01 --end 2024-06-30 --timezone Europe/Berlin
|
|
12
|
-
meteo daily 10637 10635 --start 2025-01-01 --end 2025-12-31 --agg max # Custom aggregation (Pandas `.agg()`) across multiple stations
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Export data
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
meteo daily 10637 --start 2024-01-01 --end 2024-12-31 --output data.csv
|
|
19
|
-
meteo daily 10637 --start 2024-01-01 --end 2024-12-31 --output data.json
|
|
20
|
-
meteo daily 10637 --start 2024-01-01 --end 2024-12-31 --output data.xlsx
|
|
21
|
-
meteo daily 10637 --start 2024-01-01 --end 2024-12-31 --output data.parquet
|
|
22
|
-
meteo daily 10637 --start 2024-01-01 --end 2024-12-31 --output chart.png
|
|
23
|
-
meteo daily 10637 --start 2024-01-01 --end 2024-12-31 --format csv --no-header
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
## Station discovery
|
|
27
|
-
|
|
28
|
-
```bash
|
|
29
|
-
meteo station 10637 # Metadata for a specific station
|
|
30
|
-
meteo station --country DE # All stations in Germany
|
|
31
|
-
meteo station --country DE --state HE
|
|
32
|
-
meteo station --name "Frankfurt" # Search by name (case-insensitive, partial match)
|
|
33
|
-
meteo station --bbox "8.0,50.0,10.0,51.0"
|
|
34
|
-
meteo station --sql "SELECT * FROM stations WHERE country = 'DE' AND elevation > 500"
|
|
35
|
-
meteo nearby 50.1109,8.6821 --limit 10 --radius 20000
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
## Data quality & filtering
|
|
39
|
-
|
|
40
|
-
```bash
|
|
41
|
-
meteo daily 10637 --start 2024-01-01 --end 2024-12-31 --with-sources # Include source provider columns
|
|
42
|
-
meteo daily 10637 --start 2024-01-01 --end 2024-12-31 --no-models # Exclude model data
|
|
43
|
-
meteo daily 10637 10635 --start 2024-01-01 --end 2024-12-31 --agg mean
|
|
44
|
-
meteo daily 10637 --no-cache # Disable cache for the latest data
|
|
45
|
-
meteo daily 10637 --start 2024-01-01 --end 2024-12-31 --all # Show all rows without truncation
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
## Finding the hottest/coldest day
|
|
49
|
-
|
|
50
|
-
```bash
|
|
51
|
-
# Peak tmax for a station over a full year — single command, no awk needed
|
|
52
|
-
meteo daily D1424 --start 2025-01-01 --end 2025-12-31 --parameters tmax --agg max -f csv
|
|
53
|
-
# To also get the date of the peak, filter with sort after fetching tmax only
|
|
54
|
-
meteo daily D1424 --start 2025-01-01 --end 2025-12-31 --parameters tmax -f csv \
|
|
55
|
-
| awk -F',' 'NR>1' | sort -t',' -k3 -rn | head -1
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
## Inventory
|
|
59
|
-
|
|
60
|
-
```bash
|
|
61
|
-
meteo inventory 10637
|
|
62
|
-
meteo inventory 10637 --granularity daily
|
|
63
|
-
meteo inventory 10637 --parameters temp,tmin,tmax
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
## Configuration
|
|
67
|
-
|
|
68
|
-
```bash
|
|
69
|
-
meteo config --list
|
|
70
|
-
meteo config cache_enable false
|
|
71
|
-
meteo config interpolation_radius 50000
|
|
72
|
-
```
|
meteostat_cli-0.2.0/PKG-INFO
DELETED
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: meteostat-cli
|
|
3
|
-
Version: 0.2.0
|
|
4
|
-
Summary: Access weather and climate data through the terminal.
|
|
5
|
-
Project-URL: Homepage, https://github.com/meteostat/cli
|
|
6
|
-
Project-URL: Repository, https://github.com/meteostat/cli
|
|
7
|
-
Project-URL: Issues, https://github.com/meteostat/cli/issues
|
|
8
|
-
Author-email: Meteostat <info@meteostat.net>
|
|
9
|
-
License: MIT
|
|
10
|
-
License-File: LICENSE
|
|
11
|
-
Keywords: cli,climate,meteostat,weather
|
|
12
|
-
Classifier: Environment :: Console
|
|
13
|
-
Classifier: Intended Audience :: Developers
|
|
14
|
-
Classifier: Intended Audience :: Science/Research
|
|
15
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
-
Classifier: Topic :: Scientific/Engineering :: Atmospheric Science
|
|
20
|
-
Requires-Python: >=3.11
|
|
21
|
-
Requires-Dist: meteostat<3,>=2.1.4
|
|
22
|
-
Requires-Dist: pyyaml>=6.0
|
|
23
|
-
Requires-Dist: typer>=0.15.0
|
|
24
|
-
Provides-Extra: plot
|
|
25
|
-
Requires-Dist: matplotlib>=3.9.0; extra == 'plot'
|
|
26
|
-
Description-Content-Type: text/markdown
|
|
27
|
-
|
|
28
|
-
<!-- PROJECT SHIELDS -->
|
|
29
|
-
<div align="center">
|
|
30
|
-
|
|
31
|
-
[![PyPI Version][pypi-shield]][pypi-url]
|
|
32
|
-
[![Issues][issues-shield]][issues-url]
|
|
33
|
-
[![MIT License][license-shield]][license-url]
|
|
34
|
-
|
|
35
|
-
</div>
|
|
36
|
-
|
|
37
|
-
<!-- PROJECT LOGO -->
|
|
38
|
-
<br />
|
|
39
|
-
<div align="center">
|
|
40
|
-
<a href="https://github.com/meteostat/cli">
|
|
41
|
-
<img src="https://media.meteostat.net/icon.svg" alt="Meteostat Logo" width="80" height="80">
|
|
42
|
-
</a>
|
|
43
|
-
|
|
44
|
-
<h3 align="center">Meteostat CLI</h3>
|
|
45
|
-
|
|
46
|
-
<p align="center">
|
|
47
|
-
Access weather and climate data through the terminal.
|
|
48
|
-
<p>
|
|
49
|
-
<a href="https://dev.meteostat.net/cli"><strong>Explore the docs »</strong></a>
|
|
50
|
-
</p>
|
|
51
|
-
<p>
|
|
52
|
-
<a href="https://meteostat.net">Visit Website</a>
|
|
53
|
-
·
|
|
54
|
-
<a href="https://github.com/meteostat/cli/issues">Report Bug</a>
|
|
55
|
-
·
|
|
56
|
-
<a href="https://github.com/orgs/meteostat/discussions">Request Feature</a>
|
|
57
|
-
</p>
|
|
58
|
-
</p>
|
|
59
|
-
</div>
|
|
60
|
-
|
|
61
|
-
## 📚 Installation
|
|
62
|
-
|
|
63
|
-
```bash
|
|
64
|
-
uv tool install meteostat-cli
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
For plotting capabilities (`png` and `svg` output), install the `plot` extra:
|
|
68
|
-
|
|
69
|
-
```bash
|
|
70
|
-
uv tool install "meteostat-cli[plot]"
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
Alternatively, you can use `uvx`:
|
|
74
|
-
|
|
75
|
-
```bash
|
|
76
|
-
uvx --from meteostat-cli meteo
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
## 🚀 Usage
|
|
80
|
-
|
|
81
|
-
### Get daily weather data for a station
|
|
82
|
-
|
|
83
|
-
```bash
|
|
84
|
-
meteo daily 10637 --start 2024-01-01 --end 2024-12-31
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
### Get hourly data by coordinates (with interpolation)
|
|
88
|
-
|
|
89
|
-
```bash
|
|
90
|
-
meteo hourly 50.1109,8.6821 --start 2024-01-01 --end 2024-01-07
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
### Export data to a file
|
|
94
|
-
|
|
95
|
-
```bash
|
|
96
|
-
meteo daily 10637 -s 2024-01-01 -e 2024-12-31 --output data.json
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
### Plot temperature data
|
|
100
|
-
|
|
101
|
-
```bash
|
|
102
|
-
meteo daily 10637 -s 2024-01-01 -e 2024-12-31 --output chart.png
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
## 📖 Commands
|
|
106
|
-
|
|
107
|
-
### `meteo station` — Browse weather stations
|
|
108
|
-
|
|
109
|
-
```bash
|
|
110
|
-
meteo station 10637 # Metadata for a specific station
|
|
111
|
-
meteo station --country DE # List stations by country
|
|
112
|
-
meteo station --country DE --state HE # Filter by country and state
|
|
113
|
-
meteo station --name "Frankfurt" # Search by name
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
| Option | Short | Description |
|
|
117
|
-
| ------------- | ----- | ------------------------------------------------ |
|
|
118
|
-
| `--country` | `-c` | ISO 3166-1 alpha-2 country code |
|
|
119
|
-
| `--state` | | State or region code |
|
|
120
|
-
| `--name` | `-n` | Station name (partial match) |
|
|
121
|
-
| `--wmo` | `-w` | WMO station ID |
|
|
122
|
-
| `--icao` | `-i` | ICAO station ID |
|
|
123
|
-
| `--iata` | | IATA station ID |
|
|
124
|
-
| `--national` | `-N` | National station ID |
|
|
125
|
-
| `--bbox` | | Bounding box (`lon_min,lat_min,lon_max,lat_max`) |
|
|
126
|
-
| `--sql` | | Arbitrary SQL query |
|
|
127
|
-
| `--format` | `-f` | Output format: `csv`, `json`, `xlsx`, `parquet` |
|
|
128
|
-
| `--output` | `-o` | Output file path (defaults to stdout) |
|
|
129
|
-
| `--no-header` | | Omit CSV header row |
|
|
130
|
-
| `--all` | `-A` | Print full table without truncation |
|
|
131
|
-
|
|
132
|
-
### `meteo nearby` — Find stations near a location
|
|
133
|
-
|
|
134
|
-
```bash
|
|
135
|
-
meteo nearby 50.1109 8.6821 # Nearest stations (default: 5 within 5 km)
|
|
136
|
-
meteo nearby 50.1109 8.6821 --limit 10 # Return up to 10 stations
|
|
137
|
-
meteo nearby 50.1109 8.6821 --radius 20000 # Search within 20 km
|
|
138
|
-
meteo nearby 50.1109 8.6821 --format json # JSON output
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
| Option | Short | Description |
|
|
142
|
-
| ------------- | ----- | ----------------------------------------------- |
|
|
143
|
-
| `--limit` | `-l` | Maximum number of stations (default: 5) |
|
|
144
|
-
| `--radius` | `-r` | Search radius in meters (default: 5000) |
|
|
145
|
-
| `--format` | `-f` | Output format: `csv`, `json`, `xlsx`, `parquet` |
|
|
146
|
-
| `--output` | `-o` | Output file path (defaults to stdout) |
|
|
147
|
-
| `--no-header` | | Omit CSV header row |
|
|
148
|
-
| `--all` | `-A` | Print full table without truncation |
|
|
149
|
-
|
|
150
|
-
### `meteo inventory` — Check data availability
|
|
151
|
-
|
|
152
|
-
```bash
|
|
153
|
-
meteo inventory 10637
|
|
154
|
-
meteo inventory 10637 --granularity daily --parameters tavg,tmin,tmax
|
|
155
|
-
```
|
|
156
|
-
|
|
157
|
-
| Option | Short | Description |
|
|
158
|
-
| --------------- | ----- | --------------------------------------------------------------- |
|
|
159
|
-
| `--granularity` | `-g` | Filter by granularity: `hourly`/`h`, `daily`/`d`, `monthly`/`m` |
|
|
160
|
-
| `--parameters` | `-p` | Comma-separated parameters (e.g. `tavg,tmin,tmax`) |
|
|
161
|
-
| `--providers` | `-P` | Comma-separated data providers |
|
|
162
|
-
| `--format` | `-f` | Output format: `csv`, `json`, `xlsx`, `parquet` |
|
|
163
|
-
| `--output` | `-o` | Output file path (defaults to stdout) |
|
|
164
|
-
| `--no-header` | | Omit CSV header row |
|
|
165
|
-
| `--all` | `-A` | Print full table without truncation |
|
|
166
|
-
|
|
167
|
-
### `meteo hourly` — Hourly weather data
|
|
168
|
-
|
|
169
|
-
```bash
|
|
170
|
-
meteo hourly 10637 --start 2024-01-01 --end 2024-01-31
|
|
171
|
-
meteo h 10637 -s 2024-01-01 -e 2024-01-31 # Short form
|
|
172
|
-
meteo hourly 10637 10635 -s 2024-01-01 -e 2024-01-31 # Multiple stations
|
|
173
|
-
meteo hourly 10637 --agg max -s 2024-01-01 -e 2024-01-31 # Aggregate by station and time
|
|
174
|
-
```
|
|
175
|
-
|
|
176
|
-
See [Common options](#common-options-hourly--daily--monthly--normals) below. Hourly also supports `--timezone`/`-t` (e.g. `Europe/Berlin`).
|
|
177
|
-
|
|
178
|
-
### `meteo daily` — Daily weather data
|
|
179
|
-
|
|
180
|
-
```bash
|
|
181
|
-
meteo daily 10637 --start 2024-01-01 --end 2024-12-31
|
|
182
|
-
meteo d 10637 -s 2024-01-01 -e 2024-12-31 # Short form
|
|
183
|
-
```
|
|
184
|
-
|
|
185
|
-
See [Common options](#common-options-hourly--daily--monthly--normals) below.
|
|
186
|
-
|
|
187
|
-
### `meteo monthly` — Monthly weather data
|
|
188
|
-
|
|
189
|
-
```bash
|
|
190
|
-
meteo monthly 10637 --start 2020 --end 2024
|
|
191
|
-
meteo m 10637 -s 2020 -e 2024 # Short form
|
|
192
|
-
```
|
|
193
|
-
|
|
194
|
-
See [Common options](#common-options-hourly--daily--monthly--normals) below.
|
|
195
|
-
|
|
196
|
-
### `meteo normals` — Climate normals
|
|
197
|
-
|
|
198
|
-
```bash
|
|
199
|
-
meteo normals 10637 --start 1991 --end 2020
|
|
200
|
-
meteo n 10637 -s 1991 -e 2020 # Short form
|
|
201
|
-
```
|
|
202
|
-
|
|
203
|
-
See [Common options](#common-options-hourly--daily--monthly--normals) below.
|
|
204
|
-
|
|
205
|
-
### Common options (hourly / daily / monthly / normals)
|
|
206
|
-
|
|
207
|
-
| Option | Short | Description |
|
|
208
|
-
| ---------------- | ----- | ------------------------------------------------------------- |
|
|
209
|
-
| `--start` | `-s` | Start date (`YYYY-MM-DD`, `YYYY-MM`, `YYYY`) |
|
|
210
|
-
| `--end` | `-e` | End date (same formats) |
|
|
211
|
-
| `--parameters` | `-p` | Comma-separated parameters (e.g. `tavg,tmin,tmax,prcp`) |
|
|
212
|
-
| `--providers` | `-P` | Comma-separated data providers |
|
|
213
|
-
| `--format` | `-f` | Output format: `csv`, `json`, `xlsx`, `parquet`, `png`, `svg` |
|
|
214
|
-
| `--output` | `-o` | Output file path (defaults to stdout) |
|
|
215
|
-
| `--timezone` | `-t` | Timezone for timestamps (e.g. `Europe/Berlin`) — hourly only |
|
|
216
|
-
| `--with-sources` | `-S` | Include data source column in output |
|
|
217
|
-
| `--no-models` | | Exclude model data (e.g. MOSMIX) |
|
|
218
|
-
| `--no-header` | | Omit CSV header row |
|
|
219
|
-
| `--no-cache` | | Disable result caching |
|
|
220
|
-
| `--all` | `-A` | Print full table without truncation |
|
|
221
|
-
| `--agg` | | Aggregation function: `mean`, `sum`, `min`, `max` |
|
|
222
|
-
|
|
223
|
-
### `meteo config` — Manage configuration
|
|
224
|
-
|
|
225
|
-
```bash
|
|
226
|
-
meteo config --list # List all settings
|
|
227
|
-
meteo config cache_enable false # Set a value
|
|
228
|
-
meteo config interpolation_radius 25000
|
|
229
|
-
```
|
|
230
|
-
|
|
231
|
-
Configuration is stored in `cli.yml` under `typer.get_app_dir("meteostat")`.
|
|
232
|
-
|
|
233
|
-
### Shell completion
|
|
234
|
-
|
|
235
|
-
```bash
|
|
236
|
-
meteo --install-completion # Bash, Zsh, Fish, PowerShell
|
|
237
|
-
```
|
|
238
|
-
|
|
239
|
-
## 🤝 Contributing
|
|
240
|
-
|
|
241
|
-
Please read our [contributing guidelines](https://dev.meteostat.net/contributing) for details on how to contribute to Meteostat.
|
|
242
|
-
|
|
243
|
-
## 📄 License
|
|
244
|
-
|
|
245
|
-
The Meteostat CLI is licensed under the [**MIT License**](https://github.com/meteostat/cli/blob/main/LICENSE). Data provided by Meteostat is licensed under [**Creative Commons Attribution 4.0 International (CC BY 4.0)**](https://creativecommons.org/licenses/by/4.0). See the [documentation](https://dev.meteostat.net/license) for details.
|
|
246
|
-
|
|
247
|
-
<!-- MARKDOWN LINKS & IMAGES -->
|
|
248
|
-
|
|
249
|
-
[pypi-shield]: https://img.shields.io/pypi/v/meteostat-cli
|
|
250
|
-
[pypi-url]: https://pypi.org/project/meteostat-cli/
|
|
251
|
-
[issues-shield]: https://img.shields.io/github/issues/meteostat/cli.svg
|
|
252
|
-
[issues-url]: https://github.com/meteostat/cli/issues
|
|
253
|
-
[license-shield]: https://img.shields.io/github/license/meteostat/cli.svg
|
|
254
|
-
[license-url]: https://github.com/meteostat/cli/blob/main/LICENSE
|
meteostat_cli-0.2.0/README.md
DELETED
|
@@ -1,227 +0,0 @@
|
|
|
1
|
-
<!-- PROJECT SHIELDS -->
|
|
2
|
-
<div align="center">
|
|
3
|
-
|
|
4
|
-
[![PyPI Version][pypi-shield]][pypi-url]
|
|
5
|
-
[![Issues][issues-shield]][issues-url]
|
|
6
|
-
[![MIT License][license-shield]][license-url]
|
|
7
|
-
|
|
8
|
-
</div>
|
|
9
|
-
|
|
10
|
-
<!-- PROJECT LOGO -->
|
|
11
|
-
<br />
|
|
12
|
-
<div align="center">
|
|
13
|
-
<a href="https://github.com/meteostat/cli">
|
|
14
|
-
<img src="https://media.meteostat.net/icon.svg" alt="Meteostat Logo" width="80" height="80">
|
|
15
|
-
</a>
|
|
16
|
-
|
|
17
|
-
<h3 align="center">Meteostat CLI</h3>
|
|
18
|
-
|
|
19
|
-
<p align="center">
|
|
20
|
-
Access weather and climate data through the terminal.
|
|
21
|
-
<p>
|
|
22
|
-
<a href="https://dev.meteostat.net/cli"><strong>Explore the docs »</strong></a>
|
|
23
|
-
</p>
|
|
24
|
-
<p>
|
|
25
|
-
<a href="https://meteostat.net">Visit Website</a>
|
|
26
|
-
·
|
|
27
|
-
<a href="https://github.com/meteostat/cli/issues">Report Bug</a>
|
|
28
|
-
·
|
|
29
|
-
<a href="https://github.com/orgs/meteostat/discussions">Request Feature</a>
|
|
30
|
-
</p>
|
|
31
|
-
</p>
|
|
32
|
-
</div>
|
|
33
|
-
|
|
34
|
-
## 📚 Installation
|
|
35
|
-
|
|
36
|
-
```bash
|
|
37
|
-
uv tool install meteostat-cli
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
For plotting capabilities (`png` and `svg` output), install the `plot` extra:
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
uv tool install "meteostat-cli[plot]"
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
Alternatively, you can use `uvx`:
|
|
47
|
-
|
|
48
|
-
```bash
|
|
49
|
-
uvx --from meteostat-cli meteo
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
## 🚀 Usage
|
|
53
|
-
|
|
54
|
-
### Get daily weather data for a station
|
|
55
|
-
|
|
56
|
-
```bash
|
|
57
|
-
meteo daily 10637 --start 2024-01-01 --end 2024-12-31
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
### Get hourly data by coordinates (with interpolation)
|
|
61
|
-
|
|
62
|
-
```bash
|
|
63
|
-
meteo hourly 50.1109,8.6821 --start 2024-01-01 --end 2024-01-07
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
### Export data to a file
|
|
67
|
-
|
|
68
|
-
```bash
|
|
69
|
-
meteo daily 10637 -s 2024-01-01 -e 2024-12-31 --output data.json
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
### Plot temperature data
|
|
73
|
-
|
|
74
|
-
```bash
|
|
75
|
-
meteo daily 10637 -s 2024-01-01 -e 2024-12-31 --output chart.png
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
## 📖 Commands
|
|
79
|
-
|
|
80
|
-
### `meteo station` — Browse weather stations
|
|
81
|
-
|
|
82
|
-
```bash
|
|
83
|
-
meteo station 10637 # Metadata for a specific station
|
|
84
|
-
meteo station --country DE # List stations by country
|
|
85
|
-
meteo station --country DE --state HE # Filter by country and state
|
|
86
|
-
meteo station --name "Frankfurt" # Search by name
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
| Option | Short | Description |
|
|
90
|
-
| ------------- | ----- | ------------------------------------------------ |
|
|
91
|
-
| `--country` | `-c` | ISO 3166-1 alpha-2 country code |
|
|
92
|
-
| `--state` | | State or region code |
|
|
93
|
-
| `--name` | `-n` | Station name (partial match) |
|
|
94
|
-
| `--wmo` | `-w` | WMO station ID |
|
|
95
|
-
| `--icao` | `-i` | ICAO station ID |
|
|
96
|
-
| `--iata` | | IATA station ID |
|
|
97
|
-
| `--national` | `-N` | National station ID |
|
|
98
|
-
| `--bbox` | | Bounding box (`lon_min,lat_min,lon_max,lat_max`) |
|
|
99
|
-
| `--sql` | | Arbitrary SQL query |
|
|
100
|
-
| `--format` | `-f` | Output format: `csv`, `json`, `xlsx`, `parquet` |
|
|
101
|
-
| `--output` | `-o` | Output file path (defaults to stdout) |
|
|
102
|
-
| `--no-header` | | Omit CSV header row |
|
|
103
|
-
| `--all` | `-A` | Print full table without truncation |
|
|
104
|
-
|
|
105
|
-
### `meteo nearby` — Find stations near a location
|
|
106
|
-
|
|
107
|
-
```bash
|
|
108
|
-
meteo nearby 50.1109 8.6821 # Nearest stations (default: 5 within 5 km)
|
|
109
|
-
meteo nearby 50.1109 8.6821 --limit 10 # Return up to 10 stations
|
|
110
|
-
meteo nearby 50.1109 8.6821 --radius 20000 # Search within 20 km
|
|
111
|
-
meteo nearby 50.1109 8.6821 --format json # JSON output
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
| Option | Short | Description |
|
|
115
|
-
| ------------- | ----- | ----------------------------------------------- |
|
|
116
|
-
| `--limit` | `-l` | Maximum number of stations (default: 5) |
|
|
117
|
-
| `--radius` | `-r` | Search radius in meters (default: 5000) |
|
|
118
|
-
| `--format` | `-f` | Output format: `csv`, `json`, `xlsx`, `parquet` |
|
|
119
|
-
| `--output` | `-o` | Output file path (defaults to stdout) |
|
|
120
|
-
| `--no-header` | | Omit CSV header row |
|
|
121
|
-
| `--all` | `-A` | Print full table without truncation |
|
|
122
|
-
|
|
123
|
-
### `meteo inventory` — Check data availability
|
|
124
|
-
|
|
125
|
-
```bash
|
|
126
|
-
meteo inventory 10637
|
|
127
|
-
meteo inventory 10637 --granularity daily --parameters tavg,tmin,tmax
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
| Option | Short | Description |
|
|
131
|
-
| --------------- | ----- | --------------------------------------------------------------- |
|
|
132
|
-
| `--granularity` | `-g` | Filter by granularity: `hourly`/`h`, `daily`/`d`, `monthly`/`m` |
|
|
133
|
-
| `--parameters` | `-p` | Comma-separated parameters (e.g. `tavg,tmin,tmax`) |
|
|
134
|
-
| `--providers` | `-P` | Comma-separated data providers |
|
|
135
|
-
| `--format` | `-f` | Output format: `csv`, `json`, `xlsx`, `parquet` |
|
|
136
|
-
| `--output` | `-o` | Output file path (defaults to stdout) |
|
|
137
|
-
| `--no-header` | | Omit CSV header row |
|
|
138
|
-
| `--all` | `-A` | Print full table without truncation |
|
|
139
|
-
|
|
140
|
-
### `meteo hourly` — Hourly weather data
|
|
141
|
-
|
|
142
|
-
```bash
|
|
143
|
-
meteo hourly 10637 --start 2024-01-01 --end 2024-01-31
|
|
144
|
-
meteo h 10637 -s 2024-01-01 -e 2024-01-31 # Short form
|
|
145
|
-
meteo hourly 10637 10635 -s 2024-01-01 -e 2024-01-31 # Multiple stations
|
|
146
|
-
meteo hourly 10637 --agg max -s 2024-01-01 -e 2024-01-31 # Aggregate by station and time
|
|
147
|
-
```
|
|
148
|
-
|
|
149
|
-
See [Common options](#common-options-hourly--daily--monthly--normals) below. Hourly also supports `--timezone`/`-t` (e.g. `Europe/Berlin`).
|
|
150
|
-
|
|
151
|
-
### `meteo daily` — Daily weather data
|
|
152
|
-
|
|
153
|
-
```bash
|
|
154
|
-
meteo daily 10637 --start 2024-01-01 --end 2024-12-31
|
|
155
|
-
meteo d 10637 -s 2024-01-01 -e 2024-12-31 # Short form
|
|
156
|
-
```
|
|
157
|
-
|
|
158
|
-
See [Common options](#common-options-hourly--daily--monthly--normals) below.
|
|
159
|
-
|
|
160
|
-
### `meteo monthly` — Monthly weather data
|
|
161
|
-
|
|
162
|
-
```bash
|
|
163
|
-
meteo monthly 10637 --start 2020 --end 2024
|
|
164
|
-
meteo m 10637 -s 2020 -e 2024 # Short form
|
|
165
|
-
```
|
|
166
|
-
|
|
167
|
-
See [Common options](#common-options-hourly--daily--monthly--normals) below.
|
|
168
|
-
|
|
169
|
-
### `meteo normals` — Climate normals
|
|
170
|
-
|
|
171
|
-
```bash
|
|
172
|
-
meteo normals 10637 --start 1991 --end 2020
|
|
173
|
-
meteo n 10637 -s 1991 -e 2020 # Short form
|
|
174
|
-
```
|
|
175
|
-
|
|
176
|
-
See [Common options](#common-options-hourly--daily--monthly--normals) below.
|
|
177
|
-
|
|
178
|
-
### Common options (hourly / daily / monthly / normals)
|
|
179
|
-
|
|
180
|
-
| Option | Short | Description |
|
|
181
|
-
| ---------------- | ----- | ------------------------------------------------------------- |
|
|
182
|
-
| `--start` | `-s` | Start date (`YYYY-MM-DD`, `YYYY-MM`, `YYYY`) |
|
|
183
|
-
| `--end` | `-e` | End date (same formats) |
|
|
184
|
-
| `--parameters` | `-p` | Comma-separated parameters (e.g. `tavg,tmin,tmax,prcp`) |
|
|
185
|
-
| `--providers` | `-P` | Comma-separated data providers |
|
|
186
|
-
| `--format` | `-f` | Output format: `csv`, `json`, `xlsx`, `parquet`, `png`, `svg` |
|
|
187
|
-
| `--output` | `-o` | Output file path (defaults to stdout) |
|
|
188
|
-
| `--timezone` | `-t` | Timezone for timestamps (e.g. `Europe/Berlin`) — hourly only |
|
|
189
|
-
| `--with-sources` | `-S` | Include data source column in output |
|
|
190
|
-
| `--no-models` | | Exclude model data (e.g. MOSMIX) |
|
|
191
|
-
| `--no-header` | | Omit CSV header row |
|
|
192
|
-
| `--no-cache` | | Disable result caching |
|
|
193
|
-
| `--all` | `-A` | Print full table without truncation |
|
|
194
|
-
| `--agg` | | Aggregation function: `mean`, `sum`, `min`, `max` |
|
|
195
|
-
|
|
196
|
-
### `meteo config` — Manage configuration
|
|
197
|
-
|
|
198
|
-
```bash
|
|
199
|
-
meteo config --list # List all settings
|
|
200
|
-
meteo config cache_enable false # Set a value
|
|
201
|
-
meteo config interpolation_radius 25000
|
|
202
|
-
```
|
|
203
|
-
|
|
204
|
-
Configuration is stored in `cli.yml` under `typer.get_app_dir("meteostat")`.
|
|
205
|
-
|
|
206
|
-
### Shell completion
|
|
207
|
-
|
|
208
|
-
```bash
|
|
209
|
-
meteo --install-completion # Bash, Zsh, Fish, PowerShell
|
|
210
|
-
```
|
|
211
|
-
|
|
212
|
-
## 🤝 Contributing
|
|
213
|
-
|
|
214
|
-
Please read our [contributing guidelines](https://dev.meteostat.net/contributing) for details on how to contribute to Meteostat.
|
|
215
|
-
|
|
216
|
-
## 📄 License
|
|
217
|
-
|
|
218
|
-
The Meteostat CLI is licensed under the [**MIT License**](https://github.com/meteostat/cli/blob/main/LICENSE). Data provided by Meteostat is licensed under [**Creative Commons Attribution 4.0 International (CC BY 4.0)**](https://creativecommons.org/licenses/by/4.0). See the [documentation](https://dev.meteostat.net/license) for details.
|
|
219
|
-
|
|
220
|
-
<!-- MARKDOWN LINKS & IMAGES -->
|
|
221
|
-
|
|
222
|
-
[pypi-shield]: https://img.shields.io/pypi/v/meteostat-cli
|
|
223
|
-
[pypi-url]: https://pypi.org/project/meteostat-cli/
|
|
224
|
-
[issues-shield]: https://img.shields.io/github/issues/meteostat/cli.svg
|
|
225
|
-
[issues-url]: https://github.com/meteostat/cli/issues
|
|
226
|
-
[license-shield]: https://img.shields.io/github/license/meteostat/cli.svg
|
|
227
|
-
[license-url]: https://github.com/meteostat/cli/blob/main/LICENSE
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|