Links
AI / Agents
Developers
gdtest-display-funding
Test funding config with all fields.
Funding org with name, roles, homepage, and ROR identifier. Footer or sidebar should show the funding acknowledgment.
Source files
gdtest_display_funding/
__init__.py
"""Package testing funding config with all fields."""
__all__ = ["fund", "report"]
def fund(project: str, amount: float) -> dict:
"""Record funding for a project.
Parameters
----------
project : str
The name of the project to fund.
amount : float
The funding amount in dollars.
Returns
-------
dict
A dictionary with funding details.
Examples
--------
>>> fund("research", 50000.0)
{'project': 'research', 'amount': 50000.0}
"""
return {"project": project, "amount": amount}
def report(grant_id: str) -> str:
"""Generate a funding report for a grant.
Parameters
----------
grant_id : str
The identifier of the grant.
Returns
-------
str
A formatted funding report.
Examples
--------
>>> report("NSF-001")
'Grant NSF-001: active'
"""
return f"Grant {grant_id}: active"README.md
# gdtest-display-funding Test funding config with all fields.
great-docs.yml
funding:
name: National Science Foundation
roles:
- Funder
- Copyright holder
homepage: "https://nsf.gov"
ror: "https://ror.org/021nxhr62"