Skip to main content

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


Download files

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

Source Distribution

dev_identify-0.0.1.tar.gz (2.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page