Overview
SDK for simple interaction with the Memair APIs
Interactive Notebook
Explore this package in an Interactive Notebook
Hosted by binder
Installation
memair is available on PyPI
http://pypi.python.org/pypi/memair
Install via pip
$ pip install memair
Or via easy_install
$ easy_install memair
Or directly from memair’s git repo
$ git clone git://github.com/memair/memair-python-sdk.git $ cd memair $ python setup.py 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) {
lat
lon
timestamp
}
}
''')
>>> 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)) True >>> is_dns_blocked(date(2019,1,10)) False
Running Test
$ python tests.py
Python compatibility
Developed for Python 3. May work but not tested in Python 2.
Metadata
Release files for memair 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| memair-0.2.1.tar.gz | 3.2 kB | Without provenance | Details for memair-0.2.1.tar.gz |
Release files / memair-0.2.1.tar.gz
| Download URL | memair-0.2.1.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b79dd6f1e68bdf7c923dbdc54f4da64aaeecd78019e348b44eba0adca4e25fa8
|
|
BLAKE2b-256 checksum How to use checksums |
8a887d93000d90fbe156389e3038a7c94da60055e0afd97b572a9dfc49e6a25f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
|
Security for memair 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.