module/import related stuff
Project description
Convenience functions related to modules and importing.
Function import_module_name(module_name, name, path=None, lock=None)
Import module_name
and return the value of name
within it.
Parameters:
module_name
: the module name to import.name
: the name within the module whose value is returned; ifname
is None, return the module itself.path
: an array of paths to use as sys.path during the import.lock
: a lock to hold during the import (recommended).
Function module_attributes(M)
Generator yielding the names and values of attributes from a module which were defined in the module.
Function module_files(M)
Generator yielding .py pathnames involved in a module.
Function module_names(M)
Return a list of the names of attributes from a module which were defined in the module.
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 cs.py.modules-20190101.tar.gz
.
File metadata
- Download URL: cs.py.modules-20190101.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.0 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32fd3b62ab962ffc1da1fb891c94d60f1373912a6a61a839ec2103f854c72199 |
|
MD5 | ec0db1534273b430b01825a8dedc0c8f |
|
BLAKE2b-256 | 7a080fac638b0e5226bfc80ae083379bfe1397015fd6febb96a7919687ec5103 |