{"id":37078328,"url":"https://github.com/chaitin/django-pg-partitioning","last_synced_at":"2026-01-14T09:09:21.612Z","repository":{"id":45951113,"uuid":"169048985","full_name":"chaitin/django-pg-partitioning","owner":"chaitin","description":"A Django extension that supports PostgreSQL 11 time ranges and list partitioning.","archived":true,"fork":false,"pushed_at":"2021-11-25T05:41:54.000Z","size":117,"stargazers_count":76,"open_issues_count":3,"forks_count":13,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-10-21T12:50:02.973Z","etag":null,"topics":["django","partitioning","postgresql-orm"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":false,"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/chaitin.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-04T08:37:27.000Z","updated_at":"2025-02-19T10:15:10.000Z","dependencies_parsed_at":"2022-09-26T18:41:35.811Z","dependency_job_id":null,"html_url":"https://github.com/chaitin/django-pg-partitioning","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/chaitin/django-pg-partitioning","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaitin%2Fdjango-pg-partitioning","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaitin%2Fdjango-pg-partitioning/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaitin%2Fdjango-pg-partitioning/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaitin%2Fdjango-pg-partitioning/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chaitin","download_url":"https://codeload.github.com/chaitin/django-pg-partitioning/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaitin%2Fdjango-pg-partitioning/sbom","scorecard":{"id":273125,"data":{"date":"2025-08-11","repo":{"name":"github.com/chaitin/django-pg-partitioning","commit":"129f5ddd11c61f855b97e558159dd067a15ca18d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":1,"reason":"Found 2/19 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 0.10.dev2 not signed: https://api.github.com/repos/chaitin/django-pg-partitioning/releases/15612850","Warn: release artifact 0.10.dev2 does not have provenance: https://api.github.com/repos/chaitin/django-pg-partitioning/releases/15612850"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 7 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T13:51:58.632Z","repository_id":45951113,"created_at":"2025-08-17T13:51:58.632Z","updated_at":"2025-08-17T13:51:58.632Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28414756,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T08:38:59.149Z","status":"ssl_error","status_checked_at":"2026-01-14T08:38:43.588Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["django","partitioning","postgresql-orm"],"created_at":"2026-01-14T09:09:20.886Z","updated_at":"2026-01-14T09:09:21.604Z","avatar_url":"https://github.com/chaitin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"django-pg-partitioning\n======================\n.. image:: https://img.shields.io/badge/License-MIT-orange.svg?style=flat-square\n   :target: https://raw.githubusercontent.com/chaitin/django-pg-partitioning/master/LICENSE\n.. image:: https://img.shields.io/badge/Django-2.x-green.svg?style=flat-square\u0026logo=django\n   :target: https://www.djangoproject.com/\n.. image:: https://img.shields.io/badge/PostgreSQL-11-lightgrey.svg?style=flat-square\u0026logo=postgresql\n   :target: https://www.postgresql.org/\n.. image:: https://readthedocs.org/projects/django-pg-partitioning/badge/?version=latest\u0026style=flat-square\n   :target: https://django-pg-partitioning.readthedocs.io\n.. image:: https://img.shields.io/pypi/v/django-pg-partitioning.svg?style=flat-square\n   :target: https://pypi.org/project/django-pg-partitioning/\n.. image:: https://api.travis-ci.org/chaitin/django-pg-partitioning.svg?branch=master\n   :target: https://travis-ci.org/chaitin/django-pg-partitioning\n.. image:: https://api.codacy.com/project/badge/Grade/c872699c1b254e90b540b053343d1e81\n   :target: https://www.codacy.com/app/xingji2163/django-pg-partitioning?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=chaitin/django-pg-partitioning\u0026amp;utm_campaign=Badge_Grade\n.. image:: https://codecov.io/gh/chaitin/django-pg-partitioning/branch/master/graph/badge.svg\n   :target: https://codecov.io/gh/chaitin/django-pg-partitioning\n\n⚠️\n----\n\n目前已经有了更好用的 Django 插件（比如 django-postgres-extra）使得基于 Django 开发的项目能够方便地使用 PostgreSQL 数据库的高级功能，因此本项目不再维护。你依然可以 fork 本项目并进行二次开发，祝你生活愉快 :)\n\nThere are already better Django plugins (such as django-postgres-extra) that make it easy for Django-based projects to use the advanced features of PostgreSQL databases, so this project is no longer maintained. You can still fork this project and do secondary development, have a nice life :)\n\n----\n\n一个支持 PostgreSQL 11 原生表分区的 Django 扩展，使您可以在 Django 中创建分区表并管理它们。目前它支持两种分区类型：\n\n- 时间范围分区（Time Range Partitioning）：将时序数据分开存储到不同的时间范围分区表中，支持创建连续且不重叠的时间范围分区并进行归档管理。\n- 列表分区（List Partitioning）：根据分区字段的确定值将数据分开存储到不同的分区表中。\n\nA Django extension that supports PostgreSQL 11 native table partitioning, allowing you to create partitioned tables in Django\nand manage them. Currently it supports the following two partition types:\n\n- **Time Range Partitioning**: Separate time series data into different time range partition tables,\n  support the creation of continuous and non-overlapping time range partitions and archival management.\n- **List Partitioning**: Store data separately into different partition tables based on the determined values of the partition key.\n\nDocumentation\n  https://django-pg-partitioning.readthedocs.io\n\n.. image:: https://raw.githubusercontent.com/chaitin/django-pg-partitioning/master/docs/source/_static/carbon.png\n   :align: center\n\nTODO\n----\n- Improve the details of the function.\n- Improve documentation and testing.\n- Optimization implementation.\n\nmaybe more...\n\nContributing\n------------\nIf you want to contribute to a project and make it better, you help is very welcome!\nPlease read through `Contributing Guidelines \u003chttps://github.com/chaitin/django-pg-partitioning/blob/master/CONTRIBUTING.rst\u003e`__.\n\nLicense\n-------\nThis project is licensed under the MIT. Please see `LICENSE \u003chttps://raw.githubusercontent.com/chaitin/django-pg-partitioning/master/LICENSE\u003e`_.\n\nProject Practice\n----------------\n.. image:: https://raw.githubusercontent.com/chaitin/django-pg-timepart/master/docs/source/_static/safeline.svg?sanitize=true\n   :target: https://www.chaitin.cn/en/safeline\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchaitin%2Fdjango-pg-partitioning","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchaitin%2Fdjango-pg-partitioning","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchaitin%2Fdjango-pg-partitioning/lists"}