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 details)

Uploaded Source

File details

Details for the file dev_identify-0.0.1.tar.gz.

File metadata

  • Download URL: dev_identify-0.0.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dev_identify-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a3280c3ade0a97dc49dcf8d1711ea2806976c35318ea6b1948b2a33a041838a6
MD5 3b86a3d52315ab4235e8a82945113f1c
BLAKE2b-256 001f3078f2aa6314b401425e59e47552a0242c1d93c4c25083e66264793d887b

See more details on using hashes here.

Supported by

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