Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved is_email documentation. Fix idna security bugs. poetry update #81

Merged
merged 3 commits into from
Apr 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions jupyter/casts.md
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,22 @@ help(casts.months)

## Other utils

### is_email

```{code-cell}
:tags: [remove-input]

from pydicts import casts
help(casts.is_email)
```

```{code-cell}
from pydicts import casts
print(casts.is_email("hi.hi.com"))
print(casts.is_email("hi@hi.com"))
print(casts.is_email("hi@hi.com."))
```

### is_noe

```{code-cell}
Expand All @@ -525,8 +541,6 @@ from pydicts import casts
help(casts.is_noe)
```

Return if value is None or an empty string

```{code-cell}
from pydicts import casts
print(casts.is_noe(None))
Expand Down
Loading
Loading