Railtown AI Python SDK for tracking errors and exceptions in your Python applications
Project description
Railtown AI Logging Python Package
Setup
-
Sign up for Railtown AI
-
Create a project, navigate to the Project Configuration page, and copy your API key
-
In your app:
-
install the Railtown AI SDK:
pip install railtownai
-
Set
RAILTOWN_API_KEY
in your environment variables or manually set it in your app:railtownai.init('YOUR_RAILTOWN_API_KEY')
-
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)
Built Distribution
Close
Hashes for railtownai-1.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1925798c08637ec54135cd84d9f7a80462a415ddba9913860097ff5e2d1d8637 |
|
MD5 | 377f26144b50fbd85d1ef350832c19af |
|
BLAKE2b-256 | 65350c8d1dbd3b396ba500dda009235073ff5bf83fe0e87ecec0c90252692ddf |