devboard ¤
Devboard package.
A development dashboard for your projects.
Modules:
-
app
–The Textual application.
-
board
–The Textual application.
-
cli
–Module that contains the command line application.
-
datatable
–Data tables with selectable rows.
-
debug
–Debugging utilities.
-
default_board
–User configuration of columns.
-
modal
–Modal screen.
-
notifications
–Notifications.
-
projects
–Git utilities.
Classes:
-
Column
–A Devboard column.
-
Project
–A class representing development projects.
-
Row
–A Devboard row.
Column ¤
Bases: Container
, ModalMixin
, NotifyMixin
A Devboard column.
Methods:
-
action_apply
–Apply an action to selected rows.
-
apply
–Apply action on given row.
-
compose
–Compose column widgets.
-
list_projects
–List projects for this column.
-
modal
–Push a modal.
-
notify_error
–Notify error.
-
notify_info
–Notify information.
-
notify_success
–Notify success.
-
notify_warning
–Notify warning.
-
on_mount
–Fill data table.
-
populate_rows
–Populate rows for this column.
-
update
–Update the column (recompute data).
Attributes:
Project dataclass
¤
Project(
LOCKS: dict[Project, Lock] = defaultdict(Lock),
DEFAULT_BRANCHES: tuple[str, ...] = ("main", "master"),
path: Path,
)
A class representing development projects.
It is instantiated with a path, and then provides many utility properties and methods.
Methods:
-
checkout
–Checkout branch, restore previous one when exiting.
-
delete
–Delete branch.
-
fetch
–Fetch.
-
lock
–Lock project.
-
pull
–Pull branch.
-
push
–Push branch.
-
unlock
–Unlock project.
-
unpulled
–Number of unpulled commits, per branch.
-
unpushed
–Number of unpushed commits, per branch.
-
unreleased
–List unreleased commits.
Attributes:
-
DEFAULT_BRANCHES
(tuple[str, ...]
) –Name of common default branches. Mainly useful to compute unreleased commits.
-
branch
(Head
) –Currently checked out branch.
-
default_branch
(str
) –Default branch (or main branch), as checked out when cloning.
-
is_dirty
(bool
) –Whether the project is in a "dirty" state (uncommitted modifications).
-
latest_tag
(TagReference
) –Latest tag.
-
name
(str
) –Name of the project.
-
path
(Path
) –Path of the project on the file-system.
-
repo
(Repo
) –GitPython's
Repo
object. -
status
(Status
) –Status of the project.
-
status_line
(str
) –Status of the project, as a string.
DEFAULT_BRANCHES class-attribute
¤
Name of common default branches. Mainly useful to compute unreleased commits.
default_branch property
¤
default_branch: str
Default branch (or main branch), as checked out when cloning.
is_dirty property
¤
is_dirty: bool
Whether the project is in a "dirty" state (uncommitted modifications).
checkout ¤
Checkout branch, restore previous one when exiting.
unpulled ¤
Number of unpulled commits, per branch.
unpushed ¤
Number of unpushed commits, per branch.
Row dataclass
¤
Row(table: SelectableRowsDataTable, key: RowKey)
Bases: SelectableRow
A Devboard row.
Methods:
-
remove
–Remove row from the table.
-
select
–Select this row.
-
toggle_select
–Toggle-select this row.
-
unselect
–Unselect this row.
Attributes:
-
app
(App
) –Textual application.
-
checkbox
(Checkbox
) –Row checkbox.
-
data
(list
) –Row data (without checkbox).
-
index
(int
) –Row index.
-
next
(SelectableRow
) –Next row (down).
-
previous
(SelectableRow
) –Previous row (up).
-
project
(Project
) –Devboard project.
-
selected
(bool
) –Whether this row is selected.