semvec/pypi-packages huggingface dataset:
stormglass 0.1.4
Python wrapper for the Storm Glass Global weather API
License: MIT
Requires Python: >=3.8.*
Keywords: stormglass,weather,marine weather

# Storm Glass Python

> **Warning**: Storm Glass Python is in active development. The version number is not to be trusted until `1.0.0` is
> reached and breaking changes will be introduced without notice.

[![image](https://img.shields.io/pypi/v/stormglass.svg)](https://pypi.org/project/stormglass/)
[![Build Status](https://github.com/caalle/stormglass-python/workflows/Code%20Quality/badge.svg)](https://github.com/caalle/stormglass-python/workflows/Code%20Quality/badge.svg)
[![Build Status](https://github.com/caalle/stormglass-python/workflows/Release/badge.svg)](https://github.com/caalle/stormglass-python/workflows/Release/badge.svg)
[![Downloads](https://img.shields.io/pypi/dm/stormglass)](https://img.shields.io/pypi/dm/stormglass)
[![](https://img.shields.io/pypi/pyversions/stormglass.svg)](https://pypi.org/pypi/stormglass/)
[![](https://img.shields.io/pypi/l/stormglass.svg)](https://pypi.org/pypi/stormglass/)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
ipywalrus 0.2
('IPython extension which allows assignment expressions (:=)', 'at the top level of an expression statement')
License: MIT
Requires Python: >=3.8

# IPyWalrus

IPyWalrus is a simple IPython (Jupyter) extension which enables you to use the walrus
operator ([PEP 572 - Assignment Expressions](https://www.python.org/dev/peps/pep-0572/)) `:=`
for usual assignments in IPython or Jupyter.

This part of the PEP:

```
There are a few places where assignment expressions are not allowed, in order to avoid ambiguities or user confusion:

Unparenthesized assignment expressions are prohibited at the top level of an expression statement. Example:

y := f(x)  # INVALID
(y := f(x))  # Valid, though not recommended

This rule is included to simplify the choice for the user between an assignment statement and an assignment expression -- there is no syntactic position where both are valid.

```

is completely valid but my IPython sessions of Jupyter notebooks are full of cells like this one:

![standard](images/standard.png)

and because it does not work in pure Python

![error](images/error.png)

I've prepared a small extension which makes it work:

![ipywalrus](images/ipywalrus.png)

## Usage

Install the extension from pip or download the ipywalrus.py and put it somewhere in `PYTHONPATH`:

```
# pip install ipywalrus
```

and load it in IPython or Jupyter

```
%load_ext ipywalrus
```

If you want to enable this extension permamently, create a default profile (if you don't have one already) `ipython profile create` and then add ipywalrus to the list of extensions in `~/.ipython/profile_default/ipython_config.py`.

## License

MIT