Projects
Bases: MermaidBase
A class for handling MERMAID projects.
The Project class is responsible for fetching and searching projects from MERMAID. It provides methods to list your projects and search all projects based on specified criteria.
Attributes:
Name | Type | Description |
---|---|---|
PROJECT_STATUS_OPEN |
int
|
The project status value representing open projects. |
Source code in seasnake/projects.py
my_projects()
Get a list of your projects.
This method retrieves a list of your projects.
Returns:
Type | Description |
---|---|
DataFrame
|
DataFrame |
Examples:
from seasnake import MermaidAuth, Project
auth = MermaidAuth()
project = Project(token=auth.get_token())
print(project.my_projects())
Source code in seasnake/projects.py
search_projects(name=None, countries=None, tags=None, include_test_projects=False)
Searches all MERMAID projects and filters results based on the specified criteria.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
Optional[str]
|
A name or list of names to search for in projects. Defaults to None. |
None
|
countries |
Union[None, str, List[str]]
|
A country to search for in projects. Defaults to None. |
None
|
tags |
Union[None, str, List[str]]
|
A tag or list of tags to search for in projects. Defaults to None. |
None
|
include_test_projects |
bool
|
Whether to include test projects in the search results. Defaults to False. |
False
|
Returns:
Type | Description |
---|---|
DataFrame
|
DataFrame |
Examples:
from seasnake import Project
project = Project()
print(project.search_projects(tags=["WCS Fiji""]))