Skip to content

Commit 6e04599

Browse files
committed
bump version number to 0.5
1 parent cdc6fc9 commit 6e04599

3 files changed

Lines changed: 15 additions & 4 deletions

File tree

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
- Copyright: (C) Qianqian Fang (2019-2022) <q.fang at neu.edu>
66
- License: Apache License, Version 2.0
7-
- Version: 0.4.4
7+
- Version: 0.5.0
88
- URL: https://github.com/NeuroJSON/pyjdata
99

1010
[![Build Status](https://travis-ci.com/fangq/pyjdata.svg?branch=master)](https://travis-ci.com/fangq/pyjdata)
@@ -39,6 +39,7 @@ Dependencies:
3939
* (optional) **bjdata**: PIP: run `pip install bjdata` or `sudo apt-get install python3-bjdata`, see https://pypi.org/project/bjdata/, only needed to read/write BJData/UBJSON files
4040
* (optional) **lz4**: PIP: run `pip install lz4`, only needed when encoding/decoding lz4-compressed data
4141
* (optional) **backports.lzma**: PIP: run `sudo apt-get install liblzma-dev` and `pip install backports.lzma` (needed for Python 2.7), only needed when encoding/decoding lzma-compressed data
42+
* (optional) **blosc2**: PIP: run `pip install blosc2`, only needed when encoding/decoding blosc2-compressed data
4243

4344
Replacing `pip` by `pip3` if you are using Python 3.x. If either `pip` or `pip3`
4445
does not exist on your system, please run
@@ -101,6 +102,16 @@ newdata=jd.load('test.json')
101102
newdata
102103
```
103104

105+
PyJData supports multiple N-D array data compression/decompression methods (i.e. codecs), similar
106+
to HDF5 filters. The currently supported filters include `zlib`, `gzip`, `lz4`, `lzma`, and various
107+
`blosc2` compression methods, including `blosc2blosclz`, `blosc2lz4`, `blosc2lz4hc`, `blosc2zlib`,
108+
`blosc2zstd`. To apply a selected compression method, one simply set `{'compression':'method'}` as
109+
the option to `jdata.encode` or `jdata.save` function; `jdata.load` or `jdata.decode` automatically
110+
decompress the data based on the `_ArrayZipType_` annotation present in the data. Only `blosc2`
111+
compression methods support multi-threading. To set the thread number, one should define a `nthread`
112+
value in the option for both encoding and decoding.
113+
114+
104115
## Utility
105116

106117
One can convert from JSON based data files (`.json, .jdt, .jnii, .jmsh, .jnirs`) to binary-JData

jdata/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
from .jfile import load, save, show, loadt, savet, loadb, saveb, jext
3737
from .jdata import encode, decode, jdtype, jsonfilter
3838

39-
__version__ = "0.4.4"
39+
__version__ = "0.5.0"
4040
__all__ = [
4141
"load",
4242
"save",

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
setup(
77
name = 'jdata',
88
packages = ['jdata'],
9-
version = '0.4.4',
9+
version = '0.5.0',
1010
license='Apache license 2.0',
1111
description = 'Encoding and decoding Python data structrues using portable JData-annotated formats',
1212
long_description=readme,
@@ -15,7 +15,7 @@
1515
author_email = 'fangqq@gmail.com',
1616
maintainer= 'Qianqian Fang',
1717
url = 'https://github.com/NeuroJSON/pyjdata',
18-
download_url = 'https://github.com/NeuroJSON/pyjdata/archive/v0.4.4.tar.gz',
18+
download_url = 'https://github.com/NeuroJSON/pyjdata/archive/v0.5.0.tar.gz',
1919
keywords = ['JSON', 'JData', 'UBJSON', 'BJData', 'OpenJData', 'NeuroJSON', 'JNIfTI', 'JMesh', 'Encoder', 'Decoder'],
2020
platforms="any",
2121
install_requires=[

0 commit comments

Comments
 (0)