numpyencoder


Namenumpyencoder JSON
Version 0.3.2 PyPI version JSON
download
home_pageNone
SummaryPython JSON encoder for handling Numpy data types.
upload_time2025-07-15 04:12:29
maintainerNone
docs_urlNone
authorNone
requires_python>=3.6
licenseNone
keywords numpy json encoder
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # numpyencoder

Custom Python JSON encoder for handling Numpy data types.

**Example Use:**

```python
from numpyencoder import NumpyEncoder

numpy_data = np.array([0, 1, 2, 3])

with open(json_file, 'w') as file:
    json.dump(
        numpy_data,
        file,
        indent=4,
        sort_keys=True,
        separators=(', ', ': '),
        ensure_ascii=False,
        cls=NumpyEncoder
    )
```

## Installation

```
pip install numpyencoder==0.3.2
```


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "numpyencoder",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "numpy, json, encoder",
    "author": null,
    "author_email": "\"Hunter M. Allen\" <allenhm@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/c4/0d/266647b8986a9d5ff10bdf50b5d77c90c03038f56132d34d51a59f1bbe56/numpyencoder-0.3.2.tar.gz",
    "platform": null,
    "description": "# numpyencoder\r\n\r\nCustom Python JSON encoder for handling Numpy data types.\r\n\r\n**Example Use:**\r\n\r\n```python\r\nfrom numpyencoder import NumpyEncoder\r\n\r\nnumpy_data = np.array([0, 1, 2, 3])\r\n\r\nwith open(json_file, 'w') as file:\r\n    json.dump(\r\n        numpy_data,\r\n        file,\r\n        indent=4,\r\n        sort_keys=True,\r\n        separators=(', ', ': '),\r\n        ensure_ascii=False,\r\n        cls=NumpyEncoder\r\n    )\r\n```\r\n\r\n## Installation\r\n\r\n```\r\npip install numpyencoder==0.3.2\r\n```\r\n\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Python JSON encoder for handling Numpy data types.",
    "version": "0.3.2",
    "project_urls": {
        "Homepage": "https://github.com/hmallen/numpyencoder"
    },
    "split_keywords": [
        "numpy",
        " json",
        " encoder"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "82ee372a5080e5185bb7ec685040c33be3845418341cb0764c7033f1e1cf02c6",
                "md5": "6bd6c018b978a031f48ceaee5748b758",
                "sha256": "a5935afdbbc237c1b6c23b5c7bc0e77645a0bbd9ed5bbb1eb8449da75909699f"
            },
            "downloads": -1,
            "filename": "numpyencoder-0.3.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6bd6c018b978a031f48ceaee5748b758",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 3526,
            "upload_time": "2025-07-15T04:12:28",
            "upload_time_iso_8601": "2025-07-15T04:12:28.552775Z",
            "url": "https://files.pythonhosted.org/packages/82/ee/372a5080e5185bb7ec685040c33be3845418341cb0764c7033f1e1cf02c6/numpyencoder-0.3.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "c40d266647b8986a9d5ff10bdf50b5d77c90c03038f56132d34d51a59f1bbe56",
                "md5": "9bbdc2826aad1b02a8f39261967b230a",
                "sha256": "3107f51b2d90a053fea5e4075b024080c07bfabff0050e070ba8e90241734f16"
            },
            "downloads": -1,
            "filename": "numpyencoder-0.3.2.tar.gz",
            "has_sig": false,
            "md5_digest": "9bbdc2826aad1b02a8f39261967b230a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 3284,
            "upload_time": "2025-07-15T04:12:29",
            "upload_time_iso_8601": "2025-07-15T04:12:29.329094Z",
            "url": "https://files.pythonhosted.org/packages/c4/0d/266647b8986a9d5ff10bdf50b5d77c90c03038f56132d34d51a59f1bbe56/numpyencoder-0.3.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-15 04:12:29",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hmallen",
    "github_project": "numpyencoder",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "numpyencoder"
}
        
Elapsed time: 0.45153s