---
id: "pywhat"
category: "detector"
url: "https://registry.apicrafter.io/tool/pywhat"
---

# pyWhat (`pywhat`)

Open-source (MIT) Python tool and library that tells what a string or the contents of a file are. It matches the input against a database of regular expressions, each with a name, a rarity score, tags and often a link to documentation, and can filter matches by tag or rarity. The database covers internet and network identifiers, cryptocurrency wallet addresses, payment card numbers, API keys and tokens of common services, public and private keys, timestamps and a few national identifiers. The Rust tool lemmeknow reuses the same database.

Website: <https://github.com/bee-san/pyWhat>

## Supported datatypes (89)

- `asin`
- `aws_access_key_id`
- `aws_arn`
- `aws_ec2_instance_id`
- `aws_iam_unique_id`
- `aws_organization_id`
- `aws_s3_uri`
- `aws_secret_access_key`
- `bankcard`
- `bankcard_amex`
- `bankcard_diners`
- `bankcard_discover`
- `bankcard_jcb`
- `bankcard_maestro`
- `bankcard_mastercard`
- `bankcard_visa`
- `birthday`
- `bitcoin_cash_address`
- `cron_expression`
- `datetime`
- `discord_bot_token`
- `discord_webhook_url`
- `dogecoin_address`
- `doi`
- `dynatrace_token`
- `email`
- `ethereum_address`
- `facebook_access_token`
- `facebook_app_access_token`
- `gbpostcode`
- `geopoint`
- `github_token`
- `google_api_key`
- `heroku_oauth_token`
- `ipv4`
- `ipv4subnet`
- `ipv6`
- `it_codicefiscale`
- `java_serialized_base64`
- `jwt`
- `litecoin_address`
- `mac_address`
- `mailchimp_api_key`
- `mailgun_api_key`
- `monero_address`
- `mongodbid`
- `nano_address`
- `new_relic_insights_key`
- `new_relic_user_api_key`
- `notion_integration_token`
- `npm_access_token`
- `openssh_private_key`
- `otpauth_uri`
- `p2pkhaddr`
- `p2shaddr`
- `p2traddr`
- `p2wpkhaddr`
- `p2wshaddr`
- `pgp_private_key_block`
- `pgp_public_key_block`
- `phone`
- `pypi_token`
- `sendgrid_api_key`
- `shopify_access_token`
- `shopify_shared_secret`
- `slack_token`
- `slack_webhook_url`
- `square_access_token`
- `square_oauth_secret`
- `ssh_public_key`
- `stripe_api_key`
- `tox_id`
- `tr_vehicle_plate`
- `trtaxnumber`
- `trtckimlik`
- `twilio_account_sid`
- `twilio_api_key_sid`
- `ulid`
- `unixtime`
- `upstracking`
- `url`
- `user_agent`
- `usssn`
- `uuid`
- `what3words`
- `x509_private_key`
- `xrp_address`
- `youtube_channel_id`
- `youtubevideoid`
