Skip to main content

Include and run callables

Project description

https://api.travis-ci.org/zzzsochi/includer.svg https://coveralls.io/repos/zzzsochi/includer/badge.svg

Usage

some_module.py:

def some_func(arg='World'):
    print('Hello {}'.format(arg))

some_else_module.py:

from includer import include

include('some_module.some_func', arg='ZZZ')

IncluderMixin

Mix include method for objects. Behavior like as Configurator.include. See tests for understood it.

This is very usefull for imperative application configuration.

Tests

$ pip install pytest
$ py.test tests -v

Project details


Download files

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

Source Distribution

includer-1.0.0.tar.gz (2.0 kB view details)

Uploaded Source

File details

Details for the file includer-1.0.0.tar.gz.

File metadata

  • Download URL: includer-1.0.0.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for includer-1.0.0.tar.gz
Algorithm Hash digest
SHA256 72f5fa72c3a13bfddc9d502aea93b299108beae52bebafe4f56881392fe02f37
MD5 1932c7c509375a5de9915608f6cb75d9
BLAKE2b-256 584a6f339a66d71d64bc23d4d1cf83826c20ab5bf91b1d336a33eb21e85660a9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page