Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

A simple python wrapper for dev-identify image grabber.

Project description

DevIdentify Api Wrapper for Python
===============================

A simple python wrapper for dev-identify image grabber.

Usage
-----

- Clone or download the repository.
- Install the dependencies with ``pip install -r requirements.txt`` or ``pip install requests``
- Install the package with ``pip install dev-identify``

Example
-------

.. code:: python

from dev_identify import DevIdentify

result = DevIdentify.email('example@gmail.com').save('/path/image_name.jpg').toJson()

print(result)

Methods
-------

- ``email()``

Email method is a static and required method that takes in user email
as parameter. Email method holds the actual response from devidentify
server. This method returns an object that can be further chained
with other methods available.

- ``save()``

Save method takes in full directory path as parameter along with
filename and extension, i.e ``/path/image_name.jpg``. Save method
will fail if the directory does not exist or has no write permission.
This method returns an object that can be further chained with other
methods available.

- ``toJson()``

ToJson method simply returns the response in json format. Chain this
method with either ``email()`` or ``save()`` method to see the actual
output.

- ``toDict()``

ToDict method simply returns the response as an dictionary. Chain this
method with either ``email()`` or ``save()`` method to see the actual
output.

Project details


Release history Release notifications

This version

0.0.1

Download files

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

Files for dev-identify, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size dev_identify-0.0.1.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page