{ "info": { "author": "Paulo Kuong", "author_email": "paulo.kuong@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.6" ], "description": "| |Build Status|\n\nLotame API Wrapper\n------------------\n\nWrapper Class for Lotame API.\n\n | Fully unit tested wrapper class for Lotame REST API.\n | https://api.lotame.com/docs\n | https://github.com/paulokuong/lotame\n\nRequirements\n------------\n\n- Python 3.6 (tested)\n\nGoal\n----\n\n| To provide a generic wrapper Lotame API\n\nCode sample\n-----------\n\n| Instantiate\n\n.. code:: python\n\n from lotame.lotame import Lotame\n l = Lotame(username='xxxx', password='yyyy')\n\n| Search audiences\n\n.. code:: python\n\n audiences = l.get('audiences/search', searchTerm='Age - ').json()['Audience']\n\n| Get behavior 3333\n\n.. code:: python\n\n behavior = l.get('behaviors/{}'.format(3333)).json()\n\n| Create audience segment with 3 behaviors.\n\n.. code:: python\n\n audience_definition = l.get_create_audience_json(\n 'Lotame api test 5',\n 2215, [[6322283, 6322292], [6322283, 6322292]],\n 'Testing out Lotame API 5')\n post_response_json = l.post('audiences', audience_definition).json()\n print(post_response_json)\n\n| Create audience segment with 3 behaviors for (My Profile)\n\n.. code:: python\n\n audience_definition = l.get_create_audience_json(\n 'Lotame api test 5',\n 2215, [[6322283, 6322292, 1111760, 6322303], [6322283, 6322292, 1111760, 6322303]],\n 'Testing out Lotame API 5', overlap=True)\n\n| Getting Reach Estimate (Note that description param is removed since it is not valid param)\n\n.. code:: python\n\n audience_definition = l.get_create_audience_json(\n 'Lotame api test 8',\n 2215, [[6322283, 6322292, 1111760, 6322303], [6322283, 6322292, 1111760, 6322303]])\n reach_estimates = l.post('audiences/reachEstimates', audience_definition).json()\n reach_estimates_res = l.get('audiences/reachEstimates/{}'.format(reach_estimates.get('id')))\n print(reach_estimates_res.json())\n\n| Getting behaviors under hierarchy tree at depth 2 child nodes.\n\n.. code:: python\n\n [{'name':j['name'],'behavior_id':j['behaviorId']}\n for j in l.get('hierarchies/525000', depth=2).json().get('nodes')[1].get('childNodes')]\n\n| Getting report for audience profile\n\n.. code:: python\n\n res = l.get('reports/audiences/{audience_id}/profile/type/{audience_profile_report_type_id}'.format(\n audience_id=333333,audience_profile_report_type_id=6))\n\nContributors\n------------\n\n- Paulo Kuong (`@pkuong`_)\n\n.. _@pkuong: https://github.com/paulokuong\n\n.. |Build Status| image:: https://travis-ci.org/paulokuong/lotame.svg?branch=master\n.. target: https://travis-ci.org/paulokuong/lotame\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/paulokuong/lotame", "keywords": "lotame api audience behavior api sdk", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "lotame", "package_url": "https://pypi.org/project/lotame/", "platform": "", "project_url": "https://pypi.org/project/lotame/", "project_urls": { "Homepage": "https://github.com/paulokuong/lotame" }, "release_url": "https://pypi.org/project/lotame/1.0.4/", "requires_dist": null, "requires_python": "", "summary": "LOTAME API Wrapper", "version": "1.0.4" }, "last_serial": 5104241, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "6fc7a7a2288349a4c6abdd610b7e8a72", "sha256": "38c4219bbb8a6592fcd998a1afec5009fd424ffa53ad95845a760f578e573f41" }, "downloads": -1, "filename": "lotame-1.0.0.tar.gz", "has_sig": false, "md5_digest": "6fc7a7a2288349a4c6abdd610b7e8a72", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4562, "upload_time": "2019-04-02T16:55:31", "url": "https://files.pythonhosted.org/packages/f1/62/70fe413f97c0dce887e9992e7f4d334e66491d76a9bfb9aaf2242d0bb3d6/lotame-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "c14c52620b0b127608df8cc3806dc0b9", "sha256": "e6146cae20e7a78cc2786952790e24deeb5b6d1feffd580b36c3bdfc1d3b0699" }, "downloads": -1, "filename": "lotame-1.0.1.tar.gz", "has_sig": false, "md5_digest": "c14c52620b0b127608df8cc3806dc0b9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4558, "upload_time": "2019-04-02T16:59:54", "url": "https://files.pythonhosted.org/packages/84/d9/14c6d7781ad0fd738d2201317bbc7f48c151122d57f7f37f3700cb36ae5a/lotame-1.0.1.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "4acb3fd1e692fc7237b3c20a4ed54d6c", "sha256": "2aa6b765eade3cfafc2f5e4e2df66b7bf42957575dba62c2cb930e7505ddc604" }, "downloads": -1, "filename": "lotame-1.0.3.tar.gz", "has_sig": false, "md5_digest": "4acb3fd1e692fc7237b3c20a4ed54d6c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4624, "upload_time": "2019-04-02T20:20:58", "url": "https://files.pythonhosted.org/packages/cd/27/c6e7bdd4d172f2bf952637460cb068513afa164bd928b2fcdcbc97de87fc/lotame-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "30aa637231c2c14188ecc4eeaf523dd9", "sha256": "8c31fb92ee2c5cfc774533776c3bf154f41170fec39383e54d625adec02acd54" }, "downloads": -1, "filename": "lotame-1.0.4.tar.gz", "has_sig": false, "md5_digest": "30aa637231c2c14188ecc4eeaf523dd9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4941, "upload_time": "2019-04-02T20:56:15", "url": "https://files.pythonhosted.org/packages/b1/8c/ade711095fd9f8fdc1602753e4b3c7874b66442a0c6a1605b5abdb2ff293/lotame-1.0.4.tar.gz" } ], "1.0.4a0": [ { "comment_text": "", "digests": { "md5": "83b8edcebcb06f5e7705f381fc63711c", "sha256": "c675031d7fd694638f3b1b8c4fa48b148bde96e2fe4bf4f98ef6176722d08df6" }, "downloads": -1, "filename": "lotame-1.0.4a0.tar.gz", "has_sig": false, "md5_digest": "83b8edcebcb06f5e7705f381fc63711c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4968, "upload_time": "2019-04-05T15:21:19", "url": "https://files.pythonhosted.org/packages/ad/d1/4a81c21011af1ab1d74d3fd2890577daa5dfe5d0668bddd8177a7601c582/lotame-1.0.4a0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "30aa637231c2c14188ecc4eeaf523dd9", "sha256": "8c31fb92ee2c5cfc774533776c3bf154f41170fec39383e54d625adec02acd54" }, "downloads": -1, "filename": "lotame-1.0.4.tar.gz", "has_sig": false, "md5_digest": "30aa637231c2c14188ecc4eeaf523dd9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4941, "upload_time": "2019-04-02T20:56:15", "url": "https://files.pythonhosted.org/packages/b1/8c/ade711095fd9f8fdc1602753e4b3c7874b66442a0c6a1605b5abdb2ff293/lotame-1.0.4.tar.gz" } ] }