numpyencoder-0.3.2
توضیحات
Python JSON encoder for handling Numpy data types.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | numpyencoder-0.3.2 |
| نام | numpyencoder |
| نسخه کتابخانه | 0.3.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | "Hunter M. Allen" <allenhm@gmail.com> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/numpyencoder/ |
| مجوز | - |
# 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
```
نیازمندی
| مقدار | نام |
|---|---|
| - | numpy>=1.14.3 |
| - | packaging>=20.0 |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl numpyencoder-0.3.2:
pip install numpyencoder-0.3.2.whl
نصب پکیج tar.gz numpyencoder-0.3.2:
pip install numpyencoder-0.3.2.tar.gz