Metadata-Version: 2.0
Name: mygeotab
Version: 0.5.4
Summary: An unofficial Python client for the MyGeotab API
Home-page: https://github.com/geotab/mygeotab-python
Author: Aaron Toth
Author-email: UNKNOWN
License: Apache 2.0
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Software Development :: Libraries
Requires-Dist: click
Requires-Dist: python-dateutil
Requires-Dist: pytz
Requires-Dist: requests
Requires-Dist: six
Provides-Extra: async
Requires-Dist: aiohttp; extra == 'async'
Provides-Extra: console
Requires-Dist: ipython; extra == 'console'

MyGeotab
========

.. image:: https://img.shields.io/circleci/project/github/Geotab/mygeotab-python/master.svg?style=flat
    :target: https://circleci.com/gh/Geotab/mygeotab-python
    :alt: Build Status

.. image:: https://img.shields.io/codecov/c/github/Geotab/mygeotab-python/master.svg?style=flat
    :target: https://codecov.io/gh/Geotab/mygeotab-python
    :alt: Code Coverage

.. image:: https://img.shields.io/pypi/v/mygeotab.svg?style=flat
    :target: https://pypi.python.org/pypi/mygeotab
    :alt: PyPI Version

.. image:: https://img.shields.io/pypi/dm/mygeotab.svg?style=flat
    :target: https://pypi.python.org/pypi/mygeotab
    :alt: PyPI Downloads

.. image:: https://readthedocs.org/projects/mygeotab-python/badge/?version=latest
    :target: https://readthedocs.org/projects/mygeotab-python/?badge=latest
    :alt: Documentation Status



An Apache2 Licensed, unofficial Python client for the `MyGeotab SDK <http://sdk.geotab.com>`_.

Also bundled is the "myg" command line tool, which is a sandboxed console for quickly querying and operating on
MyGeotab data.

Features
--------

- Automatic serializing and de-serializing of JSON results
- Clean, Pythonic API for querying data
- Cross-platform and compatible with Python 2.7.9+, 3.4+, and pypy 4+

Usage
-----

.. code-block:: python

    >>> import mygeotab
    >>> api = mygeotab.API(username='hello@example.com', password='mypass', database='DemoDB')
    >>> api.authenticate()
    >>> api.get('Device', name='%Test Dev%')
    [{'maxSecondsBetweenLogs': 200.0,
      'activeTo': '2050-01-01',
      'minAccidentSpeed': 3.0,
      'ignoreDownloadsUntil': '1986-01-01',
      'name': 'Test Device',
      'idleMinutes': 3.0,
      ......

Installation
------------

To install the MyGeotab library and command line tool:

.. code-block:: bash

    $ pip install mygeotab

or for the bleeding-edge version:

.. code-block:: bash

    $ pip install git+https://github.com/geotab/mygeotab-python

Documentation
-------------

Read the docs at `<http://mygeotab-python.readthedocs.org>`_


.. :changelog:

Changes
-------

0.5.4 (2017-06-05)
++++++++++++++++++

**Bug Fixes**

- Ensure all dates are timezone aware and are always UTC-localized.


0.5.3 (2017-05-30)
++++++++++++++++++

**Bug Fixes**

- Fixed intermittent timeout errors due to `upstream changes <https://github.com/requests/requests/blob/master/HISTORY.rst#2161-2017-05-27>`_ in the 'requests' module


0.5.2 (2017-02-02)
++++++++++++++++++

**Bug Fixes**

- Switched back to using abstract dependencies in setup.py (recommended by `this guide <https://caremad.io/posts/2013/07/setup-vs-requirement/>`_)

0.5.1 (2017-01-04)
++++++++++++++++++

**Bug Fixes**

- Fix for search parameter not being properly handled in 'get()' call


0.5 (2017-01-02)
++++++++++++++++

**Enhancements**

- Deprecated the 'search()' and 'search_async()' functions. Replaced by folding the previous functionality into 'run()'.
- Removed 'tzlocal' dependency. Always deal with dates in UTC by default.
- Prefer functions instead of making static methods in classes.
- Added helper to run async calls and collect their results
- Add ability to quickly run simple python scripts from the 'myg' console with no need for any authentication handling. Similar to 'console', but for running scripts rather than creating an interactive console.


0.4.4 (2016-07-10)
++++++++++++++++++

**Enhancements**

- Added the ability to make unauthenticated calls (like "GetVersion") with the static "API.server_call" method
- Added asyncio-based API query methods (Python 3.5+ only) into the "ext" package
- Moved the datafeed to the "ext" package, as well

**Bug Fixes**

- MyGeotab never returns 3 digits of milliseconds, so follow that format as well to allow the use of "dates.format_iso_datetime" to create MyGeotab URLs

0.4.2 (2016-03-17)
++++++++++++++++++

**Bug Fixes**

- Use a custom User-Agent when making requests

0.4 (2016-02-25)
++++++++++++++++

**Enhancements**

- Extension for facilitating use of the MyGeotab `Data Feed <https://my.geotab.com/sdk/#/dataFeed>`_
- Allow Pythonic underscore-separated parameters mapped to camelcase ones
- Force the use of TLS 1.2 for `upcoming strict security requirements <https://www.geotab.com/blog/securing-mygeotab-with-tls/>`_ in MyGeotab
  (Note that TLS 1.2 is only supported in Python 2.7.9+ and 3.4+)

**Bug Fixes**

- Fixed issue with CLI console startup
- Use the system's default user location for config files


