Skip to main content

Railtown AI Python SDK for tracking errors and exceptions in your Python applications

Project description

Railtown AI Logging Python Package

Setup

  1. Sign up for Railtown AI

  2. Create a project, navigate to the Project Configuration page, and copy your API key

  3. In your app:

    1. install the Railtown AI SDK: pip install railtownai

    2. Set RAILTOWN_API_KEY in your environment variables or manually set it in your app: railtownai.init('YOUR_RAILTOWN_API_KEY')

    3. Log errors with the following example:

      import railtownai
      
      railtownai.init('YOUR_RAILTOWN_API_KEY')
      
      try:
         some_code_that_throws_an_error()
      
      except Exception as e:
         railtownai.log(e)
      
      # Or for an individual function, simply:
      from railtownai import log_exception
      
      @log_exception
      def my_function:
         some_code_that_throws_an_error()
      

Contributing

See the contributing guide for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

railtownai-1.0.2.tar.gz (5.4 kB view hashes)

Uploaded Source

Built Distribution

railtownai-1.0.2-py2.py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page