METADATA 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. Metadata-Version: 2.4
  2. Name: sentry-sdk
  3. Version: 2.58.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-Expression: 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: Operating System :: OS Independent
  15. Classifier: Programming Language :: Python
  16. Classifier: Programming Language :: Python :: 3
  17. Classifier: Programming Language :: Python :: 3.6
  18. Classifier: Programming Language :: Python :: 3.7
  19. Classifier: Programming Language :: Python :: 3.8
  20. Classifier: Programming Language :: Python :: 3.9
  21. Classifier: Programming Language :: Python :: 3.10
  22. Classifier: Programming Language :: Python :: 3.11
  23. Classifier: Programming Language :: Python :: 3.12
  24. Classifier: Programming Language :: Python :: 3.13
  25. Classifier: Programming Language :: Python :: 3.14
  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: asyncio
  68. Requires-Dist: httpcore[asyncio]==1.*; extra == "asyncio"
  69. Provides-Extra: httpx
  70. Requires-Dist: httpx>=0.16.0; extra == "httpx"
  71. Provides-Extra: huey
  72. Requires-Dist: huey>=2; extra == "huey"
  73. Provides-Extra: huggingface-hub
  74. Requires-Dist: huggingface_hub>=0.22; extra == "huggingface-hub"
  75. Provides-Extra: langchain
  76. Requires-Dist: langchain>=0.0.210; extra == "langchain"
  77. Provides-Extra: langgraph
  78. Requires-Dist: langgraph>=0.6.6; extra == "langgraph"
  79. Provides-Extra: launchdarkly
  80. Requires-Dist: launchdarkly-server-sdk>=9.8.0; extra == "launchdarkly"
  81. Provides-Extra: litellm
  82. Requires-Dist: litellm!=1.82.7,!=1.82.8,>=1.77.5; extra == "litellm"
  83. Provides-Extra: litestar
  84. Requires-Dist: litestar>=2.0.0; extra == "litestar"
  85. Provides-Extra: loguru
  86. Requires-Dist: loguru>=0.5; extra == "loguru"
  87. Provides-Extra: mcp
  88. Requires-Dist: mcp>=1.15.0; extra == "mcp"
  89. Provides-Extra: openai
  90. Requires-Dist: openai>=1.0.0; extra == "openai"
  91. Requires-Dist: tiktoken>=0.3.0; extra == "openai"
  92. Provides-Extra: openfeature
  93. Requires-Dist: openfeature-sdk>=0.7.1; extra == "openfeature"
  94. Provides-Extra: opentelemetry
  95. Requires-Dist: opentelemetry-distro>=0.35b0; extra == "opentelemetry"
  96. Provides-Extra: opentelemetry-experimental
  97. Requires-Dist: opentelemetry-distro; extra == "opentelemetry-experimental"
  98. Provides-Extra: opentelemetry-otlp
  99. Requires-Dist: opentelemetry-distro[otlp]>=0.35b0; extra == "opentelemetry-otlp"
  100. Provides-Extra: pure-eval
  101. Requires-Dist: pure_eval; extra == "pure-eval"
  102. Requires-Dist: executing; extra == "pure-eval"
  103. Requires-Dist: asttokens; extra == "pure-eval"
  104. Provides-Extra: pydantic-ai
  105. Requires-Dist: pydantic-ai>=1.0.0; extra == "pydantic-ai"
  106. Provides-Extra: pymongo
  107. Requires-Dist: pymongo>=3.1; extra == "pymongo"
  108. Provides-Extra: pyspark
  109. Requires-Dist: pyspark>=2.4.4; extra == "pyspark"
  110. Provides-Extra: quart
  111. Requires-Dist: quart>=0.16.1; extra == "quart"
  112. Requires-Dist: blinker>=1.1; extra == "quart"
  113. Provides-Extra: rq
  114. Requires-Dist: rq>=0.6; extra == "rq"
  115. Provides-Extra: sanic
  116. Requires-Dist: sanic>=0.8; extra == "sanic"
  117. Provides-Extra: sqlalchemy
  118. Requires-Dist: sqlalchemy>=1.2; extra == "sqlalchemy"
  119. Provides-Extra: starlette
  120. Requires-Dist: starlette>=0.19.1; extra == "starlette"
  121. Provides-Extra: starlite
  122. Requires-Dist: starlite>=1.48; extra == "starlite"
  123. Provides-Extra: statsig
  124. Requires-Dist: statsig>=0.55.3; extra == "statsig"
  125. Provides-Extra: tornado
  126. Requires-Dist: tornado>=6; extra == "tornado"
  127. Provides-Extra: unleash
  128. Requires-Dist: UnleashClient>=6.0.1; extra == "unleash"
  129. Provides-Extra: google-genai
  130. Requires-Dist: google-genai>=1.29.0; extra == "google-genai"
  131. Dynamic: author
  132. Dynamic: author-email
  133. Dynamic: classifier
  134. Dynamic: description
  135. Dynamic: description-content-type
  136. Dynamic: home-page
  137. Dynamic: license-file
  138. Dynamic: license-expression
  139. Dynamic: project-url
  140. Dynamic: provides-extra
  141. Dynamic: requires-dist
  142. Dynamic: requires-python
  143. Dynamic: summary
  144. <a href="https://sentry.io/?utm_source=github&utm_medium=logo" target="_blank">
  145. <img src="https://sentry-brand.storage.googleapis.com/github-banners/github-sdk-python.png" alt="Sentry for Python">
  146. </a>
  147. <div align="center">
  148. _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
  149. [<kbd>**Check out our open positions**</kbd>](https://sentry.io/careers/)_.
  150. [![Discord](https://img.shields.io/discord/621778831602221064?logo=discord&labelColor=%20%235462eb&logoColor=%20%23f5f5f5&color=%20%235462eb)](https://discord.com/invite/Ww9hbqr)
  151. [![X Follow](https://img.shields.io/twitter/follow/sentry?label=sentry&style=social)](https://x.com/intent/follow?screen_name=sentry)
  152. [![PyPi page link -- version](https://img.shields.io/pypi/v/sentry-sdk.svg)](https://pypi.python.org/pypi/sentry-sdk)
  153. <img src="https://img.shields.io/badge/python-3.7 | 3.8 | 3.9 | 3.10 | 3.11 | 3.12 | 3.13 | 3.14-blue.svg" alt="python">
  154. [![Build Status](https://github.com/getsentry/sentry-python/actions/workflows/ci.yml/badge.svg)](https://github.com/getsentry/sentry-python/actions/workflows/ci.yml)
  155. <br/>
  156. </div>
  157. # Official Sentry SDK for Python
  158. Welcome to the official Python SDK for **[Sentry](http://sentry.io/)**.
  159. ## 📦 Getting Started
  160. ### Prerequisites
  161. You need a Sentry [account](https://sentry.io/signup/) and [project](https://docs.sentry.io/product/projects/).
  162. ### Installation
  163. Getting Sentry into your project is straightforward. Just run this command in your terminal:
  164. ```bash
  165. pip install --upgrade sentry-sdk
  166. ```
  167. ### Basic Configuration
  168. Here's a quick configuration example to get Sentry up and running:
  169. ```python
  170. import sentry_sdk
  171. sentry_sdk.init(
  172. "https://12927b5f211046b575ee51fd8b1ac34f@o1.ingest.sentry.io/1", # Your DSN here
  173. # Set traces_sample_rate to 1.0 to capture 100%
  174. # of traces for performance monitoring.
  175. traces_sample_rate=1.0,
  176. )
  177. ```
  178. With this configuration, Sentry will monitor for exceptions and performance issues.
  179. ### Quick Usage Example
  180. To generate some events that will show up in Sentry, you can log messages or capture errors:
  181. ```python
  182. import sentry_sdk
  183. sentry_sdk.init(...) # same as above
  184. sentry_sdk.capture_message("Hello Sentry!") # You'll see this in your Sentry dashboard.
  185. raise ValueError("Oops, something went wrong!") # This will create an error event in Sentry.
  186. ```
  187. ## 📚 Documentation
  188. For more details on advanced usage, integrations, and customization, check out the full documentation on [https://docs.sentry.io](https://docs.sentry.io/).
  189. ## 🧩 Integrations
  190. 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.
  191. ## 🚧 Migrating Between Versions?
  192. ### From `1.x` to `2.x`
  193. 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.
  194. ### From `raven-python`
  195. 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/).
  196. ## 🙌 Want to Contribute?
  197. 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.
  198. 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).
  199. ## 🛟 Need Help?
  200. 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!
  201. ## 🔗 Resources
  202. Here are all resources to help you make the most of Sentry:
  203. - [Documentation](https://docs.sentry.io/platforms/python/) - Official documentation to get started.
  204. - [Discord](https://discord.com/invite/Ww9hbqr) - Join our Discord community.
  205. - [X/Twitter](https://x.com/intent/follow?screen_name=sentry) - Follow us on X (Twitter) for updates.
  206. - [Stack Overflow](https://stackoverflow.com/questions/tagged/sentry) - Questions and answers related to Sentry.
  207. <a name="license"></a>
  208. ## 📃 License
  209. The SDK is open-source and available under the MIT license. Check out the [LICENSE](LICENSE) file for more information.
  210. ## 😘 Contributors
  211. Thanks to everyone who has helped improve the SDK!
  212. <a href="https://github.com/getsentry/sentry-python/graphs/contributors">
  213. <img src="https://contributors-img.web.app/image?repo=getsentry/sentry-python" />
  214. </a>