code stringlengths 3 6.57k |
|---|
find_packages('src') |
splitext(basename(path) |
glob('src/*.py') |
logging.getLogger(__name__) |
ImageCache(object) |
__init__(self) |
pathutils.PathUtils() |
utilsfactory.get_vhdutils() |
_get_root_vhd_size_gb(self, instance) |
_resize_and_cache_vhd(self, instance, vhd_path) |
self._vhdutils.get_vhd_size(vhd_path) |
self._get_root_vhd_size_gb(instance) |
os.path.splitext(vhd_path) |
utils.synchronized(resized_vhd_path) |
copy_and_resize_vhd() |
self._pathutils.exists(resized_vhd_path) |
LOG.debug("Copying VHD %(vhd_path) |
self._pathutils.copyfile(vhd_path, resized_vhd_path) |
LOG.debug("Resizing VHD %(resized_vhd_path) |
excutils.save_and_reraise_exception() |
self._pathutils.exists(resized_vhd_path) |
self._pathutils.remove(resized_vhd_path) |
copy_and_resize_vhd() |
get_cached_image(self, context, instance) |
self._pathutils.get_base_vhd_dir() |
os.path.join(base_vhd_dir, image_id) |
utils.synchronized(base_vhd_path) |
fetch_image_if_not_existing() |
self._pathutils.exists(test_path) |
images.fetch(context, image_id, base_vhd_path) |
self._vhdutils.get_vhd_format(base_vhd_path) |
format_ext.lower() |
self._pathutils.rename(base_vhd_path, vhd_path) |
excutils.save_and_reraise_exception() |
self._pathutils.exists(base_vhd_path) |
self._pathutils.remove(base_vhd_path) |
fetch_image_if_not_existing() |
vhd_path.split('.') |
lower() |
self._resize_and_cache_vhd(instance, vhd_path) |
dispatching (Routes) |
Copyright (c) |
MIT (see LICENSE for details) |
OptionParser(usage="usage: %prog [options] package.module:app") |
_opt("--version", action="store_true", help="show version number.") |
_opt("-b", "--bind", metavar="ADDRESS", help="bind socket to ADDRESS.") |
_opt("-s", "--server", default='wsgiref', help="use SERVER as backend.") |
_opt("-p", "--plugin", action="append", help="install additional plugin/s.") |
_opt("--debug", action="store_true", help="start server in debug mode.") |
_opt("--reload", action="store_true", help="auto-reload on file changes.") |
_cmd_parser.parse_args() |
_cmd_options.server.startswith('gevent') |
gevent.monkey.patch_all() |
_cmd_options.server.startswith('eventlet') |
eventlet.monkey_patch() |
json_dumps(data) |
ImportError("JSON support requires Python 2.6 or simplejson.") |
_e() |
sys.exc_info() |
mod_wsgi (resticts stdout/err attribute access) |
sys.stdout.write(x) |
sys.stderr.write(x) |
functools.partial(urlunquote, encoding='latin1') |
json_lds(touni(s) |
hasattr(x, '__call__') |
_raise(*a) |
with_traceback(a[2]) |
warnings.warn(msg, DeprecationWarning) |
next(it) |
it.next() |
eval(compile('def _raise(*a) |
tob(s, enc='utf8') |
s.encode(enc) |
isinstance(s, unicode) |
bytes(s) |
touni(s, enc='utf8', err='strict') |
isinstance(s, bytes) |
s.decode(enc, err) |
unicode(s or ("" if s is None else s) |
bytes (which makes a lot of sense) |
NCTextIOWrapper(TextIOWrapper) |
close(self) |
update_wrapper(wrapper, wrapped, *a, **ka) |
functools.update_wrapper(wrapper, wrapped, *a, **ka) |
depr(message, strict=False) |
warnings.warn(message, DeprecationWarning, stacklevel=3) |
makelist(data) |
isinstance(data, (tuple, list, set, dict) |
list(data) |
DictProperty(object) |
__init__(self, attr, key=None, read_only=False) |
__call__(self, func) |
functools.update_wrapper(self, func, updated=[]) |
__get__(self, obj, cls) |
getattr(obj, self.attr) |
self.getter(obj) |
__set__(self, obj, value) |
AttributeError("Read-Only property.") |
getattr(obj, self.attr) |
__delete__(self, obj) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.