{"id":14977862,"url":"https://github.com/orthoin3d/django-ndarrayfield","last_synced_at":"2026-03-07T13:31:08.939Z","repository":{"id":53911514,"uuid":"323370721","full_name":"ORTHOIN3D/django-ndarrayfield","owner":"ORTHOIN3D","description":"New Django field to store numpy ndarray.","archived":false,"fork":false,"pushed_at":"2021-08-10T08:31:58.000Z","size":13,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-02T21:13:08.779Z","etag":null,"topics":["django","django-fields","numpy","numpy-arrays"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ORTHOIN3D.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-21T15:11:06.000Z","updated_at":"2021-08-10T08:31:28.000Z","dependencies_parsed_at":"2022-08-13T04:01:18.553Z","dependency_job_id":null,"html_url":"https://github.com/ORTHOIN3D/django-ndarrayfield","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ORTHOIN3D%2Fdjango-ndarrayfield","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ORTHOIN3D%2Fdjango-ndarrayfield/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ORTHOIN3D%2Fdjango-ndarrayfield/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ORTHOIN3D%2Fdjango-ndarrayfield/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ORTHOIN3D","download_url":"https://codeload.github.com/ORTHOIN3D/django-ndarrayfield/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241570921,"owners_count":19984002,"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":["django","django-fields","numpy","numpy-arrays"],"created_at":"2024-09-24T13:56:27.542Z","updated_at":"2026-03-07T13:31:08.824Z","avatar_url":"https://github.com/ORTHOIN3D.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# django-ndarrayfield\nNew Django field to store numpy ndarray.\n\n## Description\nStore a numpy n-dimensional array in database (compatible with all database backend).\nUse numpy save/load, you can define a shape (not required), and a dtype (default float32).\n\n## Usage\n\n```python\nimport numpy as np\nfrom django.db import models\nfrom ndarraydjango.fields import NDArrayField\n\n\nclass MyModel(models.Model):\n    vec1 = NDArrayField(shape=(32, 4), dtype=np.float64)\n    date = models.DateTimeField(auto_now_add=True)\n```\n\n## Parameters\n\n* **dtype**: the ndarray dtype (default np.float32)\n* **shape**: the ndarray shape (default None)\n* **binary_serialize**: when dump data, serialize to binary (base64) or json lists (default False)\n\n\n\n## Warning\nThis field type does not replace a static file storage.\nThe main goal is to store parameter data, results of algorithms and\nsmall and medium machine learning models.\nA good indication is the shape of the nd-array. It would be static,\nand with a reasonable size. The overrall data size should not exceed 1mb.\nFor example a field of 300x400 of 2 float32 value ( (300, 400, 2) dtype=float32)\nshould be a maximum.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forthoin3d%2Fdjango-ndarrayfield","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forthoin3d%2Fdjango-ndarrayfield","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forthoin3d%2Fdjango-ndarrayfield/lists"}