Package
Package
Bases: ProfileContainer
The class of omoospace package.
A package class instance is always refer to a existed package directory, not dummy.
Usage:
Attributes:
Name | Type | Description |
---|---|---|
name |
str
|
Package's name. |
description |
str
|
Package's description. |
version |
str
|
Package's version. |
Source code in omoospace\package.py
items: list[Item]
property
list[Item]: Package item list.
profile_path: Path
property
Path: Package.yml file path.
root_path: Path
property
Path: Root path.
__init__(package_path)
Initialize package .
Parameters:
Name | Type | Description | Default |
---|---|---|---|
package_path |
PathLike
|
The package path. |
required |
Raises:
Type | Description |
---|---|
NotFoundError
|
No package detected. |
Source code in omoospace\package.py
is_package_item(path)
Check if path is package item
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path |
Path
|
Input |
required |
Returns:
Name | Type | Description |
---|---|---|
bool |
bool
|
result |