numpyencoder


Namenumpyencoder JSON
Version 0.3.0 PyPI version JSON
download
home_pagehttps://github.com/hmallen/numpyencoder
SummaryPython JSON encoder for handling Numpy data types.
upload_time2020-10-05 13:42:34
maintainer
docs_urlNone
authorHunter M. Allen
requires_python
licenseMIT
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)
```



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hmallen/numpyencoder",
    "name": "numpyencoder",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "numpy,json,encoder",
    "author": "Hunter M. Allen",
    "author_email": "allenhm@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/06/bf/a3c6633202698abeda5c223525e37732c8a81df15c7dea79773994b27da2/numpyencoder-0.3.0.tar.gz",
    "platform": "",
    "description": "# numpyencoder\n\nCustom Python JSON encoder for handling Numpy data types.\n\n**Example Use:**\n\n```python\nfrom numpyencoder import NumpyEncoder\n\nnumpy_data = np.array([0, 1, 2, 3])\n\nwith open(json_file, 'w') as file:\n    json.dump(numpy_data, file, indent=4, sort_keys=True,\n              separators=(', ', ': '), ensure_ascii=False,\n              cls=NumpyEncoder)\n```\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Python JSON encoder for handling Numpy data types.",
    "version": "0.3.0",
    "split_keywords": [
        "numpy",
        "json",
        "encoder"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "3c7f27488d71091b825657c25fdc7ef7",
                "sha256": "e3f7cec9b40fc026ec4ea9fc2d0ef69d4f5f171edec8f51b4cf1c5144545495b"
            },
            "downloads": -1,
            "filename": "numpyencoder-0.3.0-py3-none-any.whl",
            "has_sig": true,
            "md5_digest": "3c7f27488d71091b825657c25fdc7ef7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 2981,
            "upload_time": "2020-10-05T13:42:32",
            "upload_time_iso_8601": "2020-10-05T13:42:32.923876Z",
            "url": "https://files.pythonhosted.org/packages/3a/81/3bc19741054a7cb4d0f6e2771729bfb6da1e40496943c9c0edd304614f14/numpyencoder-0.3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "125f24970e24e06ecb2adb7247ca774c",
                "sha256": "79da1c662bcdc6260a3944426e1dc38c248a236b9b73faf26a9084f73932f870"
            },
            "downloads": -1,
            "filename": "numpyencoder-0.3.0.tar.gz",
            "has_sig": true,
            "md5_digest": "125f24970e24e06ecb2adb7247ca774c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 1854,
            "upload_time": "2020-10-05T13:42:34",
            "upload_time_iso_8601": "2020-10-05T13:42:34.248307Z",
            "url": "https://files.pythonhosted.org/packages/06/bf/a3c6633202698abeda5c223525e37732c8a81df15c7dea79773994b27da2/numpyencoder-0.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-10-05 13:42:34",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "hmallen",
    "github_project": "numpyencoder",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "numpyencoder"
}
        
Elapsed time: 0.12916s