code
stringlengths
3
6.57k
pieces.get("closest-tag", "")
render_pep440(pieces)
plus_or_dot(pieces)
render_pep440_pre(pieces)
render_pep440_post(pieces)
backwards (a dirty tree will appear "older" than the corresponding clean one)
plus_or_dot(pieces)
render_pep440_old(pieces)
render_git_describe(pieces)
render_git_describe_long(pieces)
render(pieces, style)
pieces.get("long")
render_pep440(pieces)
render_pep440_pre(pieces)
render_pep440_post(pieces)
render_pep440_old(pieces)
render_git_describe(pieces)
render_git_describe_long(pieces)
ValueError("unknown style '%s'" % style)
pieces.get("date")
get_versions()
get_config()
git_versions_from_keywords(get_keywords()
os.path.realpath(__file__)
tree (where the .git directory might live)
cfg.versionfile_source.split('/')
os.path.dirname(root)
git_pieces_from_vcs(cfg.tag_prefix, root, verbose)
render(pieces, cfg.style)
versions_from_parentdir(cfg.parentdir_prefix, root, verbose)
open("6-num.txt", "w")
print(a+b+c+d+e+f)
sys.stdout.close()
load_dotenv()
os.getenv("HOSTING_ENV", "production")
YAML()
yaml.indent(mapping=2, sequence=4, offset=2)
logging.getLogger(__name__)
object_to_yaml_str(obj)
StringIO()
yaml.dump(obj, string_stream)
string_stream.getvalue()
BaseYamlConfig(SerializableDictDot)
__init__(self, commented_map: CommentedMap = None)
CommentedMap()
_get_schema_instance(cls)
issubclass(cls.get_schema_class()
issubclass(cls.get_config_class()
hasattr(cls.get_config_class()
cls.get_config_class()
cls.get_config_class()
cls.get_schema_class()
cls.get_config_class()
cls.get_schema_class()
cls.get_config_class()
from_commented_map(cls, commented_map: CommentedMap)
cls._get_schema_instance()
load(commented_map)
isinstance(config, dict)
cls.get_config_class()
_get_schema_validated_updated_commented_map(self)
deepcopy(self._commented_map)
commented_map.update(self._get_schema_instance()
dump(self)
to_yaml(self, outfile)
None (but writes a YAML file containing the project configuration)
yaml.dump(self.commented_map, outfile)
to_yaml_str(self)
object_to_yaml_str(self.commented_map)
to_json_dict(self)
convert_to_json_serializable(data=commented_map)
commented_map(self)
self._get_schema_validated_updated_commented_map()
get_config_class(cls)
get_schema_class(cls)
AssetConfig(DictDot)
kwargs.items()
setattr(self, k, v)
class_name(self)
module_name(self)
AssetConfigSchema(Schema)
fields.String(required=False, allow_none=True)
fields.String(required=False, allow_none=True, missing="Asset")
fields.String(required=False, allow_none=True)
fields.String(required=False, allow_none=True)
fields.String(required=False, allow_none=True)
fields.Str()
fields.String(required=False, allow_none=True)
fields.String(required=False, allow_none=True)
fields.String(required=False, allow_none=True)
fields.Integer(required=False, allow_none=True)
fields.Dict(required=False, allow_none=True)
validate_schema(self, data, **kwargs)
make_asset_config(self, data, **kwargs)
AssetConfig(**data)
SorterConfig(DictDot)
kwargs.items()
setattr(self, k, v)
name(self)
module_name(self)