Skip to main content

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

Project description

Railtown AI Python SDK

Setup

  1. pip install railtownai
    1. For alpha, add --extra-index-url https://testpypi.python.org/pypi to the top of your requirements.txt
    2. add railtownai==0.0.4
  2. import railtownai
  3. railtownai.init('YOUR_RAILTOWN_API_KEY')
  4. 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)

Development Setup

  1. Install Python 3.10
  2. Create Python virtual environment: python -m venv .venv
  3. Use .venv\Scripts\activate.ps1 to start python virtual environment
    1. If you on Mac OS X...
      1. python3 -m venv .venv
      2. source .venv/bin/activate
  4. Install flit pip install flit
  5. Install dependencies flit install

Contributing

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-0.0.4.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

railtownai-0.0.4-py2.py3-none-any.whl (3.8 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