module documentation
Undocumented
| Function | is |
Return whether the current process is running via the CLI. |
| Function | is |
Determine if the file at the given filepath is part of a pip package. |
| Function | sanitize |
Sanitize net name or path. If input is a path, only sanitize the basename. If input is a name, sanitize the whole string. Collapse multiple underscores. |
| Function | significant |
Return whether a newer version warrants notifying the user. |
| Function | version |
Check PyPI for a newer SDK version and exit on major/minor updates. |
| Constant | PYPI |
Undocumented |
| Function | _normalize |
Collapse consecutive underscores into a single underscore. |
Determine if the file at the given filepath is part of a pip package.
| Parameters | |
filepath:str | The filepath to check. |
| Returns | |
bool | Whether the file is part of an installed package. |
Sanitize net name or path. If input is a path, only sanitize the basename. If input is a name, sanitize the whole string. Collapse multiple underscores.
| Parameters | |
name:str | The name or path to sanitize. |
withbool | Whether to preserve the suffix (file extension) without sanitizing it. |
| Returns | |
str | Undocumented |