summaryrefslogtreecommitdiff
path: root/python-fastapi-caching.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-fastapi-caching.spec')
-rw-r--r--python-fastapi-caching.spec247
1 files changed, 247 insertions, 0 deletions
diff --git a/python-fastapi-caching.spec b/python-fastapi-caching.spec
new file mode 100644
index 0000000..8a86b4d
--- /dev/null
+++ b/python-fastapi-caching.spec
@@ -0,0 +1,247 @@
+%global _empty_manifest_terminate_build 0
+Name: python-fastapi-caching
+Version: 0.3.0
+Release: 1
+Summary: Cache library for FastAPI with tag based invalidation
+License: MIT
+URL: https://github.com/jmagnusson/fastapi-caching
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/94/06/e4fe934d8f4c16b1821223390bbdb43b06533f71415ad3b72fce186a303e/fastapi-caching-0.3.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-fastapi
+Requires: python3-cachetools
+Requires: python3-aioredis
+Requires: python3-uvicorn
+Requires: python3-databases[sqlite]
+Requires: python3-pytest
+Requires: python3-pytest-cov
+Requires: python3-pytest-asyncio
+Requires: python3-requests
+Requires: python3-httpx
+Requires: python3-fakeredis
+Requires: python3-lupa
+Requires: python3-black
+Requires: python3-isort
+Requires: python3-watchgod
+Requires: python3-black
+Requires: python3-isort
+Requires: python3-watchgod
+Requires: python3-uvicorn
+Requires: python3-databases[sqlite]
+Requires: python3-aioredis
+Requires: python3-pytest
+Requires: python3-pytest-cov
+Requires: python3-pytest-asyncio
+Requires: python3-requests
+Requires: python3-httpx
+Requires: python3-fakeredis
+Requires: python3-lupa
+
+%description
+# FastAPI-Caching
+
+Cache library for FastAPI with tag based invalidation. Asynchronous only for the time being.
+
+## Features
+
+- Automatic response cache fetching using FastAPI dependencies
+- Fine-grained control over when to return and set the cache
+- Ability to invalidate cached objects based on a concept of associated tags. See [examples/redis_app](/examples/redis_app) for an example.
+
+## Installation
+
+With in-memory support only:
+```bash
+pip install fastapi-caching
+```
+
+NOTE: In-memory backend is only recommended when your app is only run as a single instance.
+
+With redis support (through the [aioredis](https://aioredis.readthedocs.io/) library):
+```bash
+pip install fastapi-caching[redis]
+```
+
+## Usage examples
+
+Examples on how to use [can be found here](/examples).
+
+
+## Limitations
+
+- Only supported within async contexts.
+
+## Changelog
+
+### v0.1.2, 2020-08-16
+
+- Feature: Support lazy setup of cache manager
+
+### v0.2.0, 2020-08-16
+
+- Breaking change: Revert to requiring `backend` to be passed to CacheManager
+- Feature: Support lazy configuration of the caching backend
+
+### v0.3.0, 2020-08-16
+
+- Feature: Add functionality to disable (and re-enable) caching.
+
+
+
+
+%package -n python3-fastapi-caching
+Summary: Cache library for FastAPI with tag based invalidation
+Provides: python-fastapi-caching
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-fastapi-caching
+# FastAPI-Caching
+
+Cache library for FastAPI with tag based invalidation. Asynchronous only for the time being.
+
+## Features
+
+- Automatic response cache fetching using FastAPI dependencies
+- Fine-grained control over when to return and set the cache
+- Ability to invalidate cached objects based on a concept of associated tags. See [examples/redis_app](/examples/redis_app) for an example.
+
+## Installation
+
+With in-memory support only:
+```bash
+pip install fastapi-caching
+```
+
+NOTE: In-memory backend is only recommended when your app is only run as a single instance.
+
+With redis support (through the [aioredis](https://aioredis.readthedocs.io/) library):
+```bash
+pip install fastapi-caching[redis]
+```
+
+## Usage examples
+
+Examples on how to use [can be found here](/examples).
+
+
+## Limitations
+
+- Only supported within async contexts.
+
+## Changelog
+
+### v0.1.2, 2020-08-16
+
+- Feature: Support lazy setup of cache manager
+
+### v0.2.0, 2020-08-16
+
+- Breaking change: Revert to requiring `backend` to be passed to CacheManager
+- Feature: Support lazy configuration of the caching backend
+
+### v0.3.0, 2020-08-16
+
+- Feature: Add functionality to disable (and re-enable) caching.
+
+
+
+
+%package help
+Summary: Development documents and examples for fastapi-caching
+Provides: python3-fastapi-caching-doc
+%description help
+# FastAPI-Caching
+
+Cache library for FastAPI with tag based invalidation. Asynchronous only for the time being.
+
+## Features
+
+- Automatic response cache fetching using FastAPI dependencies
+- Fine-grained control over when to return and set the cache
+- Ability to invalidate cached objects based on a concept of associated tags. See [examples/redis_app](/examples/redis_app) for an example.
+
+## Installation
+
+With in-memory support only:
+```bash
+pip install fastapi-caching
+```
+
+NOTE: In-memory backend is only recommended when your app is only run as a single instance.
+
+With redis support (through the [aioredis](https://aioredis.readthedocs.io/) library):
+```bash
+pip install fastapi-caching[redis]
+```
+
+## Usage examples
+
+Examples on how to use [can be found here](/examples).
+
+
+## Limitations
+
+- Only supported within async contexts.
+
+## Changelog
+
+### v0.1.2, 2020-08-16
+
+- Feature: Support lazy setup of cache manager
+
+### v0.2.0, 2020-08-16
+
+- Breaking change: Revert to requiring `backend` to be passed to CacheManager
+- Feature: Support lazy configuration of the caching backend
+
+### v0.3.0, 2020-08-16
+
+- Feature: Add functionality to disable (and re-enable) caching.
+
+
+
+
+%prep
+%autosetup -n fastapi-caching-0.3.0
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-fastapi-caching -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3.0-1
+- Package Spec generated