Skip to main content

51Degrees Device Detection Engines - On-Premise

51Degrees v4 Device Detection Python

Developer Documentation | Available Properties

Introduction

This project contains the 51Degrees On-Premise Device Detection Engines for Python which can be used with the Pipeline API.

The Pipeline is a generic web request intelligence and data processing solution with the ability to add a range of 51Degrees and/or custom plug ins (Engines)

This engine is a C++ library with a Python wrapper built using SWIG.

Requirements

  • Python 3.8+
  • One of the following supported platforms:
    • Windows Server 2019 / Windows 10
    • Ubuntu 18.04
    • MacOS X Mojave 10.14
  • C/C++ Compiler
    • VS2015+
    • GCC 7.4+
    • Clang/LLVM 11.0.0+
  • The 'atomic' library on Linux platform for GCC
  • The Cython python library
  • The flask python library to run the web examples
  • Python3 Dev Package is also required to build extensions on Linux and MacOS

Installation

The extension requires that you have set up the required build tools for your platform.

Prerequisites

Windows

From PyPi

pip install fiftyone_devicedetection_onpremise

You can confirm this is working with the following micro-example.

  • Run the example with python exampledd.py
  • Feel free to try different user-agents and property values.
from fiftyone_devicedetection_onpremise.devicedetection_onpremise_pipelinebuilder import DeviceDetectionOnPremisePipelineBuilder
pipeline = DeviceDetectionOnPremisePipelineBuilder(
  data_file_path = /path/to/hash/data/file, licence_keys = "", 
  ).build()
fd = pipeline.create_flowdata()
fd.evidence.add("header.user-agent", "Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148")
fd.process()
print(fd.device.ismobile.value())

For more in-depth examples, check out the examples page in the documentation.

From GitHub

If you've cloned the GitHub repository, you will need to build the extension. Make sure Python3 Dev Package is installed if you are using Linux or MacOS.

cd fiftyone_devicedetection_onpremise/
python setup.py build_clib build_ext
python -m pip install -e .

Examples

If you've cloned the GitHub repository, you will be able to run the examples in the fiftyone_devicedetection_examples directory.

Tests

To run the tests use:

python -m unittest discover -s tests -p test*.py -b

Download files

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

Source Distribution

fiftyone_devicedetection_onpremise-4.5.67.tar.gz (350.7 kB view details)

Uploaded Source

File details

Details for the file fiftyone_devicedetection_onpremise-4.5.67.tar.gz.

File metadata

File hashes

Hashes for fiftyone_devicedetection_onpremise-4.5.67.tar.gz
Algorithm Hash digest
SHA256 82a797db20b75bcc8c31f9a6bf3cee7143473a243d3b6331355ff10fad5ccfa4
MD5 ecab26aa6072f34d4d879c8d80184ada
BLAKE2b-256 6db660cd5e7d53f5c73bde572352c38d0c1f73bc38924cae41427e650f085c0b

See more details on using hashes here.

Release history Release notifications | RSS feed

4.5.85

1 file

4.5.84

1 file

4.5.83

1 file

4.5.82

1 file

4.5.81

1 file

4.5.80

1 file

4.5.79

1 file

4.5.78

1 file

4.5.77

1 file

4.5.76

1 file

4.5.75

1 file

4.5.74

1 file

4.5.73

1 file

4.5.72

1 file

4.5.71

1 file

4.5.70

1 file

4.5.69

1 file

4.5.68

1 file

This release

4.5.67 This release

1 file

4.5.66

1 file

4.5.65

1 file

4.5.64

1 file

4.5.63

1 file

4.5.62

1 file

4.5.61

1 file

4.5.60

1 file

4.5.59

1 file

4.5.58

1 file

4.5.57

1 file

4.5.56

1 file

4.5.55

1 file

4.5.54

1 file

4.5.53

1 file

4.5.52

1 file

4.5.51

1 file

4.5.50

1 file

4.5.49

1 file

4.5.48

1 file

4.5.47

1 file

4.5.46

1 file

4.5.45

1 file

4.5.44

1 file

4.5.43

1 file

4.5.42

1 file

4.5.41

1 file

4.5.40

1 file

4.5.39

1 file

4.5.38

1 file

4.5.37

1 file

4.5.36

1 file

4.5.35

1 file

4.5.34

1 file

4.5.33

1 file

4.5.32

1 file

4.5.31

1 file

4.5.30

1 file

4.5.29

1 file

4.5.28

1 file

4.5.27

1 file

4.5.26

1 file

4.5.25

1 file

4.5.24

1 file

4.5.23

1 file

4.5.22

1 file

4.5.21

1 file

4.5.20

1 file

4.5.19

1 file

4.5.18

1 file

4.5.17

1 file

4.5.16

1 file

4.5.15

1 file

4.5.14

1 file

4.5.13

1 file

4.5.12

1 file

4.5.11

1 file

4.5.10

1 file

4.5.9

