{ "info": { "author": "The Zaius Team", "author_email": "engineering@zaius.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "zaius\\_export: export api for custom reporting\n=============================================\n\nUsing zaius\\_export, you can build and automate custom reports.\nLike this:\n```python\nimport datetime\nimport zaius.export as export\n\n# count the users who clicked this week\nlast_week = datetime.date.today() - datetime.timedelta(days=7)\nlast_week = datetime.datetime.fromordinal(last_week.toordinal()).replace(tzinfo=datetime.timezone.utc)\n\nquery = \"\"\"\nselect zaius_id\nfrom events\nwhere\n event_type = 'email'\n and action = 'click'\n and ts > {}\n\"\"\".format(int(last_week.timestamp()))\nrows = export.API().query(query)\nprint(len(set([r['zaius_id'] for r in rows])))\n```\n\nOr, use pre-baked reports. Like this:\n```sh\n$ zaius-export product-attribution 2019-1-1 2019-1-31\n```\n\nOr This:\n```sh\n$ zaius-export lifecycle-progress 2018-1 2019-1\n```\nOr This:\n```sh\n$ zaius-export email-metrics 9097 2019-4-25 2020-4-25\n```\nReplace '9097' with the campaign ID you want to view metrics for. \nReplace '2019-4-25 2020-4-25' with the timerange of your choice. This timerange reflects the times assigned to the 'Scheduled Campaign Run Time' field of email send events. For each of the send events that meet that time range, any and all opens, clicks, and spamreports are counted if they happened, irregardless of when they happened.\nThis timerange also serves as the lower and upper bounds in which unsubscribe events happened.\n\nYou can specify the output file. This example creates an export.csv file in the Documents directory:\n```sh\n$ zaius-export --output ~/Documents/export.csv product-attribution 2019-1-1 2019-1-31\n```\n\n\n## Installation\n\nInstallation happens in the usual way:\n\n```sh\n$ pip install zaius_export\n```\n\nNow the `zaius-export` utility should be on your PATH.\n\n## Authorization\n\nAPI calls depend on having a set of credentials available to authenticate your request. By\ndefault, all tools will look for these to be defined in $HOME/.zaius\\_api. This file\nshould look like this:\n``` {.sourceCode .ini}\n[auth]\naws_access_key_id: ***\naws_secret_access_key: ***\nzaius_secret_key: ***\n```\n\nYou can find the appropriate values for this file by logging into Zaius. Click the gear icon\nnext to your business name at the top left of the screen, select \"APIs\" from the menu on the\nleft (under Data Management), and then find your zaius\\_secret\\_key under the Private tab.\n\nYour AWS credentials can be found in the Integrations section (Gear Icon, Data Management,\nIntegrations) by opening the AWS integration.\n\n## Versioning\n\nWe use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/ZaiusInc/zaius-magento-2/tags). \n\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/zaiusinc/python-zaius-export", "keywords": "", "license": "Apache 2.0", "maintainer": "", "maintainer_email": "", "name": "zaius-export", "package_url": "https://pypi.org/project/zaius-export/", "platform": "", "project_url": "https://pypi.org/project/zaius-export/", "project_urls": { "Homepage": "http://github.com/zaiusinc/python-zaius-export" }, "release_url": "https://pypi.org/project/zaius-export/1.5/", "requires_dist": [ "requests", "parsy", "boto3 (>=1.12)", "python-dateutil (==2.8.0)" ], "requires_python": "", "summary": "Zaius Export API Interface", "version": "1.5", "yanked": false, "yanked_reason": null }, "last_serial": 11654006, "releases": { "1.1": [ { "comment_text": "", "digests": { "md5": "01d95285a825c133a08af857dff1c3c9", "sha256": "4e4a413e517e6105666a361f01192349eceea86575840c585ecdadef1cd4e25b" }, "downloads": -1, "filename": "zaius_export-1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "01d95285a825c133a08af857dff1c3c9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14947, "upload_time": "2019-04-24T23:33:13", "upload_time_iso_8601": "2019-04-24T23:33:13.854820Z", "url": "https://files.pythonhosted.org/packages/b1/62/110270c5a32304872caff8a09ca7051f81758a8405d7f4c418ead2d8e1e8/zaius_export-1.1-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "6fa9751754ef771265e4ac1489c2d5a9", "sha256": "cfb5bf77b77d6d3cd8941a3836433c6e7af3b07c798ac190f9b73c964a62c6aa" }, "downloads": -1, "filename": "zaius_export-1.1.tar.gz", "has_sig": false, "md5_digest": "6fa9751754ef771265e4ac1489c2d5a9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11384, "upload_time": "2019-04-24T23:33:19", "upload_time_iso_8601": "2019-04-24T23:33:19.474780Z", "url": "https://files.pythonhosted.org/packages/fd/9d/ec462d9a496085f58a4c65a9f494343181ff262893a4c56fdc69465a5178/zaius_export-1.1.tar.gz", "yanked": false, "yanked_reason": null } ], "1.2": [ { "comment_text": "", "digests": { "md5": "04c14682a5cba92596a5c0f923cbf7a0", "sha256": "29d4fd99c18a7608ad59b261465e95e3ca25cbf867ca3682d85b78c9bf0e3417" }, "downloads": -1, "filename": "zaius_export-1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "04c14682a5cba92596a5c0f923cbf7a0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 15864, "upload_time": "2019-04-25T00:13:10", "upload_time_iso_8601": "2019-04-25T00:13:10.170777Z", "url": "https://files.pythonhosted.org/packages/45/a7/04069aa0ba409b3ceb467e957cbb02639b546a46fddf37092a8d230ce8a0/zaius_export-1.2-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "7b39789ad4fb1a930e58094aedb12af2", "sha256": "0f4c4b48d7511b6612a337d90316567bc3d5d554ad7cc9a79387e6462e8e9965" }, "downloads": -1, "filename": "zaius_export-1.2.tar.gz", "has_sig": false, "md5_digest": "7b39789ad4fb1a930e58094aedb12af2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11571, "upload_time": "2019-04-25T00:13:25", "upload_time_iso_8601": "2019-04-25T00:13:25.407293Z", "url": "https://files.pythonhosted.org/packages/bc/ab/0c0721fcedea20e5d349f2eae718faa19ccc7d947fd633168656256c25fc/zaius_export-1.2.tar.gz", "yanked": false, "yanked_reason": null } ], "1.3": [ { "comment_text": "", "digests": { "md5": "6333df559da639c102af8cbf0fcf2327", "sha256": "7b82abc30ba1f535e4dcb02e8db744dfdf0867ec98c2fad579091b1dbf6e78f8" }, "downloads": -1, "filename": "zaius_export-1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "6333df559da639c102af8cbf0fcf2327", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 16132, "upload_time": "2019-05-29T02:00:07", "upload_time_iso_8601": "2019-05-29T02:00:07.818090Z", "url": "https://files.pythonhosted.org/packages/f2/34/ef15ae185a041bd48799462c48f1f78249edcf9215252a9bb40cae029c89/zaius_export-1.3-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "fa51abd0532e365f6f4d35cfebac8c71", "sha256": "7f5a4f3b45580ee91d5847e1699f81ef54dc1883ee1b661b115594fd295e072f" }, "downloads": -1, "filename": "zaius_export-1.3.tar.gz", "has_sig": false, "md5_digest": "fa51abd0532e365f6f4d35cfebac8c71", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11733, "upload_time": "2019-05-29T02:00:09", "upload_time_iso_8601": "2019-05-29T02:00:09.360418Z", "url": "https://files.pythonhosted.org/packages/2f/85/1802f68c891e3f66cdda3d4c9f0e52b03fa973ef0f7d41623785aac58a13/zaius_export-1.3.tar.gz", "yanked": false, "yanked_reason": null } ], "1.4.1": [ { "comment_text": "", "digests": { "md5": "a3bdc97970a261fb7e107eb2d1c90064", "sha256": "65b459d7302e2da953a2741750eab7c914f62054325dd3b033be86ff74ad4c98" }, "downloads": -1, "filename": "zaius_export-1.4.1-py3-none-any.whl", "has_sig": false, "md5_digest": "a3bdc97970a261fb7e107eb2d1c90064", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 16301, "upload_time": "2019-10-23T00:16:40", "upload_time_iso_8601": "2019-10-23T00:16:40.490310Z", "url": "https://files.pythonhosted.org/packages/58/d5/9da438277677c7e64e37e25f8ebb08563a7a2e6e42e68fd20e697df67ae4/zaius_export-1.4.1-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "c5aedff4c3b6edf8f540fcaccc7aa5e7", "sha256": "641a1c0493d00d6fdfe07db3e7e71e4b03af2c27bf186d3b3f86eebb1d5569e0" }, "downloads": -1, "filename": "zaius_export-1.4.1.tar.gz", "has_sig": false, "md5_digest": "c5aedff4c3b6edf8f540fcaccc7aa5e7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11940, "upload_time": "2019-10-23T00:16:41", "upload_time_iso_8601": "2019-10-23T00:16:41.956353Z", "url": "https://files.pythonhosted.org/packages/f2/bd/9424830940dfe4d9474cf26e8be2781bcee174ed4e0fbd1524293c77e898/zaius_export-1.4.1.tar.gz", "yanked": false, "yanked_reason": null } ], "1.4.2": [ { "comment_text": "", "digests": { "md5": "a6baf8769236831355474131331f6186", "sha256": "031a1fd4b59519367035ad471cc8a6adb3efc6747471627be62b1fe9bab6b586" }, "downloads": -1, "filename": "zaius_export-1.4.2-py3-none-any.whl", "has_sig": false, "md5_digest": "a6baf8769236831355474131331f6186", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 18057, "upload_time": "2020-05-06T02:21:20", "upload_time_iso_8601": "2020-05-06T02:21:20.685322Z", "url": "https://files.pythonhosted.org/packages/f6/cc/d95099119e90f62d18746a49a8f296d0150964924aa007584b10e48ac3f2/zaius_export-1.4.2-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "5567d08c8ab392cf64b1f861cf8959fa", "sha256": "f328fca7b15026b27534f4e394b79b9523c8bde433a0cf5b5fdd7c883daff26e" }, "downloads": -1, "filename": "zaius_export-1.4.2.tar.gz", "has_sig": false, "md5_digest": "5567d08c8ab392cf64b1f861cf8959fa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13074, "upload_time": "2020-05-06T02:21:21", "upload_time_iso_8601": "2020-05-06T02:21:21.804697Z", "url": "https://files.pythonhosted.org/packages/76/31/c03b354df5d7240468d478421e05344139b5c91ce14fb81b4f69b35a147b/zaius_export-1.4.2.tar.gz", "yanked": false, "yanked_reason": null } ], "1.5": [ { "comment_text": "", "digests": { "md5": "ad96054f56290a4160ea8ae2eb89e7f0", "sha256": "3a73fd8555afb81089cabebf535054474d8ca4531c54f0f5ab10046cf7f2a012" }, "downloads": -1, "filename": "zaius_export-1.5-py3-none-any.whl", "has_sig": false, "md5_digest": "ad96054f56290a4160ea8ae2eb89e7f0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 18787, "upload_time": "2021-10-07T12:41:01", "upload_time_iso_8601": "2021-10-07T12:41:01.830368Z", "url": "https://files.pythonhosted.org/packages/6a/a7/821d099b8279814375c7c30faf7ba4179f68e3c4ee41093d5d2b83bc2d44/zaius_export-1.5-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "eb2c76ef912cd4a30f5ed26c1d38ce8a", "sha256": "e00a4f0fa9bb85e4bae7f8cdb164df2fcd1e39a6549dc6e118feba1a8365f304" }, "downloads": -1, "filename": "zaius_export-1.5.tar.gz", "has_sig": false, "md5_digest": "eb2c76ef912cd4a30f5ed26c1d38ce8a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13608, "upload_time": "2021-10-07T12:41:03", "upload_time_iso_8601": "2021-10-07T12:41:03.447091Z", "url": "https://files.pythonhosted.org/packages/2b/15/b0a98a44e221da29827adbb6df9b9d19cef3e0395cbdf6821e75b1a37e55/zaius_export-1.5.tar.gz", "yanked": false, "yanked_reason": null } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ad96054f56290a4160ea8ae2eb89e7f0", "sha256": "3a73fd8555afb81089cabebf535054474d8ca4531c54f0f5ab10046cf7f2a012" }, "downloads": -1, "filename": "zaius_export-1.5-py3-none-any.whl", "has_sig": false, "md5_digest": "ad96054f56290a4160ea8ae2eb89e7f0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 18787, "upload_time": "2021-10-07T12:41:01", "upload_time_iso_8601": "2021-10-07T12:41:01.830368Z", "url": "https://files.pythonhosted.org/packages/6a/a7/821d099b8279814375c7c30faf7ba4179f68e3c4ee41093d5d2b83bc2d44/zaius_export-1.5-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "eb2c76ef912cd4a30f5ed26c1d38ce8a", "sha256": "e00a4f0fa9bb85e4bae7f8cdb164df2fcd1e39a6549dc6e118feba1a8365f304" }, "downloads": -1, "filename": "zaius_export-1.5.tar.gz", "has_sig": false, "md5_digest": "eb2c76ef912cd4a30f5ed26c1d38ce8a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13608, "upload_time": "2021-10-07T12:41:03", "upload_time_iso_8601": "2021-10-07T12:41:03.447091Z", "url": "https://files.pythonhosted.org/packages/2b/15/b0a98a44e221da29827adbb6df9b9d19cef3e0395cbdf6821e75b1a37e55/zaius_export-1.5.tar.gz", "yanked": false, "yanked_reason": null } ], "vulnerabilities": [] }