Metadata-Version: 2.1
Name: tracescopio
Version: 2.0.0
Summary: Tracescopio - um capturador simples de tracebacks
Home-page: UNKNOWN
Author: Tercio A Oliveira
Author-email: t3rcio@gmail.com
License: UNKNOWN
Description: # Tracescopio: Simplifying Stack Trace Retrieval for Your Django Applications Remotely
        
        Tracescopio is a tool designed to make obtaining stack traces from your 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 command to install the tracescopio in your app:
        
            pip install tracescopio
        
        Obtain the ID 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 code in your project's settings.py file:
        
            (...)
            TRACERSCOPIO_SERVER = '<your tracescopio-app url>'
            APP_TRACESCOPIO_IDE = '<the ide code for you app>'
        
        For 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 middlware:
        
            (...)
            MIDDLEWARE = [
            	(...)
                "tracescopio.middleware.telemetria.TelemetryMiddleware",
            ]
        That is it!
Keywords: python,traceback
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU General Public License (GPL)
Description-Content-Type: text/markdown
