# DeviceAtlas Enterprise API Installation # This section deals with installing the DeviceAtlas Enterprise API. ### Compatibility ### The DeviceAtlas Enterprise Python library is compatible with both Python 2 and 3. It can be used inside any Python script, cgi or any WSGI Python web framework. ### Requirements ### - Python 2.6.3 (or above) / Python 3.1.1 (or above) ### Dependencies ### This library does not depend on any third party libraries. ### Library ### The DeviceAtlas Enterprise API consists of one package that contains modules with all common API classes plus the additional modules for the Device and Carrier APIs. #### DeviceAtlas Common (mobi.mtld.da.*) Contains the shared classes which are common between the DeviceAtlas APIs. When using DeviceApi and CarrierApi this module must be accessible from your code. #### DeviceAtlas Device API (mobi.mtld.da.device) #### This module contains the DeviceAtlas Device API. Device detection is achieved by passing a set of request headers or a user-agent along with optional Client-side properties. #### DeviceAtlas Carrier API (mobi.mtld.da.carrier) #### This module contains the DeviceAtlas Carrier API. Carrier detection is achieved by passing a set of request headers or an IPv4 address. #### Installation ### The DeviceAtlas Enterprise API can be installed either from source or built distribution packages. ** Install DeviceAtlas Python API using pip zipped package ** ```sh $ pip install Api/deviceatlas-enterprise-2.2.2.zip ``` ** Install DeviceAtlas Python API using pip whl package ** ```sh $ pip install Api/deviceatlas_enterprise-2.2.2-py2.py3-none-any.whl ``` ** Install DeviceAtlas Python API using setuptools source ** extract source zip and setup.py ```sh $ unzip Api/deviceatlas-enterprise-2.2.2.zip $ python Api/deviceatlas-enterprise-2.2.2/src/mobi/setup.py install ``` ** Install DeviceAtlas Python API using source directly ** extract source zip and copy `src/mobi` folder to personal project source root. ```sh $ unzip Api/deviceatlas-enterprise-2.2.2.zip $ cp -r Api/deviceatlas-enterprise-2.2.2/src/mobi ./mobi ``` - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - _ Copyright (c) Afilias Technologies Limited 2021. All Rights Reserved. _ _ https://deviceatlas.com _ <!-- HTML+JS for document formatting when opened in browser --> <div class="btn-group" id="main-menu" style="float:right"><a class="btn dropdown-toggle" data-toggle="dropdown" href="#">Menu<span class="caret"></span></a><ul class="dropdown-menu"><li><a href="README.html">Main</a></li><li class="disabled"><a href="README.Installation.html">Enterprise API Installation</a></li><li><a href="README.DeviceApi.html">Device Identification API</a></li><li><a href="README.DeviceApi-Config.html">Device Identification API Config</a></li><li><a href="README.CarrierApi.html">Carrier Identification API</a></li><li><a href="README.Upgrade.html">API Upgrade</a></li><li class="divider"></li><li><a href="./ApiDocs/index.html">DeviceAtlas API Docs</a></li><li class="divider"></li><li><a href="README.ClientSide.html">Client-side Component</a></li><li class="divider"></li><li><a href="README.ConnectivityAnalyser.html">Connectivity Analyser</a></li></ul></div>