gitconductor.cli module¶
Main CLI arguments.
gitconductor.gitlab module¶
GitLab-related constructs.
- class gitconductor.gitlab.GitlabGroup(**data)[source]¶
Bases:
GitlabInstanceA GitLab group convenience class.
- ...
- property count: int¶
How many repositories are in the full group structure?
- Returns:
Total number of projects in all recursive subgeoups.
- Return type:
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class gitconductor.gitlab.GitlabInstance(**data)[source]¶
Bases:
BaseModelA GitLab generic instance convenience class.
- ...
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class gitconductor.gitlab.GitlabProject(**data)[source]¶
Bases:
GitlabInstanceA GitLab project convenience class.
- property is_python_package: bool¶
Is this project a Python package?
- Returns:
Is this project a Python package?
- Return type:
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- pyinstall(pm='uv pip', editable=False, index=None)[source]¶
Install Python package.
- Return type:
- Returns:
None
- property python_package_name: str¶
What is the name of the Python package?
- Returns:
Name of the Python package.
- Return type:
gitconductor.output module¶
Outputs for user info.
gitconductor.visualise module¶
Visualisation options.
- gitconductor.visualise.access(group, explicit=False, maxdepth=None)[source]¶
Make an access visualisation.
- Parameters:
group (
GitlabGroup) – GitLab group instance.explicit (
bool) – Explicitly show all members of all groups/projects?
- Return type:
- Returns:
None
- gitconductor.visualise.access_matrix(group, maxdepth=None)[source]¶
Make an access matrix visualisation.
- Parameters:
group (
GitlabGroup) – GitLab group instance.
- Return type:
- Returns:
None
- gitconductor.visualise.build_access(group, rows=None, depth=0, unique_ids=None, explicit=False, root=PosixPath('.'), maxdepth=None, colour_only=False)[source]¶
Iteratively build access lists.
- Parameters:
group (
GitlabGroup|GitlabProject) – GitLab group instance.depth (
int) – Depth inside the tree.unique_ids (
list[str] |None) – List of all unique IDs printedexplicit (
bool) – Explicitly show all members of all groups/projects?root (
Path) – Top level directory.colour_only (
bool) – Only return the colour code for the access level.
- Returns:
New row to print to table.
- Return type:
- gitconductor.visualise.build_table(group, rows=None, depth=0, maxdepth=None)[source]¶
Iteratively build the table.
- gitconductor.visualise.build_tree(group, tree)[source]¶
Iteratively build the tree.
- Parameters:
group (
GitlabGroup) – GitLab group instance.tree (
Tree) – Initial Tree instance.
- Returns:
Updated Tree instance.
- Return type:
Tree
- gitconductor.visualise.table(group, maxdepth=None)[source]¶
Make a table visualisation.
- Parameters:
group (
GitlabGroup) – GitLab group instance.
- Return type:
- Returns:
None
- gitconductor.visualise.tree(group)[source]¶
Make a tree visualisation.
- Parameters:
group (
GitlabGroup) – GitLab group instance.- Return type:
- Returns:
None
Module contents¶
GitLab wrapper.