Repository navigation
Releases
26.5.0
Highlights
This release upgrades Sentry instrumentation to sentry-sdk 3.0. Don't upgrade if you're stuck with 2.x. The download numbers currently do not justify adding support for both version.
Full changelog below!
Special thanks
This release would not be possible without my generous sponsors! Thank you to all of you making sustainable maintenance possible! If you would like to join them, go to https://github.com/sponsors/hynek and check out the sweet perks!
Above and beyond
Variomedia AG (@variomedia), Tidelift (@tidelift), Kraken Tech (@kraken-tech), Klaviyo (@klaviyo), Privacy Solutions GmbH (@privacy-solutions), FilePreviews (@filepreviews), TestMu AI Open Source Office (Formerly LambdaTest) (@LambdaTest-Inc), Todoist Inc (@todoist), Daniel Fortunov (@asqui), and Kevin P. Fleming (@kpfleming).
Maintenance sustainers
Buttondown (@buttondown), Christopher Dignam (@chdsbd), Magnus Watn (@magnuswatn), David Cramer (@dcramer), Rivo Laks (@rivol), Mike Fiedler (@miketheman), Duncan Hill (@cricalix), Colin Marquardt (@cmarqu), August Trapper Bigelow (@atbigelow), Nick Libertini (@libertininick), Brian M. Dennis (@crossjam), Al Sweigart (@asweigart), Celebrity News AG (@celebritynewsag), Sławomir Ehlert (@slafs), Mostafa Khalil (@khadrawy), Filip Mularczyk (@mukiblejlok), Thomas Klinger (@thmsklngr), Andreas Poehlmann (@ap--), Carlton Gibson (@carltongibson), and Roboflow (@roboflow).
Full changelog
Changed
psycache.instrumentation.sentry.SentryInstrumentationnow requires sentry-sdk 3.0 or later. The span data are now span attributes, and the operation is thesentry.opattribute. #12
This release contains contributions from @hynek.
26.4.0
Highlights
The main code change is that psycache doesn't crash if SQLAlchemy integration is used without greenlet present on SQLAlchemy 2.1 and later.
The main clerical change is that the project has been promoted to stable and the usual backwards-compatibility rules apply!
Full changelog below!
Special thanks
This release would not be possible without my generous sponsors! Thank you to all of you making sustainable maintenance possible! If you would like to join them, go to https://github.com/sponsors/hynek and check out the sweet perks!
Above and beyond
Variomedia AG (@variomedia), Tidelift (@tidelift), Kraken Tech (@kraken-tech), Klaviyo (@klaviyo), Privacy Solutions GmbH (@privacy-solutions), FilePreviews (@filepreviews), Ecosystems (@ecosyste-ms), TestMu AI Open Source Office (Formerly LambdaTest) (@LambdaTest-Inc), Todoist Inc (@Doist), Daniel Fortunov (@asqui), and Kevin P. Fleming (@kpfleming).
Maintenance sustainers
Buttondown (@buttondown), Christopher Dignam (@chdsbd), Magnus Watn (@magnuswatn), David Cramer (@dcramer), Rivo Laks (@rivol), Polar (@polarsource), Mike Fiedler (@miketheman), Duncan Hill (@cricalix), Colin Marquardt (@cmarqu), Nick Libertini (@libertininick), Brian M. Dennis (@crossjam), Al Sweigart (@asweigart), Celebrity News AG (@celebritynewsag), The Westervelt Company (@westerveltco), Sławomir Ehlert (@slafs), Mostafa Khalil (@khadrawy), Filip Mularczyk (@mukiblejlok), Thomas Klinger (@thmsklngr), Andreas Poehlmann (@ap--), August Trapper Bigelow (@atbigelow), Carlton Gibson (@carltongibson), and Roboflow (@roboflow).
Full changelog
Changed
-
psycache is now considered stable and the usual backwards-compatibility promises apply.
-
The schema parameters of
init_db(),PostgresCache, andAsyncPostgresCacheand the--schemaoption ofinit-dbhave been replaced by table and--table. They take the name of the cache table, optionally schema-qualified with a dot (for example,app_cache.psycache).
Fixed
- sqlalchemy: Imports from
sqlalchemy.ext.asyncioare now protected usingif TYPE_CHECKING:. This fixes the runtime dependency on greenlet on SQLALchemy 2.1+, even ifpsycache.sqlalchemy.AsyncSQLAlchemyCachePoolis not used. #11
This release contains contributions from @hynek.
26.3.0
Highlights
Schemas! Self-service SQL generation!
Full changelog below!
Special Thanks
This release would not be possible without my generous sponsors! Thank you to all of you making sustainable maintenance possible! If you would like to join them, go to https://github.com/sponsors/hynek and check out the sweet perks!
Above and Beyond
Variomedia AG (@variomedia), Tidelift (@tidelift), Kraken Tech (@kraken-tech), Klaviyo (@klaviyo), Privacy Solutions GmbH (@privacy-solutions), FilePreviews (@filepreviews), Ecosystems (@ecosyste-ms), GitHub (@github), Doist (@Doist), Daniel Fortunov (@asqui), and Kevin P. Fleming (@kpfleming).
Maintenance Sustainers
Buttondown (@buttondown), Christopher Dignam (@chdsbd), Magnus Watn (@magnuswatn), David Cramer (@dcramer), Rivo Laks (@rivol), Polar (@polarsource), Mike Fiedler (@miketheman), Duncan Hill (@cricalix), Colin Marquardt (@cmarqu), Pieter Swinkels (@swinkels), Nick Libertini (@libertininick), Brian M. Dennis (@crossjam), Al Sweigart (@asweigart), Celebrity News AG (@celebritynewsag), The Westervelt Company (@westerveltco), Sławomir Ehlert (@slafs), Mostafa Khalil (@khadrawy), Filip Mularczyk (@mukiblejlok), Thomas Klinger (@thmsklngr), Andreas Poehlmann (@ap--), August Trapper Bigelow (@atbigelow), Carlton Gibson (@carltongibson), and Roboflow (@roboflow).
Full Changelog
Added
-
Support for PostgreSQL schemas for keeping multiple cache tables in one database. #5
-
python -Im psycache init-dbnow prints the initialization SQL to stdout if no DSN is passed. #6
This release contains contributions from @hynek.
Artifact Attestations
You can verify this release's artifact attestions using GitHub's CLI tool by downloading the sdist and wheel from PyPI and running:
$ gh attestation verify --owner hynek psycache-26.3.0.tar.gzand
$ gh attestation verify --owner hynek psycache-26.3.0-py3-none-any.whl26.2.0
Highlights
Second release already! Mostly about adding versioned docs and making stuff private that was public because it was an internal project.
Full changelog below!
Special Thanks
This release would not be possible without my generous sponsors! Thank you to all of you making sustainable maintenance possible! If you would like to join them, go to https://github.com/sponsors/hynek and check out the sweet perks!
Above and Beyond
Variomedia AG (@variomedia), Tidelift (@tidelift), Kraken Tech (@kraken-tech), Klaviyo (@klaviyo), Privacy Solutions GmbH (@privacy-solutions), FilePreviews (@filepreviews), Ecosystems (@ecosyste-ms), GitHub (@github), Doist (@Doist), Daniel Fortunov (@asqui), and Kevin P. Fleming (@kpfleming).
Maintenance Sustainers
Buttondown (@buttondown), Christopher Dignam (@chdsbd), Magnus Watn (@magnuswatn), David Cramer (@dcramer), Rivo Laks (@rivol), Polar (@polarsource), Mike Fiedler (@miketheman), Duncan Hill (@cricalix), Colin Marquardt (@cmarqu), Pieter Swinkels (@swinkels), Nick Libertini (@libertininick), Brian M. Dennis (@crossjam), Al Sweigart (@asweigart), Celebrity News AG (@celebritynewsag), The Westervelt Company (@westerveltco), Sławomir Ehlert (@slafs), Mostafa Khalil (@khadrawy), Filip Mularczyk (@mukiblejlok), Thomas Klinger (@thmsklngr), Andreas Poehlmann (@ap--), August Trapper Bigelow (@atbigelow), Carlton Gibson (@carltongibson), and Roboflow (@roboflow).
Full Changelog
Added
- Proper docs at https://psycache.hynek.me/. #2
Changed
- Replaced attrs by hand-written classes. Sadly, the documentation ecosystem is not ready and dataclasses are not fit for public APIs. This means psycopg is the only dependency. #3
This release contains contributions from @hynek.
Artifact Attestations
You can verify this release's artifact attestions using GitHub's CLI tool by downloading the sdist and wheel from PyPI and running:
$ gh attestation verify --owner hynek psycache-26.2.0.tar.gzand
$ gh attestation verify --owner hynek psycache-26.2.0-py3-none-any.whl26.1.0
Everyone and their dog have implemented a caching layer on top of Postgres, so why not add another one? It's been in production for years but now we've extracted it for everyone.
The most interesting feature is probably the very deep support for instrumentation.
Enjoy!