{ "info": { "author": "Johann Schmitz", "author_email": "johann@j-schmitz.net", "bugtrack_url": null, "classifiers": [], "description": "Python implementation of the Piwik HTTP API.\n\n**Note**: This project is called *python-piwik* on PyPI since *pypiwik* is already taken by an abandoned project.\n\n\n# Usage\n\nBasic usage:\n\n from pypiwik.tracker import PiwikTracker\n tracker = PiwikTracker('http://example.com', 1)\n\nnow you can call \n\n tracker.track_page_view()\n \nto make a server-to-server tracking request, or call\n\n tracker.tracking_code()\n \nto generate the correct Javascript snippet.\n\n\n## Tracking variables\n\nTracking variables are set as class attributes on the `tracker` object. Have a look at the `pypiwik.tracker.PARAMETERS` dictionary to see which attribute maps to which tracking parameter, e.g.:\n\n tracker = PiwikTracker('http://example.com', 1)\n tracker.action_name = 'Help / Support'\n tracker.track_page_view()\n\nYou can also pass the tracking variables to the `track_page_view` or `tracking_code` call as kwargs. The code above is equivalent to the following:\n\n tracker = PiwikTracker('http://example.com', 1)\n tracker.track_page_view(action_name='Help / Support')\n\n\n## Custom variables\n\nCustom variables can be set in the `page_custom_vars` and `visit_custom_vars` dictionary to track custom variables in the `page` and `visit` scope:\n\n_Note:_ Piwik allows at most 5 custom variables per scope. When making server-to-server requests, the code does not check for the numbers of variables in the dictionary.\n\n\n## Server API\n\nWhen making server-to-server calls, `pypiwik` will use HTTP headers for the following variables to reduce the request size:\n\n* `user_agent`\n* `referer`\n* `lang`\n\nIf you want to pass the values as regular variables, set `spoof_request` to `False` on the tracker instance.\n\n\n## Cloning another request\n\nIf you want to make server-to-server requests based on a HTTP request of an actual user, pass the request object to `__init__`:\n\n tracker = PiwikTracker('http://example.com', 1, request)\n \n_Note:_ atm, only Django-like request objects supported (an object which has a `META` dictionary).\n\n\n# TODO\n\n* Implement [Bulk-Tracking](http://developer.piwik.org/api-reference/tracking-api#bulk-tracking)\n* Implement the [Ecommerce variables](http://developer.piwik.org/api-reference/tracking-api#optional-ecommercehttppiwikorgdocsecommerce-analytics-info)", "description_content_type": null, "docs_url": null, "download_url": "https://code.not-your-server.de/pypiwik.git/tags/", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://ercpe.de/projects/pypiwik", "keywords": null, "license": "GPL-3", "maintainer": null, "maintainer_email": null, "name": "python-piwik", "package_url": "https://pypi.org/project/python-piwik/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/python-piwik/", "project_urls": { "Download": "https://code.not-your-server.de/pypiwik.git/tags/", "Homepage": "https://ercpe.de/projects/pypiwik" }, "release_url": "https://pypi.org/project/python-piwik/0.2/", "requires_dist": null, "requires_python": null, "summary": "Python implementation of the Piwik HTTP API", "version": "0.2" }, "last_serial": 2445140, "releases": { "0.1.2": [ { "comment_text": "", "digests": { "md5": "074bfef54bdd1999fbfda5e974d7be6c", "sha256": "43a791d3d9225ad455b7ff065f77725db2953ee803232a440359d74dc390f792" }, "downloads": -1, "filename": "python-piwik-0.1.2.tar.gz", "has_sig": false, "md5_digest": "074bfef54bdd1999fbfda5e974d7be6c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6743, "upload_time": "2015-07-18T14:15:17", "url": "https://files.pythonhosted.org/packages/31/68/d72474fe94d82d5c5868bd65a5cd61d888afbe64c9015fdd47388df17a13/python-piwik-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "1cc9218dbfa22924dccb44512eafd610", "sha256": "bbcf2c3406a650298a9b4cad5af3761be44be4b3fb917d406fb98a56e53af957" }, "downloads": -1, "filename": "python-piwik-0.1.3.tar.gz", "has_sig": true, "md5_digest": "1cc9218dbfa22924dccb44512eafd610", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6899, "upload_time": "2015-07-18T14:49:06", "url": "https://files.pythonhosted.org/packages/17/cc/0cdc74f484a475b17b21fa647563e39ee5f41f82665dfcb9e87904ff4377/python-piwik-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "d4b5abf14c98ca81f08811eccd81b0aa", "sha256": "ffb8db0880ebd66309d56f465896ccda5b7fd5a2d3faf2ba5a9e3dbb46c76040" }, "downloads": -1, "filename": "python-piwik-0.1.4.tar.gz", "has_sig": true, "md5_digest": "d4b5abf14c98ca81f08811eccd81b0aa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7003, "upload_time": "2015-07-19T08:09:01", "url": "https://files.pythonhosted.org/packages/27/62/f27a2d44f59149ba7eddc3cbfd71406be7a78194bd7be1a01110e03fd1f9/python-piwik-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "2553168a58e0377e4018b2c33859433f", "sha256": "23966116fcfc5ad786213a56ad4cb4b0a184c22b25e09dc92ba9c2b51cfa937f" }, "downloads": -1, "filename": "python-piwik-0.1.5.tar.gz", "has_sig": false, "md5_digest": "2553168a58e0377e4018b2c33859433f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7007, "upload_time": "2015-09-05T04:46:07", "url": "https://files.pythonhosted.org/packages/b6/76/3c9d15cdbf869344d31bc09cd2f88c17ad9e2e576975ae127c704792a455/python-piwik-0.1.5.tar.gz" } ], "0.1.5.1": [ { "comment_text": "", "digests": { "md5": "cf593fdff8b2fa0210db87d640c0804e", "sha256": "191b18fea376c01ade54b8485f037515c6e160b934424f8a633bd91631897663" }, "downloads": -1, "filename": "python-piwik-0.1.5.1.tar.gz", "has_sig": false, "md5_digest": "cf593fdff8b2fa0210db87d640c0804e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6190, "upload_time": "2015-09-05T04:51:12", "url": "https://files.pythonhosted.org/packages/13/8c/359280db92731584a99976b935e1808752d196ab1d61323b236726b3591d/python-piwik-0.1.5.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "fa9aeeb5662c7bc383638e8e7a450869", "sha256": "593e663f44721b63f6cd50800df2f634aa7a43228be5e1e01de4bd0aeff3d23c" }, "downloads": -1, "filename": "python-piwik-0.2.tar.gz", "has_sig": false, "md5_digest": "fa9aeeb5662c7bc383638e8e7a450869", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23524, "upload_time": "2016-11-06T08:36:23", "url": "https://files.pythonhosted.org/packages/2a/f9/cdf6179f1967fdc67f4c90ee537c3e130450bc1b6abcdc1c73a74347d299/python-piwik-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fa9aeeb5662c7bc383638e8e7a450869", "sha256": "593e663f44721b63f6cd50800df2f634aa7a43228be5e1e01de4bd0aeff3d23c" }, "downloads": -1, "filename": "python-piwik-0.2.tar.gz", "has_sig": false, "md5_digest": "fa9aeeb5662c7bc383638e8e7a450869", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23524, "upload_time": "2016-11-06T08:36:23", "url": "https://files.pythonhosted.org/packages/2a/f9/cdf6179f1967fdc67f4c90ee537c3e130450bc1b6abcdc1c73a74347d299/python-piwik-0.2.tar.gz" } ] }