Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(4) | Call(0) | Derive(0) | Import(4)
str(object='') -> string Return a nice string representation of the object. If the argument is a string, the return value is the same object.
src/w/h/whack-0.7.0/whack/indices.py whack(Download)
import dodge from .common import SOURCE_URI_SUFFIX, PACKAGE_URI_SUFFIX from . import slugs from .platform import Platform
def find_package_source_by_name(self, name): package_source_filename = name + SOURCE_URI_SUFFIX return self._find_by_name(package_source_filename) def find_package(self, params_hash, platform):
src/w/h/whack-HEAD/whack/indices.py whack(Download)
import dodge from .common import SOURCE_URI_SUFFIX, PACKAGE_URI_SUFFIX from . import slugs from .platform import Platform
def find_package_source_by_name(self, name): package_source_filename = name + SOURCE_URI_SUFFIX return self._find_by_name(package_source_filename) def find_package(self, params_hash, platform):
src/w/h/whack-0.7.0/whack/sources.py whack(Download)
from .uris import is_local_path, is_http_uri from . import slugs from .common import SOURCE_URI_SUFFIX
def _verify(self, source_name, package_source): if source_name.endswith(SOURCE_URI_SUFFIX): full_name = source_name[:-len(SOURCE_URI_SUFFIX)] expected_hash = slugs.split(full_name)[-1] actual_hash = package_source.source_hash()
def create_source_tarball(package_source, tarball_dir): with create_temporary_dir() as source_dir: package_source.write_to(source_dir) full_name = package_source.full_name() filename = "{0}{1}".format(full_name, SOURCE_URI_SUFFIX)
src/w/h/whack-HEAD/whack/sources.py whack(Download)
from .uris import is_local_path, is_http_uri from . import slugs from .common import SOURCE_URI_SUFFIX from . import lists
def _verify(self, source_name, package_source): if source_name.endswith(SOURCE_URI_SUFFIX): full_name = source_name[:-len(SOURCE_URI_SUFFIX)] expected_hash = slugs.split(full_name)[-1] actual_hash = package_source.source_hash()
def create_source_tarball(package_source, tarball_dir): with create_temporary_dir() as source_dir: package_source.write_to(source_dir) full_name = package_source.full_name() filename = "{0}{1}".format(full_name, SOURCE_URI_SUFFIX)