Name | tracescopio JSON |
Version |
2.0.1
JSON |
| download |
home_page | |
Summary | Tracescopio - um capturador simples de tracebacks |
upload_time | 2023-12-18 12:45:49 |
maintainer | |
docs_url | None |
author | Tercio A Oliveira |
requires_python | |
license | |
keywords |
python
traceback
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
Tracescopio: Simplifying Stack Trace Retrieval for Your Django Applications Remotely
Tracescopio is a tool designed to make obtaining stack traces from your python app easy: the events are sent to your Tracescopio app. (You can install Tracescopio app in your own server. [See more.](https://github.com/t3rcio/tracescopio))
## Get started
Firts of all, make sure your have your own server running.
After that, use the pip command to install the tracescopio in your app:
pip install tracescopio
Put the the your Tracescopio url server in your project's settings.py file:
(...)
TRACERSCOPIO_SERVER = '<your tracescopio-app url>'
Obtain the IDE code for your app:
python manage.py shell
from tracescopio import scopio
TracescopioApp.new(name='foo', url='foo.com')
{'ide':some-code-for-your-app', 'msg':'Success'}
Put the "ide" code in your project's settings.py file:
(...)
APP_TRACESCOPIO_IDE = '<the ide code for you app>'
Finally, to get the stack traces you can use the decorator or the middleware.
Decorator
--
Add the import
(..)
from tracescopio.decorators import traceme
Add the decorator
@trace
def the_view_raising_some_exception(request, *args, **kwargs):
(...)
Middleware
--
In your settgins.py's middleware section, add the tracescopio middleware:
(...)
MIDDLEWARE = [
(...)
"tracescopio.middleware.telemetria.TelemetryMiddleware",
]
That is it!
Raw data
{
"_id": null,
"home_page": "",
"name": "tracescopio",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "python,traceback",
"author": "Tercio A Oliveira",
"author_email": "t3rcio@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/cb/a1/1bc9a3d538c7141e2a6d5fe7dd1548029ff441394e6c6db5df9692c69365/tracescopio-2.0.1.tar.gz",
"platform": null,
"description": "Tracescopio: Simplifying Stack Trace Retrieval for Your Django Applications Remotely\n\nTracescopio is a tool designed to make obtaining stack traces from your python app easy: the events are sent to your Tracescopio app. (You can install Tracescopio app in your own server. [See more.](https://github.com/t3rcio/tracescopio))\n\n## Get started\nFirts of all, make sure your have your own server running.\nAfter that, use the pip command to install the tracescopio in your app:\n\n pip install tracescopio\n\nPut the the your Tracescopio url server in your project's settings.py file:\n\n (...)\n TRACERSCOPIO_SERVER = '<your tracescopio-app url>'\n\nObtain the IDE code for your app:\n\n python manage.py shell\n from tracescopio import scopio\n TracescopioApp.new(name='foo', url='foo.com')\n {'ide':some-code-for-your-app', 'msg':'Success'}\n\nPut the \"ide\" code in your project's settings.py file:\n\n\t(...)\n APP_TRACESCOPIO_IDE = '<the ide code for you app>'\n\nFinally, to get the stack traces you can use the decorator or the middleware.\n\nDecorator\n--\nAdd the import\n\n (..)\n from tracescopio.decorators import traceme\n\nAdd the decorator\n\n @trace\n def the_view_raising_some_exception(request, *args, **kwargs):\n (...)\n\nMiddleware\n--\nIn your settgins.py's middleware section, add the tracescopio middleware:\n\n (...)\n MIDDLEWARE = [\n \t(...)\n \"tracescopio.middleware.telemetria.TelemetryMiddleware\",\n ]\n\nThat is it!\n\n",
"bugtrack_url": null,
"license": "",
"summary": "Tracescopio - um capturador simples de tracebacks",
"version": "2.0.1",
"project_urls": null,
"split_keywords": [
"python",
"traceback"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "2161d6067319d9436791ca4864fc6d0f4dd2b1442dd666a463adeb61ec73fb21",
"md5": "64f08165b9f05d76a3e1da016639beb7",
"sha256": "3f16c30f2e1bd63e79325213b398d7857b2ee7fde8681576aa823516b6863176"
},
"downloads": -1,
"filename": "tracescopio-2.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "64f08165b9f05d76a3e1da016639beb7",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 5013,
"upload_time": "2023-12-18T12:45:47",
"upload_time_iso_8601": "2023-12-18T12:45:47.429745Z",
"url": "https://files.pythonhosted.org/packages/21/61/d6067319d9436791ca4864fc6d0f4dd2b1442dd666a463adeb61ec73fb21/tracescopio-2.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "cba11bc9a3d538c7141e2a6d5fe7dd1548029ff441394e6c6db5df9692c69365",
"md5": "5f452bbee28d6ce5142d30be8e9fce2f",
"sha256": "9b99864613424a8e093a458de65084e015c732176dc2e6d1d1e884fcbc9566ee"
},
"downloads": -1,
"filename": "tracescopio-2.0.1.tar.gz",
"has_sig": false,
"md5_digest": "5f452bbee28d6ce5142d30be8e9fce2f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3281,
"upload_time": "2023-12-18T12:45:49",
"upload_time_iso_8601": "2023-12-18T12:45:49.214994Z",
"url": "https://files.pythonhosted.org/packages/cb/a1/1bc9a3d538c7141e2a6d5fe7dd1548029ff441394e6c6db5df9692c69365/tracescopio-2.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-18 12:45:49",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "tracescopio"
}