A nested method computation model for nested data
Project description
Traverse invoke
A nested method [computation model] for nested data
This shit is a blessing. I don’t know anything like this except maybe lambda. I’ll think about Turing-completeness and meta complexity of this.
Please do yourself a favor and read the source.
Docs not yet available, since the whole computation model needs to be formed, which requires some experience of using current version.
Documentation: https://traverse-invoke.readthedocs.io (uder development. maybe).
Features
Invoke methods by their path in module tree.
Pass arguments as nested closures for methods.
Modify invocation path in runtime (the most exiting thing).
Basic Usage
Invoke method
import sys, traverse_invoke
method = 'sys.version'
names = {
'sys':{'version':sys.version}}
}
args = { 'version':'foobar'}
traverse_invoke.entry_traverse(args, method, names)
This will invoke sys.version(**{version:foobar})
Traverse
see test
History
0.1.0 (2020-01-14)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file traverse_invoke-0.1.1.tar.gz
.
File metadata
- Download URL: traverse_invoke-0.1.1.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4aafda60b1aabdec47b0313f271bc8713ca16ca2ddeec9c85dcdc0a1626773ae |
|
MD5 | a37e381e0e1304ab9a374095a4af9b39 |
|
BLAKE2b-256 | ae96471f89cf4fab9fc18ee10a0e045e020aadb788277f7f7faec405cb331d92 |