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.2.tar.bz2 (2.3 kB view details)

Uploaded Source

File details

Details for the file includer-1.0.2.tar.bz2.

File metadata

  • Download URL: includer-1.0.2.tar.bz2
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for includer-1.0.2.tar.bz2
Algorithm Hash digest
SHA256 ffad2929dbad93e5d70359bd1d5fd310e341472a427564f788c8a82fc5006923
MD5 2b0933c98956de88e20437b040fcdcb6
BLAKE2b-256 4d3fee65f1f273d70dd06b1702da559732159993ead92ab9a2c79f2bd9452b5f

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