Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A simple python decorator for defining properties that only run their fget function once

Project Description

A simple python decorator for defining properties that only run their fget function once.

  • Free software: BSD license


A Python property that only calls its fget function one time. How many times have you written this code (or similar)?

def class C(object):

    def name(self):
        if not hasattr(self, '_name'):
            self._name = some_expensive_load()
        return self._name

I’ve written it just enough times to be annoyed enough to capture this module. The result is this:

from memoized_property import memoized_property

def class C(object):

    def name(self):
        # Boilerplate guard conditional avoided, but this is still only called once
        return some_expensive_load()


I couldn’t find a pre-existing version of this on PyPI. I found one other on GitHub,, but it was not published to PyPI.


1.0.3 (2016-09-28)

  • Build universal wheels
  • Support Python 3.4, 3.5

1.0.2 (2014-05-02)

  • Remove dependency on six

1.0.1 (2014-01-01)

  • Added python 3.2 compatability

1.0.0 (2013-12-26)

  • First release on PyPI.

Release History

This version
History Node


History Node


History Node


History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(5.0 kB) Copy SHA256 Hash SHA256
Source None Sep 29, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers