METADATA 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. Metadata-Version: 2.4
  2. Name: sentry-sdk
  3. Version: 2.41.0
  4. Summary: Python client for Sentry (https://sentry.io)
  5. Home-page: https://github.com/getsentry/sentry-python
  6. Author: Sentry Team and Contributors
  7. Author-email: hello@sentry.io
  8. License: MIT
  9. Project-URL: Documentation, https://docs.sentry.io/platforms/python/
  10. Project-URL: Changelog, https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md
  11. Classifier: Development Status :: 5 - Production/Stable
  12. Classifier: Environment :: Web Environment
  13. Classifier: Intended Audience :: Developers
  14. Classifier: License :: OSI Approved :: BSD License
  15. Classifier: Operating System :: OS Independent
  16. Classifier: Programming Language :: Python
  17. Classifier: Programming Language :: Python :: 3
  18. Classifier: Programming Language :: Python :: 3.6
  19. Classifier: Programming Language :: Python :: 3.7
  20. Classifier: Programming Language :: Python :: 3.8
  21. Classifier: Programming Language :: Python :: 3.9
  22. Classifier: Programming Language :: Python :: 3.10
  23. Classifier: Programming Language :: Python :: 3.11
  24. Classifier: Programming Language :: Python :: 3.12
  25. Classifier: Programming Language :: Python :: 3.13
  26. Classifier: Topic :: Software Development :: Libraries :: Python Modules
  27. Requires-Python: >=3.6
  28. Description-Content-Type: text/markdown
  29. License-File: LICENSE
  30. Requires-Dist: urllib3>=1.26.11
  31. Requires-Dist: certifi
  32. Provides-Extra: aiohttp
  33. Requires-Dist: aiohttp>=3.5; extra == "aiohttp"
  34. Provides-Extra: anthropic
  35. Requires-Dist: anthropic>=0.16; extra == "anthropic"
  36. Provides-Extra: arq
  37. Requires-Dist: arq>=0.23; extra == "arq"
  38. Provides-Extra: asyncpg
  39. Requires-Dist: asyncpg>=0.23; extra == "asyncpg"
  40. Provides-Extra: beam
  41. Requires-Dist: apache-beam>=2.12; extra == "beam"
  42. Provides-Extra: bottle
  43. Requires-Dist: bottle>=0.12.13; extra == "bottle"
  44. Provides-Extra: celery
  45. Requires-Dist: celery>=3; extra == "celery"
  46. Provides-Extra: celery-redbeat
  47. Requires-Dist: celery-redbeat>=2; extra == "celery-redbeat"
  48. Provides-Extra: chalice
  49. Requires-Dist: chalice>=1.16.0; extra == "chalice"
  50. Provides-Extra: clickhouse-driver
  51. Requires-Dist: clickhouse-driver>=0.2.0; extra == "clickhouse-driver"
  52. Provides-Extra: django
  53. Requires-Dist: django>=1.8; extra == "django"
  54. Provides-Extra: falcon
  55. Requires-Dist: falcon>=1.4; extra == "falcon"
  56. Provides-Extra: fastapi
  57. Requires-Dist: fastapi>=0.79.0; extra == "fastapi"
  58. Provides-Extra: flask
  59. Requires-Dist: flask>=0.11; extra == "flask"
  60. Requires-Dist: blinker>=1.1; extra == "flask"
  61. Requires-Dist: markupsafe; extra == "flask"
  62. Provides-Extra: grpcio
  63. Requires-Dist: grpcio>=1.21.1; extra == "grpcio"
  64. Requires-Dist: protobuf>=3.8.0; extra == "grpcio"
  65. Provides-Extra: http2
  66. Requires-Dist: httpcore[http2]==1.*; extra == "http2"
  67. Provides-Extra: httpx
  68. Requires-Dist: httpx>=0.16.0; extra == "httpx"
  69. Provides-Extra: huey
  70. Requires-Dist: huey>=2; extra == "huey"
  71. Provides-Extra: huggingface-hub
  72. Requires-Dist: huggingface_hub>=0.22; extra == "huggingface-hub"
  73. Provides-Extra: langchain
  74. Requires-Dist: langchain>=0.0.210; extra == "langchain"
  75. Provides-Extra: langgraph
  76. Requires-Dist: langgraph>=0.6.6; extra == "langgraph"
  77. Provides-Extra: launchdarkly
  78. Requires-Dist: launchdarkly-server-sdk>=9.8.0; extra == "launchdarkly"
  79. Provides-Extra: litellm
  80. Requires-Dist: litellm>=1.77.5; extra == "litellm"
  81. Provides-Extra: litestar
  82. Requires-Dist: litestar>=2.0.0; extra == "litestar"
  83. Provides-Extra: loguru
  84. Requires-Dist: loguru>=0.5; extra == "loguru"
  85. Provides-Extra: openai
  86. Requires-Dist: openai>=1.0.0; extra == "openai"
  87. Requires-Dist: tiktoken>=0.3.0; extra == "openai"
  88. Provides-Extra: openfeature
  89. Requires-Dist: openfeature-sdk>=0.7.1; extra == "openfeature"
  90. Provides-Extra: opentelemetry
  91. Requires-Dist: opentelemetry-distro>=0.35b0; extra == "opentelemetry"
  92. Provides-Extra: opentelemetry-experimental
  93. Requires-Dist: opentelemetry-distro; extra == "opentelemetry-experimental"
  94. Provides-Extra: pure-eval
  95. Requires-Dist: pure_eval; extra == "pure-eval"
  96. Requires-Dist: executing; extra == "pure-eval"
  97. Requires-Dist: asttokens; extra == "pure-eval"
  98. Provides-Extra: pymongo
  99. Requires-Dist: pymongo>=3.1; extra == "pymongo"
  100. Provides-Extra: pyspark
  101. Requires-Dist: pyspark>=2.4.4; extra == "pyspark"
  102. Provides-Extra: quart
  103. Requires-Dist: quart>=0.16.1; extra == "quart"
  104. Requires-Dist: blinker>=1.1; extra == "quart"
  105. Provides-Extra: rq
  106. Requires-Dist: rq>=0.6; extra == "rq"
  107. Provides-Extra: sanic
  108. Requires-Dist: sanic>=0.8; extra == "sanic"
  109. Provides-Extra: sqlalchemy
  110. Requires-Dist: sqlalchemy>=1.2; extra == "sqlalchemy"
  111. Provides-Extra: starlette
  112. Requires-Dist: starlette>=0.19.1; extra == "starlette"
  113. Provides-Extra: starlite
  114. Requires-Dist: starlite>=1.48; extra == "starlite"
  115. Provides-Extra: statsig
  116. Requires-Dist: statsig>=0.55.3; extra == "statsig"
  117. Provides-Extra: tornado
  118. Requires-Dist: tornado>=6; extra == "tornado"
  119. Provides-Extra: unleash
  120. Requires-Dist: UnleashClient>=6.0.1; extra == "unleash"
  121. Dynamic: author
  122. Dynamic: author-email
  123. Dynamic: classifier
  124. Dynamic: description
  125. Dynamic: description-content-type
  126. Dynamic: home-page
  127. Dynamic: license
  128. Dynamic: license-file
  129. Dynamic: project-url
  130. Dynamic: provides-extra
  131. Dynamic: requires-dist
  132. Dynamic: requires-python
  133. Dynamic: summary
  134. <a href="https://sentry.io/?utm_source=github&utm_medium=logo" target="_blank">
  135. <img src="https://sentry-brand.storage.googleapis.com/github-banners/github-sdk-python.png" alt="Sentry for Python">
  136. </a>
  137. <div align="center">
  138. _Bad software is everywhere, and we're tired of it. Sentry is on a mission to help developers write better software faster, so we can get back to enjoying technology. If you want to join us
  139. [<kbd>**Check out our open positions**</kbd>](https://sentry.io/careers/)_.
  140. [![Discord](https://img.shields.io/discord/621778831602221064?logo=discord&labelColor=%20%235462eb&logoColor=%20%23f5f5f5&color=%20%235462eb)](https://discord.com/invite/Ww9hbqr)
  141. [![Twitter Follow](https://img.shields.io/twitter/follow/getsentry?label=@getsentry&style=social)](https://twitter.com/intent/follow?screen_name=getsentry)
  142. [![PyPi page link -- version](https://img.shields.io/pypi/v/sentry-sdk.svg)](https://pypi.python.org/pypi/sentry-sdk)
  143. <img src="https://img.shields.io/badge/python-3.7 | 3.8 | 3.9 | 3.10 | 3.11 | 3.12 | 3.13-blue.svg" alt="python">
  144. [![Build Status](https://github.com/getsentry/sentry-python/actions/workflows/ci.yml/badge.svg)](https://github.com/getsentry/sentry-python/actions/workflows/ci.yml)
  145. <br/>
  146. </div>
  147. # Official Sentry SDK for Python
  148. Welcome to the official Python SDK for **[Sentry](http://sentry.io/)**.
  149. ## 📦 Getting Started
  150. ### Prerequisites
  151. You need a Sentry [account](https://sentry.io/signup/) and [project](https://docs.sentry.io/product/projects/).
  152. ### Installation
  153. Getting Sentry into your project is straightforward. Just run this command in your terminal:
  154. ```bash
  155. pip install --upgrade sentry-sdk
  156. ```
  157. ### Basic Configuration
  158. Here's a quick configuration example to get Sentry up and running:
  159. ```python
  160. import sentry_sdk
  161. sentry_sdk.init(
  162. "https://12927b5f211046b575ee51fd8b1ac34f@o1.ingest.sentry.io/1", # Your DSN here
  163. # Set traces_sample_rate to 1.0 to capture 100%
  164. # of traces for performance monitoring.
  165. traces_sample_rate=1.0,
  166. )
  167. ```
  168. With this configuration, Sentry will monitor for exceptions and performance issues.
  169. ### Quick Usage Example
  170. To generate some events that will show up in Sentry, you can log messages or capture errors:
  171. ```python
  172. import sentry_sdk
  173. sentry_sdk.init(...) # same as above
  174. sentry_sdk.capture_message("Hello Sentry!") # You'll see this in your Sentry dashboard.
  175. raise ValueError("Oops, something went wrong!") # This will create an error event in Sentry.
  176. ```
  177. ## 📚 Documentation
  178. For more details on advanced usage, integrations, and customization, check out the full documentation on [https://docs.sentry.io](https://docs.sentry.io/).
  179. ## 🧩 Integrations
  180. Sentry integrates with a ton of popular Python libraries and frameworks, including [FastAPI](https://docs.sentry.io/platforms/python/integrations/fastapi/), [Django](https://docs.sentry.io/platforms/python/integrations/django/), [Celery](https://docs.sentry.io/platforms/python/integrations/celery/), [OpenAI](https://docs.sentry.io/platforms/python/integrations/openai/) and many, many more. Check out the [full list of integrations](https://docs.sentry.io/platforms/python/integrations/) to get the full picture.
  181. ## 🚧 Migrating Between Versions?
  182. ### From `1.x` to `2.x`
  183. If you're using the older `1.x` version of the SDK, now's the time to upgrade to `2.x`. It includes significant upgrades and new features. Check our [migration guide](https://docs.sentry.io/platforms/python/migration/1.x-to-2.x) for assistance.
  184. ### From `raven-python`
  185. Using the legacy `raven-python` client? It's now in maintenance mode, and we recommend migrating to the new SDK for an improved experience. Get all the details in our [migration guide](https://docs.sentry.io/platforms/python/migration/raven-to-sentry-sdk/).
  186. ## 🙌 Want to Contribute?
  187. We'd love your help in improving the Sentry SDK! Whether it's fixing bugs, adding features, writing new integrations, or enhancing documentation, every contribution is valuable.
  188. For details on how to contribute, please read our [contribution guide](CONTRIBUTING.md) and explore the [open issues](https://github.com/getsentry/sentry-python/issues).
  189. ## 🛟 Need Help?
  190. If you encounter issues or need help setting up or configuring the SDK, don't hesitate to reach out to the [Sentry Community on Discord](https://discord.com/invite/Ww9hbqr). There is a ton of great people there ready to help!
  191. ## 🔗 Resources
  192. Here are all resources to help you make the most of Sentry:
  193. - [Documentation](https://docs.sentry.io/platforms/python/) - Official documentation to get started.
  194. - [Discord](https://discord.com/invite/Ww9hbqr) - Join our Discord community.
  195. - [X/Twitter](https://twitter.com/intent/follow?screen_name=getsentry) - Follow us on X (Twitter) for updates.
  196. - [Stack Overflow](https://stackoverflow.com/questions/tagged/sentry) - Questions and answers related to Sentry.
  197. <a name="license"></a>
  198. ## 📃 License
  199. The SDK is open-source and available under the MIT license. Check out the [LICENSE](LICENSE) file for more information.
  200. ## 😘 Contributors
  201. Thanks to everyone who has helped improve the SDK!
  202. <a href="https://github.com/getsentry/sentry-python/graphs/contributors">
  203. <img src="https://contributors-img.web.app/image?repo=getsentry/sentry-python" />
  204. </a>