{"id":32280388,"url":"https://github.com/minhqdao/npy","last_synced_at":"2026-01-15T03:44:02.508Z","repository":{"id":332417036,"uuid":"848992443","full_name":"minhqdao/npy","owner":"minhqdao","description":"Read and write NumPy binary files (.npy and .npz formats) in Dart.","archived":false,"fork":false,"pushed_at":"2025-03-03T06:55:09.000Z","size":173,"stargazers_count":1,"open_issues_count":14,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-13T20:43:16.957Z","etag":null,"topics":["array","dart","dartlang","flutter","library","ndarray","npy","npz","numpy","package","plugin","pub","pub-dev"],"latest_commit_sha":null,"homepage":"","language":"Dart","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/minhqdao.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"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":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-08-28T19:24:34.000Z","updated_at":"2025-10-12T01:54:02.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/minhqdao/npy","commit_stats":null,"previous_names":["minhqdao/npy"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/minhqdao/npy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minhqdao%2Fnpy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minhqdao%2Fnpy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minhqdao%2Fnpy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minhqdao%2Fnpy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/minhqdao","download_url":"https://codeload.github.com/minhqdao/npy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minhqdao%2Fnpy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28413277,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["array","dart","dartlang","flutter","library","ndarray","npy","npz","numpy","package","plugin","pub","pub-dev"],"created_at":"2025-10-23T00:43:28.762Z","updated_at":"2026-01-15T03:44:02.501Z","avatar_url":"https://github.com/minhqdao.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/minhqdao/npy/blob/main/LICENSE)\n[![CI](https://github.com/minhqdao/npy/actions/workflows/ci.yml/badge.svg)](https://github.com/minhqdao/npy/actions/workflows/ci.yml)\n\nRead and write NumPy binary files (`.npy` and `.npz`) in Dart.\n\n## Usage\n\nLoad an `ndarray` from an `.npy` file:\n\n```dart\nfinal ndarray = await NdArray.load('example.npy');\n```\n\nCreate an `ndarray` and save it as an `.npy` file:\n\n```dart\nfinal ndarray = NdArray.fromList([1.0, 2.0, 3.0]);\nawait ndarray.save('example_save.npy');\n```\n\nConveniently save an n-dimensional `List` to an `.npy` file:\n\n```dart\nawait save('example_save.npy', [[1, 2, 3], [4, 5, 6]]);\n```\n\nRead (compressed) `.npz` files:\n\n```dart\nfinal npzFile = await NpzFile.load('example.npz');\nfinal arr_0 = npzFile.take('arr_0.npy');\nfinal arr_1 = npzFile.take('arr_1.npy');\n```\n\nWrite (compressed) `.npz` files:\n\n```dart\nfinal array1 = NdArray.fromList([1.0, 2.0, 3.0]);\nfinal array2 = NdArray.fromList([[true, false, true]]);\n\nfinal npzFile = NpzFile();\n\nnpzFile.add(array1);\nnpzFile.add(array2);\n\nawait npzFile.save('example_save.npz');\n```\n\n## Features\n\nLoad and save n-dimensional arrays from and to the following file formats:\n\n✅ `.npy` \\\n✅ `.npz` (compressed and uncompressed)\n\nSupported data types:\n\n✅ float64, float32\\\n✅ int64, int32, int16, int8\\\n✅ uint64, uint32, uint16, uint8\\\n✅ bool\n\nSupported memory representations:\n\n✅ Little and big endian\\\n✅ C and Fortran order\n\n## Tests\n\n`dart test` will run integration tests, too, so make sure to have `python` and `numpy` installed and `python` available in your system's `PATH`.\n\n## Contribute\n\n- Feel free to [create an issue](https://github.com/minhqdao/npy/issues) in case you found a bug, have any questions or want to propose new features.\n- Please [check open issues](https://github.com/minhqdao/npy/issues) before creating a new one.\n- Make sure to satisfy formatter, analyzer and tests when [opening a pull request](https://github.com/minhqdao/npy/pulls).\n\n## Further Reading\n\nMore information on the `.npy` format can be found [here](https://numpy.org/doc/stable/reference/generated/numpy.lib.format.html).\n\n## License\n\nYou can use, redistribute and/or modify the code under the terms of the [MIT License](https://github.com/minhqdao/npy/blob/main/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminhqdao%2Fnpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminhqdao%2Fnpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminhqdao%2Fnpy/lists"}