Skip to main content
brand-alert-py license brand-alert-py release brand-alert-py build

Overview

The client library for Brand Alert API in Python language.

The minimum Python version is 3.6.

Installation

pip install brand-alert

Examples

Full API documentation available here

Create a new client

from brandalert import *

client = Client('Your API key')

Make basic requests

# Get the number of domains.
result = client.preview(['google'])
print(result.domains_count)

# Get raw API response
raw_result = client.raw_data(
    ['google'],
    response_format=Client.XML_FORMAT,
    mode=Client.PREVIEW_MODE)

# Get list of recently registered/dropped domains (up to 10,000)
result = client.purchase(['google'])

Advanced usage

Extra request parameters

today = datetime.date.today()
delta = datetime.timedelta(days=10)
result = client.purchase(
    ['google'],
    exclude_terms=['blog'],
    since_date=today - delta,
    with_typos=True,
    punycode=False)

raw_result = client.raw_data(
    ['google'],
    exclude_terms=['blog'],
    since_date=today - delta,
    with_typos=True,
    punycode=False,
    mode=Client.PURCHASE_MODE,
    response_format=Client.JSON_FORMAT)

Changelog

1.0.0 (2021-05-04)

  • First release

Metadata

Release files for brand-alert 1.0.0

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

Source distribution (sdist)

Source distribution for brand-alert 1.0.0
File Size Uploaded
brand-alert-1.0.0.tar.gz 9.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for brand-alert 1.0.0
File Interpreter ABI Platform
brand_alert-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.7 kB

Release files / brand-alert-1.0.0.tar.gz

Download URL brand-alert-1.0.0.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
09cf48f21f7d7747f8ad66c728e8c4194729e9ebe12ad3014475da34f11cd666
BLAKE2b-256 checksum
How to use checksums
c91603c3c4336dfa491e65f14c6f8dced36548e6f00f59c46c61643743ea96b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

Release files / brand_alert-1.0.0-py3-none-any.whl

Download URL brand_alert-1.0.0-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b3972defacde773765dc5557514c442a6b99d44a0cd5204b60de5897ad22da63
BLAKE2b-256 checksum
How to use checksums
fa1b9bf3b41a89125e21b2fcfe2b7a877e3514461b5fa5e0297252a54edb46de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

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