8000 doc: Add some niceties to the README · pythonthings/sentry-python@c891674 · GitHub
[go: up one dir, main page]

Skip to content
< 8000 script crossorigin="anonymous" type="application/javascript" src="https://github.githubassets.com/assets/sessions-d044b7c46be3.js" defer="defer">

Commit c891674

Browse files
committed
doc: Add some niceties to the README
Fix getsentry#307
1 parent 9305fad commit c891674

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,21 @@
77
# sentry-python - Sentry SDK for Python
88

99
[![Build Status](https://travis-ci.com/getsentry/sentry-python.svg?branch=master)](https://travis-ci.com/getsentry/sentry-python)
10+
[![PyPi page link -- version](https://img.shields.io/pypi/v/sentry-sdk.svg)](https://pypi.python.org/pypi/sentry-sdk)
1011

11-
To learn about how to use the SDK:
12+
This is the next line of the Python SDK for [Sentry](http://sentry.io/), intended to replace the `raven` package on PyPI.
13+
14+
```python
15+
from sentry_sdk import init, capture_message
16+
17+
init("mydsn@sentry.io/123")
18+
19+
capture_message("Hello World") # Will create an event.
20+
21+
raise ValueError() # Will also create an event.
22+
```
23+
24+
To learn more about how to use the SDK:
1225

1326
- [Getting started with the new SDK](https://docs.sentry.io/quickstart/?platform=python)
1427
- [Configuration options](https://docs.sentry.io/error-reporting/configuration/?platform=python)

0 commit comments

Comments
 (0)
0