{ "info": { "author": "Dheeraj Agrawal", "author_email": "dheeraj.agrawal@digitreck.com", "bugtrack_url": null, "classifiers": [], "description": "# digitreck-python\n**digitreck-python** library enables Python applications to connect to digiTreck servers in a fast and convenient way. It enables using digiTreck APIs as methods alongwith header and checksum management.\n\n## 1. Adding Dependency\nEasiest way to integrate digitreck library to your app is through **pip**\n```script\npip install digitrecklib\n```\n\n## 2. Initialize the Library\nTo initialize the library, get Project API Key and Private key from the dashboard.\n```python\nconfig = {\n Config.SERVER_KEY: REPLACE_WITH_API_KEY_FROM_PROJECT, \n Config.PRIVATE_KEY: REPLACE_WITH_SECRET_SALT_FROM_PROJECT\n}\nrequester = Digitreck(config).getInstance()\n```\n\n## 3. Next Steps\nCongratulations! You have successfully performed the basic integration. Now lets move to performing functions like location management and session management.\n\n* ### Location Management\n **1. Device Location**\n```python\ndevice_id = DEVICE_ID\n\nresult = helper.getLocation(device_id)\n```\n\n **2. Device Path**\n```python\ndevice_id = NAUTILUS_DEVICE_ID_1\nstart_date = \"2017-02-20T19:34:01.326Z\"\nend_date = \"2017-02-20T19:34:01.326Z\"\n\nresult = helper.getPath(device_id, start_date, end_date)\n```\n\n **3. Nearby Device**\n```python\ncount = RESULT_COUNT\naccess_key = ACCESS_KEY\nlat = LATITUDE\nlng = LONGITUDE\nrange = RADIUS\n\nresult = helper.getNearbyDevice(count, access_key, lat, lng, range)\n```\n\n* ### Session Management\n **1. Creating a Tracking session**\n```python\ndevice_list = [\n DEVICE_ID_1, \n DEVICE_ID_2\n]\n\nresult = requester.createSessions(device_list)\n```\n\n **2. Releasing a Tracking session**\n```python\ntracking_id = TRACKING_SESSION_ID\n\nresult = helper.releaseSession(tracking_id)\n```\n", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/digitreck/digitreck-python", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/digitreck/digitreck-python", "keywords": "framework,location,maps,maps,gps,digitreck,assests tracking", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "digitrecklib", "package_url": "https://pypi.org/project/digitrecklib/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/digitrecklib/", "project_urls": { "Download": "https://github.com/digitreck/digitreck-python", "Homepage": "https://github.com/digitreck/digitreck-python" }, "release_url": "https://pypi.org/project/digitrecklib/0.2.1/", "requires_dist": null, "requires_python": null, "summary": "digitrecklib library provide easy and convenient way to connect to digitreck servers for efficient device location based services.It enables using digiTreck APIs as methods alongwith header and checksum management.", "version": "0.2.1" }, "last_serial": 2854363, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "4259351f9b6444d261e709a9821dd54b", "sha256": "5bb31b120ba14e3117ac8ced8dbd2a0be9d02ca478d879685e8005f3d06837c0" }, "downloads": -1, "filename": "digitrecklib-0.0.1.tar.gz", "has_sig": false, "md5_digest": "4259351f9b6444d261e709a9821dd54b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4013, "upload_time": "2017-05-01T19:04:21", "url": "https://files.pythonhosted.org/packages/94/43/2c04eea618ea98806a7bc2bf84be0ba4c67bf337a89ac1c8f2aa83fd79d3/digitrecklib-0.0.1.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "029cb0748b12791993a8ff9fb6db4c00", "sha256": "fed9affabdf05d88c369231dff299c9f7d15cab550307a10636e8809663e3d59" }, "downloads": -1, "filename": "digitrecklib-0.2.1.tar.gz", "has_sig": false, "md5_digest": "029cb0748b12791993a8ff9fb6db4c00", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4194, "upload_time": "2017-05-05T18:03:47", "url": "https://files.pythonhosted.org/packages/29/4a/ec523c8d4e77994fe5475f6aca27422379528fa5c18803392ae1ea0d32dd/digitrecklib-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "029cb0748b12791993a8ff9fb6db4c00", "sha256": "fed9affabdf05d88c369231dff299c9f7d15cab550307a10636e8809663e3d59" }, "downloads": -1, "filename": "digitrecklib-0.2.1.tar.gz", "has_sig": false, "md5_digest": "029cb0748b12791993a8ff9fb6db4c00", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4194, "upload_time": "2017-05-05T18:03:47", "url": "https://files.pythonhosted.org/packages/29/4a/ec523c8d4e77994fe5475f6aca27422379528fa5c18803392ae1ea0d32dd/digitrecklib-0.2.1.tar.gz" } ] }