1 file

4.5.8

1 file

4.5.7

1 file

4.5.6

1 file

4.5.5

1 file

4.5.4

1 file

4.5.3

1 file

4.5.2

1 file

4.5.1

1 file

4.5.0

1 file

4.4.158

1 file

4.4.157

1 file

4.4.156

1 file

4.4.155

1 file

4.4.154

1 file

4.4.153

1 file

4.4.152

1 file

4.4.151

1 file

4.4.150

1 file

4.4.149

1 file

4.4.148

1 file

4.4.147

1 file

4.4.146

1 file

4.4.145

1 file

4.4.144

1 file

4.4.143

1 file

4.4.142

1 file

4.4.141

1 file

4.4.140

1 file

4.4.139

1 file

4.4.138

1 file

4.4.137

1 file

4.4.136

1 file

4.4.135

1 file

4.4.134

1 file

4.4.133

1 file

4.4.132

1 file

4.4.131

1 file

4.4.130

1 file

4.4.129

1 file

4.4.128

1 file

4.4.127

1 file

4.4.126

1 file

4.4.125

1 file

4.4.124

1 file

4.4.123

1 file

4.4.122

1 file

4.4.121

1 file

4.4.120

1 file

4.4.119

1 file

4.4.118

1 file

4.4.117

1 file

4.4.116

1 file

4.4.115

1 file

4.4.114

1 file

4.4.113

1 file

4.4.112

1 file

4.4.111.0

1 file

4.4.110.0

1 file

4.4.109.0

1 file

4.4.108.0

1 file

4.4.107.0

1 file

4.4.106.0

1 file

4.4.105.0

1 file

4.4.104.0

1 file

4.4.103.0

1 file

4.4.102.0

1 file

4.4.101.0

1 file

4.4.100.0

1 file

4.4.99.0

1 file

4.4.98.0

1 file

4.4.97.0

1 file

4.4.96.0

1 file

4.4.95.0

1 file

4.4.94.0

1 file

4.4.93.0

1 file

4.4.92.0

1 file

4.4.91.0

1 file

4.4.90.0

1 file

4.4.89.0

1 file

4.4.88.0

1 file

4.4.87.0

1 file

4.4.86.0

1 file

4.4.85.0

1 file

4.4.84.0

1 file

4.4.83.0

1 file

4.4.82.0

1 file

4.4.81.0

1 file

4.4.80.0

1 file

4.4.79.0

1 file

4.4.78.0

1 file

4.4.77.0

1 file

4.4.76.0

1 file

4.4.75.0

1 file

4.4.74.0

1 file

4.4.73.0

1 file

4.4.72.0

1 file

4.4.71.0

1 file

4.4.70.0

1 file

4.4.69.0

1 file

4.4.68.0

1 file

4.4.67.0

1 file

4.4.66.0

1 file

4.4.65.0

1 file

4.4.64.0

1 file

4.4.63.0

1 file

4.4.62.0

1 file

4.4.61.0

1 file

4.4.60.0

1 file

4.4.59.0

1 file

4.4.58.0

1 file

4.4.57.0

1 file

4.4.56.0

1 file

4.4.55.0

1 file

4.4.54.0

1 file

4.4.53.0

1 file

4.4.52.0

1 file

4.4.51.0

1 file

4.4.50.0

1 file

4.4.49.0

1 file

4.4.48.0

1 file

4.4.47.0

1 file

4.4.46.0

1 file

4.4.45.0

1 file

4.4.44.0

1 file

4.4.43.0

1 file

4.4.42.0

1 file

4.4.41.0

1 file

4.4.40.0

1 file

4.4.39.0

1 file

4.4.38.0

1 file

4.4.37.0

1 file

4.4.36.0

1 file

4.4.35.0

1 file

4.4.34.0

1 file

4.4.33.0

1 file

4.4.32.0

1 file

4.4.31.0

1 file

4.4.30.0

1 file

4.4.29.0

1 file

4.4.28.0

1 file

4.4.27.0

1 file

4.4.26.0

1 file

4.4.25.0

1 file

4.4.24.0

1 file

4.4.23.0

1 file

4.4.22.0

1 file

4.4.21.0

1 file

4.4.20.0

1 file

4.4.19.0

1 file

4.4.18.0

1 file

4.4.17.0

1 file

4.4.16.0

1 file

4.4.15.0

1 file

4.4.14.0

1 file

4.4.13.0

1 file

4.4.12

1 file

4.4.11

1 file

4.4.10

1 file

4.4.9

1 file

4.4.8

1 file

4.4.7

1 file

4.4.6

1 file

4.4.5

1 file

4.4.4

1 file

4.4.3

1 file

4.4.2

1 file

4.4.1

1 file

4.3.5

1 file

4.3.4

1 file

4.3.3

1 file

4.3.2

1 file

4.3.1

1 file

4.3.0

1 file

4.2.6

1 file

4.2.2

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page