{ "info": { "author": "Jake Peyser, Tommy Li", "author_email": "jepeyser@us.ibm.com, Tommy.chaoping.li@ibm.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# Overview\n\nMetrics Collector Service collects statistics for deployment of a github sample code on Cloud Foundry, Kubernetes, Data Science Experience, OpenWhisk etc.\n\nThis is the source code for metrics_tracker_client, a pip package that can track and report details of a demo/tutorial.\n\n## How To Use It On Applications\n\n1. Open a terminal and run\n\n ```bash\n pip install metrics-tracker-client\n ```\n2. Import the package at the entry point of your app and call the `track()` function.\n\n ```python\n import metrics_tracker_client\n metrics_tracker_client.track()\n ```\n3. Add a copy of the Privacy Notice to the readme file. \n\n **Note:** All apps that have deployment tracker must include the Privacy Notice.\n\n4. Add a `repository.yaml` file in the same directory of your main entry point files.\n\n## How To Use It On Jupyter Notebook\n\n1. In your Jupyter Notebook, insert the following code in your entry point code block. Then, fill in the parameter in `metrics_tracker_client.DSX()` with the format `'/'`.\n\n\t```python\n\t!pip install -q metrics-tracker-client\n\timport metrics_tracker_client\n\tmetrics_tracker_client.DSX('org/repo')\n\t```\n\n2. Add a copy of the Privacy Notice to the readme file. \n\n **Note:** All apps that have deployment tracker must include the Privacy Notice.\n\n3. Add a `repository.yaml` file in your GitHub's top-level repository.\n\n## Example repository.yaml file\n\nThe repository.yaml need to be written in Yaml format. Also, please put all your keys in lower case.\n\n```yaml\nid: watson-discovery-news\nruntimes: \n - Cloud Foundry\nservices: \n - Discovery\nevent_id: web\nevent_organizer: dev-journeys\nlanguage: python\n```\n\nRequired field:\n\n1. id: Put your journey name/Github URL of your journey.\n2. runtimes: Put down all your platform runtime environments in a list.\n3. services: Put down all the bluemix services that are used in your journey in a list.\n4. event_id: Put down where you will distribute your journey. Default is web.\n5. event_organizer: Put down your event organizer if you have one.\n6. language: If your journey is not in **python**, please put down the journey's main language in lower case.\n\n\n## Example app\n\nTo see how to include this into your app please visit [watson-online-store](https://github.com/IBM/watson-online-store). You will want to pay attention to [repository.yaml](https://github.com/IBM/watson-online-store/blob/master/repository.yaml) and [run.py](https://github.com/IBM/watson-online-store/blob/master/run.py#L184).\n\nTo see how to include this into your Jupyter Notebook please visit [Integrate-Investment-Portfolio](https://github.com/IBM/Integrate-Investment-Portfolio). You will want to pay attention to [repository.yaml](https://github.com/IBM/Integrate-Investment-Portfolio/blob/master/repository.yaml) and [SetupPortfolio.ipynb](https://github.com/IBM/Integrate-Investment-Portfolio/blob/master/notebooks/SetupPortfolio.ipynb).\n\n## Privacy Notice\n\nSample web applications that include this package may be configured to track deployments to [IBM Bluemix](https://www.bluemix.net/) and other platforms. The following information is sent to a [Deployment Tracker](https://github.com/IBM/metrics-collector-service) service on each deployment:\n\n* Python package version\n* Python repository URL\n* Application Name (`application_name`)\n* Application GUID (`application_id`)\n* Application instance index number (`instance_index`)\n* Space ID (`space_id`) or OS username\n* Application Version (`application_version`)\n* Application URIs (`application_uris`)\n* Cloud Foundry API (`cf_api`)\n* Labels of bound services\n* Number of instances for each bound service and associated plan information\n* Metadata in the repository.yaml file\n\nThis data is collected from the `setup.py` and `repository.yaml` file in the sample application and the `VCAP_APPLICATION` and `VCAP_SERVICES` environment variables in IBM Bluemix and other Cloud Foundry platforms. This data is used by IBM to track metrics around deployments of sample applications to IBM Bluemix to measure the usefulness of our examples, so that we can continuously improve the content we offer to you. Only deployments of sample applications that include code to ping the Deployment Tracker service will be tracked.\n\n## Disabling Deployment Tracking\n\nPlease see the README for the sample application that includes this package for instructions on disabling deployment tracking, as the instructions may vary based on the sample application in which this package is included.\n\n## License\n\nSee [License.txt](License.txt) for license information.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/IBM/metrics-collector-client-python", "keywords": "demos samples metrics", "license": "Apache-2.0", "maintainer": "", "maintainer_email": "", "name": "metrics-tracker-client", "package_url": "https://pypi.org/project/metrics-tracker-client/", "platform": "", "project_url": "https://pypi.org/project/metrics-tracker-client/", "project_urls": { "Homepage": "https://github.com/IBM/metrics-collector-client-python" }, "release_url": "https://pypi.org/project/metrics-tracker-client/1.1.1/", "requires_dist": null, "requires_python": "", "summary": "Python client for the deployment tracker", "version": "1.1.1" }, "last_serial": 3264091, "releases": { "1.0.4": [ { "comment_text": "", "digests": { "md5": "2a79fa46a98ea405180fee2012881f48", "sha256": "e297e75e70bbc69ee18cd15411f7925e9eb80f78fb343206f1f2648ac6e2e14a" }, "downloads": -1, "filename": "metrics-tracker-client-1.0.4.tar.gz", "has_sig": false, "md5_digest": "2a79fa46a98ea405180fee2012881f48", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4096, "upload_time": "2017-09-19T18:52:22", "url": "https://files.pythonhosted.org/packages/5c/ab/10edd291e40dae4a101f62be8cf0c3d3c7b407e1d22f3ac4834b7633828d/metrics-tracker-client-1.0.4.tar.gz" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "cd1e5c4f15188092969e5c931527752c", "sha256": "e8877bfa2ade7b9162cd0eb2a0ed9f1f770e3c17ac7c7f6e592cd665a3e13b16" }, "downloads": -1, "filename": "metrics-tracker-client-1.0.5.tar.gz", "has_sig": false, "md5_digest": "cd1e5c4f15188092969e5c931527752c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4104, "upload_time": "2017-09-20T17:04:00", "url": "https://files.pythonhosted.org/packages/0b/5b/c9de100d6ef9a82179a2d8f51555446e605427e41d7accaf5e8b12d1be85/metrics-tracker-client-1.0.5.tar.gz" } ], "1.0.6": [ { "comment_text": "", "digests": { "md5": "e5e6dbc95d8492a78ca2f91f46aa4942", "sha256": "4beeeb86b1dd30ad1883372b2e14dbcca8483df68c3983c719f50161fe9c19d8" }, "downloads": -1, "filename": "metrics-tracker-client-1.0.6.tar.gz", "has_sig": false, "md5_digest": "e5e6dbc95d8492a78ca2f91f46aa4942", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4324, "upload_time": "2017-09-26T17:06:10", "url": "https://files.pythonhosted.org/packages/f7/e4/a553bb4baea9b9523ffdecdcda34408749702e9551ea1f2b5fd1f5c4e3cd/metrics-tracker-client-1.0.6.tar.gz" } ], "1.0.7": [ { "comment_text": "", "digests": { "md5": "5978a7ca86032f09bd2bbdf455752f5a", "sha256": "81c4c466960edf09de365b5d250c00c05825ac648d0a6ca5a968117d7840657a" }, "downloads": -1, "filename": "metrics-tracker-client-1.0.7.tar.gz", "has_sig": false, "md5_digest": "5978a7ca86032f09bd2bbdf455752f5a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4611, "upload_time": "2017-09-26T19:12:26", "url": "https://files.pythonhosted.org/packages/07/ae/de8c9e2969c2aafe6bee90d4a412e4c648a633527614b05ce4664cb274cd/metrics-tracker-client-1.0.7.tar.gz" } ], "1.0.8": [ { "comment_text": "", "digests": { "md5": "87feeb0960b8942bd039c6d5f6661a62", "sha256": "58b4ae28c53fa24379c74d3994327dc4cd63c03215378f90d04fb07681973015" }, "downloads": -1, "filename": "metrics-tracker-client-1.0.8.tar.gz", "has_sig": false, "md5_digest": "87feeb0960b8942bd039c6d5f6661a62", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4992, "upload_time": "2017-09-27T21:08:46", "url": "https://files.pythonhosted.org/packages/b8/cd/6bf16844b870d937d55678b3bf6394a8d0e7fae027bfd1899566f8be2c0e/metrics-tracker-client-1.0.8.tar.gz" } ], "1.0.9": [ { "comment_text": "", "digests": { "md5": "ff1b9cabaedbc8b3ff41726bcf784420", "sha256": "87a5cb8d194864109dab08220c88286812c1446fd1772b6bebc4919f0adace80" }, "downloads": -1, "filename": "metrics-tracker-client-1.0.9.tar.gz", "has_sig": false, "md5_digest": "ff1b9cabaedbc8b3ff41726bcf784420", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4980, "upload_time": "2017-09-27T21:28:37", "url": "https://files.pythonhosted.org/packages/8d/da/5ca57654b1f64bafedac0a79f2809c077b7fcd0d0dc1e202fbfcc2f62532/metrics-tracker-client-1.0.9.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "f09c5ea1d3a0fa3da5c70abb2822b317", "sha256": "b7a03dbdd04c3d4d666da506a7a237033becfd1f99505e3c4e5ffd2447b75f9d" }, "downloads": -1, "filename": "metrics-tracker-client-1.1.0.tar.gz", "has_sig": false, "md5_digest": "f09c5ea1d3a0fa3da5c70abb2822b317", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5171, "upload_time": "2017-10-19T17:46:10", "url": "https://files.pythonhosted.org/packages/a2/2e/e75feb30c2bc00c4ebe0007a5bcb18abf5054194eafbf0bb7ea76977e5d3/metrics-tracker-client-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "d19e1410980e54430d71c81ec0993bf5", "sha256": "7745cd53b490555b9c1bcc511b4598718cb86bc066f5a96b3a52e1d2eee256c5" }, "downloads": -1, "filename": "metrics-tracker-client-1.1.1.tar.gz", "has_sig": false, "md5_digest": "d19e1410980e54430d71c81ec0993bf5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5198, "upload_time": "2017-10-19T21:36:01", "url": "https://files.pythonhosted.org/packages/98/1d/5795a434431da06001cd35ce22e310bc663551b6f00d081e2f63eda56b4f/metrics-tracker-client-1.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d19e1410980e54430d71c81ec0993bf5", "sha256": "7745cd53b490555b9c1bcc511b4598718cb86bc066f5a96b3a52e1d2eee256c5" }, "downloads": -1, "filename": "metrics-tracker-client-1.1.1.tar.gz", "has_sig": false, "md5_digest": "d19e1410980e54430d71c81ec0993bf5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5198, "upload_time": "2017-10-19T21:36:01", "url": "https://files.pythonhosted.org/packages/98/1d/5795a434431da06001cd35ce22e310bc663551b6f00d081e2f63eda56b4f/metrics-tracker-client-1.1.1.tar.gz" } ] }