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.1.tar.gz (2.1 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for includer-1.0.1.tar.gz
Algorithm Hash digest
SHA256 63db9a2b585a0789d5f2c6d6d38b524168ed199f02a1cfb71fe37d4fb4fa1691
MD5 21110256ee77b7e7f27bbcf027e67546
BLAKE2b-256 5dd71afcd62e49ba04dc44ccb0febc91bea47d71eb1995d6befe3fe1175c1bee

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