Skip to main content

swot

If you have a product or service and offer academic discounts, there’s a good chance there’s some manual component to the approval process. Perhaps .edu email addresses are automatically approved because, for the most part at least, they’re associated with American post-secondary educational institutions. Perhaps .ac.uk email addresses are automatically approved because they’re guaranteed to belong to British universities and colleges. Unfortunately, not every country has an education-specific TLD (Top Level Domain) and plenty of schools use .com or .net.

Swot is a community-driven or crowdsourced library for verifying that domain names and email addresses are tied to a legitimate university of college - more specifically, an academic institution providing higher education in tertiary, quaternary or any other kind of post-secondary education in any country in the world.

Installation

Install swot with pip:

pip install swot

Usage

>>> import swot

>>> swot.is_academic("student@rutgers.edu")
True
>>> swot.is_academic("coolboy1998@hotmail.com")
False

# Url's work as well
>>> swot.is_academic("https://www.brown.edu")
True
>>> swot.is_academic("http://web.mit.edu:8080")
True

# We can also get school names
>>> swot.get_school_name("ze@cornell.edu")
["Cornell University"]
>>> swot.get_school_name("harvard.edu")
["Harvard University"]

Metadata

Release files for swot 1.0.1

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

Source distribution (sdist)

Source distribution for swot 1.0.1
File Size Uploaded Provenance Actions
swot-1.0.1.linux-x86_64.tar.gz 267.4 kB Without provenance Details for swot-1.0.1.linux-x86_64.tar.gz

Built distribution (wheel)

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

Total release size: 2.2 MB

Release files / swot-1.0.1.linux-x86_64.tar.gz

Download URL swot-1.0.1.linux-x86_64.tar.gz
Size 267.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e17b65be467f23d487fdce1fbe10b56a7b80cd85ae568a516c90aaed5052e43c
BLAKE2b-256 checksum
How to use checksums
953857d955aa8d2d22c6cf44aebb0cc509ad597b802c049b082471e64cfa5ff8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / swot-1.0.1-py3-none-any.whl

Download URL swot-1.0.1-py3-none-any.whl
Size 2.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
7e6fc8dc5377160606f240b3b835a0381cac16430f50963cb8a348b662d16735
BLAKE2b-256 checksum
How to use checksums
8b9bf22710c3570c0bbe2f8df12bd13279f3a2264507980a31d9d5c0ab57ef97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for swot 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

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