{"id":15043590,"url":"https://github.com/ivanyu/idx2numpy","last_synced_at":"2025-04-14T23:32:12.909Z","repository":{"id":6690760,"uuid":"7935903","full_name":"ivanyu/idx2numpy","owner":"ivanyu","description":"A Python package which provides tools to convert files to and from IDX format (described at http://yann.lecun.com/exdb/mnist/) into numpy.ndarray.","archived":false,"fork":false,"pushed_at":"2020-10-09T05:02:11.000Z","size":40,"stargazers_count":24,"open_issues_count":0,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T12:21:14.643Z","etag":null,"topics":["idx-format","ndarray","numpy","python"],"latest_commit_sha":null,"homepage":"","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/ivanyu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-01-31T11:52:21.000Z","updated_at":"2024-07-06T19:27:21.000Z","dependencies_parsed_at":"2022-07-31T03:48:48.583Z","dependency_job_id":null,"html_url":"https://github.com/ivanyu/idx2numpy","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanyu%2Fidx2numpy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanyu%2Fidx2numpy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanyu%2Fidx2numpy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanyu%2Fidx2numpy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ivanyu","download_url":"https://codeload.github.com/ivanyu/idx2numpy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248979022,"owners_count":21192891,"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":["idx-format","ndarray","numpy","python"],"created_at":"2024-09-24T20:49:18.835Z","updated_at":"2025-04-14T23:32:12.661Z","avatar_url":"https://github.com/ivanyu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"idx2numpy\n=========\n\n[![Build Status](https://travis-ci.org/ivanyu/idx2numpy.svg?branch=master)](https://travis-ci.org/ivanyu/idx2numpy)\n\n`idx2numpy` package provides a tool for converting files to and from\nIDX format to `numpy.ndarray`. You can meet files in IDX format,\ne.g. when you're going to read the [MNIST database of handwritten digits](http://yann.lecun.com/exdb/mnist/) provided by Yann LeCun.\n\nThe description of IDX format also can be found on this page.\n\nInstallation\n============\n\nThe easiest way to install is by using pip to pull it from PyPI:\n\n    pip install idx2numpy\n\nYou can also clone the Git repository from Github and install \nthe package manually:\n\n    git clone https://github.com/ivanyu/idx2numpy.git\n    python setup.py install\n\nUsage\n=====\n\n```python\nimport idx2numpy\n\n# Reading\nndarr = idx2numpy.convert_from_file('myfile.idx')\n\nf_read = open('myfile.idx', 'rb')\nndarr = idx2numpy.convert_from_file(f_read)\n\ns = f_read.read()\nndarr = idx2numpy.convert_from_string(s)\n\n# Writing    \nidx2numpy.convert_to_file('myfile_copy.idx', ndarr)\n\nf_write = open('myfile_copy2.idx', 'wb')\nidx2numpy.convert_to_file(f_write, ndarr)\n\ns = convert_to_string(ndarr)\n```\n\nLicense\n=======\nMIT license (see `LICENSE` file)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanyu%2Fidx2numpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivanyu%2Fidx2numpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanyu%2Fidx2numpy/lists"}