{"id":20041969,"url":"https://github.com/dlozeve/bqn-npy","last_synced_at":"2026-02-07T13:02:43.848Z","repository":{"id":198307043,"uuid":"700321509","full_name":"dlozeve/bqn-npy","owner":"dlozeve","description":"Serialize and deserialize arrays in BQN to the Numpy NPY format","archived":false,"fork":false,"pushed_at":"2024-11-15T20:35:51.000Z","size":8,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-04T22:24:09.298Z","etag":null,"topics":["bqn","npy-files","numpy","numpy-arrays","serialization"],"latest_commit_sha":null,"homepage":"","language":"BQN","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dlozeve.png","metadata":{"files":{"readme":"README.org","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-04T11:28:17.000Z","updated_at":"2025-01-11T18:52:59.000Z","dependencies_parsed_at":"2025-01-12T19:33:00.072Z","dependency_job_id":"23ec9dcc-96f3-43ff-8cb8-0b533d5ed053","html_url":"https://github.com/dlozeve/bqn-npy","commit_stats":null,"previous_names":["dlozeve/bqn-npy"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dlozeve/bqn-npy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlozeve%2Fbqn-npy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlozeve%2Fbqn-npy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlozeve%2Fbqn-npy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlozeve%2Fbqn-npy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dlozeve","download_url":"https://codeload.github.com/dlozeve/bqn-npy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlozeve%2Fbqn-npy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29194423,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T12:38:28.597Z","status":"ssl_error","status_checked_at":"2026-02-07T12:38:23.888Z","response_time":63,"last_error":"SSL_read: 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":["bqn","npy-files","numpy","numpy-arrays","serialization"],"created_at":"2024-11-13T10:48:24.763Z","updated_at":"2026-02-07T13:02:43.832Z","avatar_url":"https://github.com/dlozeve.png","language":"BQN","funding_links":[],"categories":["Libraries"],"sub_categories":[],"readme":"* bqn-npy\n\nThis library allows to save and load BQN arrays to the binary [[https://numpy.org/doc/stable/reference/generated/numpy.lib.format.html][NPY\nformat]] compatible with Numpy. It can also be used to interoperate\nwith Numpy.\n\nSee also [[https://github.com/dlozeve/bqn-safetensors][bqn-safetensors]] for another array serialization format.\n\n** Limitations\n\nThe library only support homogeneous multidimensional arrays with the\nfollowing Numpy dtypes:\n\n| dtype | Description                                                 |\n|-------+-------------------------------------------------------------|\n| ~\u003cf8~ | little-endian 64-bit double-precision floating point number |\n| ~\u003ci4~ | little-endian 32-bit signed integer                         |\n| ~\u003cu4~ | little-endian 32-bit unsigned integer                       |\n\nAll other dtypes (big-endian numbers, booleans, bytes, objects, other\nsizes of floats or integers) are unsupported and files containing them\nwill raise an error when loaded.\n\nWhen serializing BQN arrays, the library uses the most restrictive\ndtype possible. An array consisting only of positive integers will be\nsaved as ~\u003cu4~, otherwise ~\u003ci4~ if there are negative integers,\notherwise ~\u003cf8~ for arbitrary numbers.\n\n** Usage\n\n#+begin_src bqn\n⟨SaveNpy,LoadNpy⟩←•Import\"npy.bqn\"\n\n# Deserialization\narr1←LoadNpy\"arr1.npy\"\n\n# Serialization\narr2←2‿3‿4⥊•rand.Range 0  # will be saved as a floating point array\n\"arr2.npy\" SaveNpy arr2\n#+end_src\n\n** Tests\n\nRun the Python script to generate test data: =python gentest.py=.\n\nTo run tests, run =bqn tests.bqn=.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdlozeve%2Fbqn-npy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdlozeve%2Fbqn-npy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdlozeve%2Fbqn-npy/lists"}