Skip to main content

Instant2FA Python bindings.

Project description

instant2fa

Instant2FA Python bindings.

Installation

Install it via PyPI:

pip install instant2fa

Usage

import instant2fa

instant2fa.access_key = 'YOUR_ACCESS_KEY'
instant2fa.access_secret = 'YOUR_ACCESS_SECRET'

distinct_id = 'A_UNIQUE_ID_FOR_A_USER'

hosted_page_url = instant2fa.create_settings(distinct_id)
hosted_page_url = instant2fa.create_verification(distinct_id)
verification_succeeded = instant2fa.confirm_verification(distinct_id, token)

Development

To start development, run:

$ git clone git@github.com:clef/instant2fa-python.git instant2fa
$ cd instant2fa
$ make develop

History

1.0.0

  • First release on PyPI.

1.0.1

  • Validate distinct_id parameter has a value.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

instant2fa-1.0.1.tar.gz (11.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page