{ "info": { "author": "Matheus Marchini", "author_email": "matheus@sthima.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Debuggers" ], "description": "# python-stapsdt\n\nCreate USDT probes and instrument your Python application dynamically.\n\n# Dependencies\n\nAt the moment this package only runs on Linux and requires\n[libstapsdt](https://github.com/sthima/libstapsdt) to be installed to create\nruntime probes.\n\n## Ubuntu 16.04\n\nTo install libstapsdt, run:\n\n```bash\nsudo add-apt-repository ppa:sthima/oss\nsudo apt-get update\nsudo apt-get install libstapsdt0 libstapsdt-dev\n```\n\n## Other\n\nBuild from [libstapsdt](https://github.com/sthima/libstapsdt).\n\n# Install\n\n```bash\npip install stapsdt\n```\n\n# Example\n\nThe following code will create a probe named `firstProbe`.\n\n```python\nfrom time import sleep\n\nimport stapsdt\n\nprovider = stapsdt.Provider(\"pythonapp\")\nprobe = provider.add_probe(\n \"firstProbe\", stapsdt.ArgTypes.uint64, stapsdt.ArgTypes.int32)\nprovider.load()\n\n\nwhile True:\n print(\"Firing probe...\")\n if probe.fire(\"My little probe\", 42):\n print(\"Probe fired!\")\n sleep(1)\n```\n\nYou can then trace this probe with any tool able to trace Systemtap's probes.\nHere's an example with eBPF/bcc:\n\n```bash\nsudo trace -p PID 'u::firstProbe \"%s - %d\", arg1, arg2'\n```\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/sthima/python-stapsdt", "keywords": "usdt stapsdt systemtap sdt tracing probes instrumentation performance", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "stapsdt", "package_url": "https://pypi.org/project/stapsdt/", "platform": "", "project_url": "https://pypi.org/project/stapsdt/", "project_urls": { "Homepage": "https://github.com/sthima/python-stapsdt" }, "release_url": "https://pypi.org/project/stapsdt/0.1.1/", "requires_dist": null, "requires_python": "", "summary": "Create USDT probes and instrument your Python application dynamically", "version": "0.1.1" }, "last_serial": 3257659, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "513650dddf0322318909856857174bc2", "sha256": "fabc2ca82a7c7f7307bd5326a1a1cace720aa6e1682a53afe09f6cb20218e636" }, "downloads": -1, "filename": "stapsdt-0.1.1.tar.gz", "has_sig": false, "md5_digest": "513650dddf0322318909856857174bc2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2963, "upload_time": "2017-10-17T18:49:05", "url": "https://files.pythonhosted.org/packages/e2/71/cb26f3dda412814e22b3ed538bac58379cdf2c003345579aefe7e0d13677/stapsdt-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "513650dddf0322318909856857174bc2", "sha256": "fabc2ca82a7c7f7307bd5326a1a1cace720aa6e1682a53afe09f6cb20218e636" }, "downloads": -1, "filename": "stapsdt-0.1.1.tar.gz", "has_sig": false, "md5_digest": "513650dddf0322318909856857174bc2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2963, "upload_time": "2017-10-17T18:49:05", "url": "https://files.pythonhosted.org/packages/e2/71/cb26f3dda412814e22b3ed538bac58379cdf2c003345579aefe7e0d13677/stapsdt-0.1.1.tar.gz" } ] }