Metadata-Version: 2.4
Name: pyswot
Version: 0.4.0
Summary: Python wrapper for JetBrains/swot
Author: James Meakin
License: Apache-2.0
Project-URL: repository, https://github.com/DIAGNijmegen/rse-pyswot
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Requires-Python: <4.0,>=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# PySwot

[![CI](https://github.com/DIAGNijmegen/rse-pyswot/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/DIAGNijmegen/rse-pyswot/actions/workflows/ci.yml?query=branch%3Amain)
[![PyPI](https://img.shields.io/pypi/v/pyswot)](https://pypi.org/project/pyswot/)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pyswot)](https://pypi.org/project/pyswot/)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

Python wrapper for [JetBrains/swot](https://github.com/JetBrains/swot).

  - Free software: Apache Software License 2.0

## Features

This library is a wrapper around
[JetBrains/swot](https://github.com/JetBrains/swot)
and provides three methods:

```python
>>> from pyswot import is_academic
>>> is_academic("user@ox.ac.uk")
True
>>> is_academic("user@gmail.com")
False
```

```python
>>> from pyswot import find_school_names
>>> find_school_names("user@ox.ac.uk")
['University of Oxford']
>>> find_school_names("user@gmail.com")
[]
```

Free emails are also included from the
[HubSpot Free Email List](https://knowledge.hubspot.com/forms/what-domains-are-blocked-when-using-the-forms-email-domains-to-block-feature).

```python
>>> from pyswot import is_free
>>> is_free("user@ox.ac.uk")
False
>>> is_free("user@gmail.com")
True
>>> is_free("user@google.com")
False
```
