Skip to main content

Yet another URL library

Reason this release was yanked:

Initial publish only to reserve name

Project description

propcache

The module provides a fast implementation of cached properties for Python 3.8+.

https://github.com/aio-libs/propcache/workflows/CI/badge.svg https://codecov.io/gh/aio-libs/propcache/branch/master/graph/badge.svg https://badge.fury.io/py/propcache.svg https://readthedocs.org/projects/propcache/badge/?version=latest https://img.shields.io/pypi/pyversions/propcache.svg Matrix Room — #aio-libs:matrix.org Matrix Space — #aio-libs-space:matrix.org

Introduction

The API is designed to be nearly identical to the built-in functools.cached_property class, except for the additional under_cached_property class which uses self._cache instead of self.__dict__ to store the cached values and prevents __set__ from being called.

For full documentation please read https://propcache.aio-libs.org.

Installation

$ pip install propcache

The library is Python 3 only!

PyPI contains binary wheels for Linux, Windows and MacOS. If you want to install propcache on another operating system (like Alpine Linux, which is not manylinux-compliant because of the missing glibc and therefore, cannot be used with our wheels) the the tarball will be used to compile the library from the source code. It requires a C compiler and and Python headers installed.

To skip the compilation you must explicitly opt-in by using a PEP 517 configuration setting pure-python, or setting the PROPCACHE_NO_EXTENSIONS environment variable to a non-empty value, e.g.:

$ pip install propcache --config-settings=pure-python=false

Please note that the pure-Python (uncompiled) version is much slower. However, PyPy always uses a pure-Python implementation, and, as such, it is unaffected by this variable.

API documentation

The documentation is located at https://propcache.aio-libs.org.

Source code

The project is hosted on GitHub

Please file an issue on the bug tracker if you have found a bug or have some suggestion in order to improve the library.

Discussion list

aio-libs google group: https://groups.google.com/forum/#!forum/aio-libs

Feel free to post your questions and ideas here.

Authors and License

The propcache package is derived from yarl which is written by Andrew Svetlov.

It’s Apache 2 licensed and freely available.

Changelog

0.0.0 (2024-01-02)

  • The first release.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

propcache-0.0.0.dev0-cp312-cp312-macosx_14_0_arm64.whl (43.2 kB view details)

Uploaded CPython 3.12 macOS 14.0+ ARM64

File details

Details for the file propcache-0.0.0.dev0-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

  • Download URL: propcache-0.0.0.dev0-cp312-cp312-macosx_14_0_arm64.whl
  • Upload date:
  • Size: 43.2 kB
  • Tags: CPython 3.12, macOS 14.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/35.0 requests/2.28.1 requests-toolbelt/0.10.1 urllib3/1.26.12 tqdm/4.64.1 importlib-metadata/4.12.0 keyring/23.13.1 rfc3986/1.5.0 colorama/0.4.6 CPython/3.10.14

File hashes

Hashes for propcache-0.0.0.dev0-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 0fdbd153696f09bbc5e7632aa3e51d9ef6af8a1946100d73f4d4e202ec9502cd
MD5 ceba06a486d7588dde4f708ebf1643b2
BLAKE2b-256 feda44400f666b46b03cbc2da6e36faed916a74a2681271c7c19326254de7c1a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page