{"id":18038854,"url":"https://github.com/brechin/django-computed-property","last_synced_at":"2025-04-06T05:16:10.329Z","repository":{"id":57419461,"uuid":"119127814","full_name":"brechin/django-computed-property","owner":"brechin","description":"Computed Property Fields for Django","archived":false,"fork":false,"pushed_at":"2025-01-13T17:11:14.000Z","size":32,"stargazers_count":44,"open_issues_count":7,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T04:10:06.601Z","etag":null,"topics":["computed-property","django","django-models","fields"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brechin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-27T03:13:10.000Z","updated_at":"2023-11-14T09:01:36.000Z","dependencies_parsed_at":"2025-02-23T07:11:25.722Z","dependency_job_id":"a975fe21-1a4e-49c1-af82-57bcae93aa82","html_url":"https://github.com/brechin/django-computed-property","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brechin%2Fdjango-computed-property","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brechin%2Fdjango-computed-property/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brechin%2Fdjango-computed-property/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brechin%2Fdjango-computed-property/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brechin","download_url":"https://codeload.github.com/brechin/django-computed-property/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247436286,"owners_count":20938533,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["computed-property","django","django-models","fields"],"created_at":"2024-10-30T14:06:39.981Z","updated_at":"2025-04-06T05:16:10.148Z","avatar_url":"https://github.com/brechin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Coverage Status](https://coveralls.io/repos/github/brechin/django-computed-property/badge.svg?branch=master)](https://coveralls.io/github/brechin/django-computed-property?branch=master)\n[![Build Status](https://travis-ci.org/brechin/django-computed-property.svg?branch=master)](https://travis-ci.org/brechin/django-computed-property)\n# django-computed-property\nComputed Property Fields for Django\n\nInspired by [Google Cloud Datastore NDB Computed Properties](https://cloud.google.com/appengine/docs/standard/python/ndb/entity-property-reference#computed).\n\nAutomatically store a computed value in the database when saving your model so you can filter\non values requiring complex (or simple!) calculations.\n\n## Quick start\n\n1. Install this library\n\n    ```\n    pip install django-computed-property\n    ```\n    \n1. Add to `INSTALLED_APPS`\n    \n    ```python\n    INSTALLED_APPS = [\n        ...,\n        'computed_property'\n    ]\n    ```\n\n1. Add a computed field to your model(s)\n\n    ```python\n    from django.db import models\n    import computed_property\n \n    class MyModel(models.Model):\n        doubled = computed_property.ComputedIntegerField(compute_from='double_it')\n        base = models.IntegerField()\n     \n        def double_it(self):\n            return self.base * 2\n    ```\n\nDocumentation available at http://django-computed-property.readthedocs.io/en/latest/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrechin%2Fdjango-computed-property","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrechin%2Fdjango-computed-property","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrechin%2Fdjango-computed-property/lists"}