You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* The *recursive* parameter of `.add()` is no longer ignored and now enforces its default value of `False` (explicitely set it to `True` for the previous behaviour)
57
+
* The *recursive* parameter of `.add()` is no longer ignored and now enforces its default value of `False` (explicitly set it to `True` for the previous behaviour)
55
58
* The glob pattern strings that may be passed to the `.add()` pattern parameter now actually behave like recursive glob patterns (see [the Python documentation](https://docs.python.org/3/library/glob.html) for how exactly)
56
59
* Most functions previously returning a dict with the raw JSON response, now return a custom mapping type instead
57
60
* This mapping type supports the original getitem syntax (`result["ItemName"]`) unchanged, but if you need an actual dictionary object you need to call `.as_json()` on it
@@ -62,9 +65,9 @@ Other changes:
62
65
63
66
* Added support for go-IPFS 0.5.x
64
67
* Adding directories with `.add()` has been greatly reworked:
65
-
*Its now possible to specify arbitrary rules on which objects to include a directory tree by passing a custom matcher object to the *pattern* parameter
66
-
* The new *period_special* parameter allows toggling whether glob patterns match dot-files implicietly and defaults to `True` (previously it was effectively `False`)
67
-
* The new *follow_symlinks* parameter similarily determines whether symbolic links will be followed when scanning directory trees and defaults to `False` (the previous default on Unix, albeit this likely wasn't intentional)
68
+
*It's now possible to specify arbitrary rules on which objects to include a directory tree by passing a custom matcher object to the *pattern* parameter
69
+
* The new *period_special* parameter allows toggling whether glob patterns match dot-files implicitly and defaults to `True` (previously it was effectively `False`)
70
+
* The new *follow_symlinks* parameter similarly determines whether symbolic links will be followed when scanning directory trees and defaults to `False` (the previous default on Unix, albeit this likely wasn't intentional)
68
71
*`.add()` will now limit its scan to the directories required to match the given glob patterns (passing in regular expression objects will still scan the tree unconditionally however) – custom matchers have full control over which directories are visited
69
72
* The requests-based HTTP backend has been supplemented by another backend based on [HTTPx](https://www.python-httpx.org/) for Python 3.6+
70
73
* Due to a minor limitation within the library (no ability to apply address family restrictions during name resolution) this currently included as a preview and must be manually enabled, to do this ensure that the `httpx` library is installed in your Python environment and run your program with the environment variable *PY_IPFS_HTTP_CLIENT_PREFER_HTTPX* set to *yes*.
@@ -86,22 +89,22 @@ This release features several breaking changes, as compared to the previous *py-
86
89
87
90
* A new import name: `ipfsapi` → `ipfshttpclient` (thanks to @AlibabasMerchant)
88
91
* The client API is now structured according to the [IPFS interface core specification](https://github.com/ipfs/interface-ipfs-core/tree/master/SPEC)
89
-
*Deamon location is now described using [Multiaddr](https://github.com/multiformats/multiaddr)
92
+
*Daemon location is now described using [Multiaddr](https://github.com/multiformats/multiaddr)
90
93
* Some deprecated methods have been dropped:
91
94
*`bitswap_unwant`: API endpoint dropped by *go-ipfs*
92
95
*`{get,set}_pyobj`: Can too easily be abused for abitrary code execution, use `pickle.{loads,dumps}` if you really need this
93
96
*`file_ls`: Long deprecated by *go-ipfs* and scheduled for removal, use plain `ls` instead
94
97
95
98
Some new features added in this release:
96
99
97
-
* Adding large directories doesn't read them all into memory anymore before sending them to the daemon
100
+
* Adding large directories doesn't read them all into memory any more before sending them to the daemon
98
101
* API documentation has been improved
99
102
* TCP connections may now be reused between API requests
100
-
*`.add_json` now adds data as UTF-8 rather than using Unicode-escapes for shorter/more-canoncial data representation (thanks to @emmnx)
103
+
*`.add_json` now adds data as UTF-8 rather than using Unicode-escapes for shorter/more canonical data representation (thanks to @emmnx)
101
104
* Several parameters have been added to existing methods:
102
105
* Using [filestore](https://github.com/ipfs-filestore/go-ipfs/tree/master/filestore) is now possible (thanks to @radfish)
103
106
* Universal per-call `offline` parameter added (thanks to @radfish)
104
-
* Universal per-call `return_result` parameter added to issue `HEAD` requests and surpress results for speeds (thanks to @loardcirth)
107
+
* Universal per-call `return_result` parameter added to issue `HEAD` requests and suppress results for speeds (thanks to @loardcirth)
105
108
* Universal per-call `timeout` parameter added (thanks to @AlibabasMerchant)
106
109
*`.add`: `nocopy` & `raw_leaves` (thanks to @radfish)
0 commit comments