Skip to main content

DATA-GRID-SURFACE

SDK to communicate with data-grid API service. It uses the API service and it's end-points to determine if the given emails or passwords have been compromised.

Installation

Install data-grid-surface SDK:

pip install data-grid-surface

Using data-grid-access sdk

Import DataGrid class from library

from data_grid_surface.data_grid import DataGrid

You will need to provide username and password parameters to DataGrid class constructor. These are credentials for data-grid API service.

NOTE: Passwords and emails are hashed with SHA256 algorithm before being sent to the API service.

DataGrid methods

DataGrid methods return dictionary as a result.

You can pass raw email/password or its hashed value. If you are passing hashed value you need to hash it with SHA256 algorithm and encode it in base64 format.

Methods:

  • check_email(email, is_hashed)

    • email <String>
    • is_hashed <Boolean> default value is True
  • check_password(password, is_hashed)

    • password <String>
    • is_hashed <Boolean> default value is True
  • check_phone_number(phone_number, is_hashed)

    • phone_number <String>
    • is_hashed <Boolean> default value is True

Use example:

from data_grid_surface.data_grid import DataGrid

dg = DataGrid(
    username=<datagridapiusername>, 
    password=<datagridapipassword>
)
res = dg.check_email('email@example.com', False)
res = dg.check_password('passwordexample', False)
res = dg.check_phone_number('+38164....', False)

Response:

{
    'status': 'success', 
    'data': {
        'exposed': True|False,
        'breach_source': 'facebook'
    }
}

Release files for data-grid-surface 1.2.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 data-grid-surface 1.2.0
File Size Uploaded
data_grid_surface-1.2.0.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for data-grid-surface 1.2.0
File Interpreter ABI Platform
data_grid_surface-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.1 kB

Release files / data_grid_surface-1.2.0.tar.gz

Download URL data_grid_surface-1.2.0.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d4cdb2a4f6d9de62401b2a23dac16b59df5add9c12db3837845e50765dc1d3ee
BLAKE2b-256 checksum
How to use checksums
367f2f924874e7afe22897ae36a2fdc93a8ed529c304e794ce089ea5cfb70a22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.8.2 Darwin/19.6.0

Release files / data_grid_surface-1.2.0-py3-none-any.whl

Download URL data_grid_surface-1.2.0-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b878c59eee5035de4b6eaafc16c0b415431564f9c4d58c0ba63e28064cb5e700
BLAKE2b-256 checksum
How to use checksums
86bc3d5169f835050c5feb04552f46b926037b736b4ac15347609a89e1fb6c81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.8.2 Darwin/19.6.0

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.1.0

2 release files

1.0.0

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