Skip to main content

SDK for Memair

Project description


SDK for simple interaction with the Memair APIs

Interactive Notebook

Explore this package in an Interactive Notebook

Hosted by binder


memair is available on PyPI

Install via pip

$ pip install memair

Or via easy_install

$ easy_install memair

Or directly from memair’s git repo

$ git clone git://
$ cd memair
$ python install

Basic usage

Generate a temporary access token

Validate GraphQL with GraphiQL

>>> from memair import Memair
>>> api_key = '0000000000000000000000000000000000000000000000000000000000000000'
>>> user = Memair(api_key)
>>> latest_location = user.query('''
            Locations(first: 1, order: timestamp_desc) {
>>> latest_location['data']['Locations'][0]
{'lat': 42.909056, 'lon': -74.572508, 'timestamp': '2018-07-27T22:27:21Z'}

Memair DNS tools

This package also includes a method to check if Memair DNS is blocked on specific dates.

>>> from memair import is_dns_blocked
>>> from datetime import date
>>> is_dns_blocked(date(2019,1,9))
>>> is_dns_blocked(date(2019,1,10))

Running Test

$ python

Python compatibility

Developed for Python 3. May work but not tested in Python 2.

Project details

Download files

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

Files for memair, version 0.2.1
Filename, size File type Python version Upload date Hashes
Filename, size memair-0.2.1.tar.gz (3.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page