Quick start
Installing Streply is very easy, regardless of the structure of your project. It only takes 3 simple steps and in 5 minutes to activate Streply in your project.
Install
pip install --upgrade streply-sdk
Initialization
Streply initialisations are performed using the Streply
class, which should be placed at the very beginning of the code. The method receives the (string) DSN
as the first parameter.
from streply.streply import streply
streply('https://clientPublicKey@api.streply.com/projectId')
The second parameter is (object) options
, which contains the optional configuration.
from streply.streply import streply
streply('https://clientPublicKey@api.streply.com/projectId', {
'environment': 'local',
'release': 'my-project-name@2.3.12',
})
info
You can find the DSN code of the project in the Projects tab of your Streply account.