Skip to main content

A nested method computation model for nested data

Project description

Traverse invoke

https://img.shields.io/pypi/v/traverse_invoke.svg https://img.shields.io/travis/DaniloZZZ/traverse_invoke.svg Documentation Status

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.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for traverse-invoke, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size traverse_invoke-0.1.1.tar.gz (12.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page