Skip to content

Use formatter filetype as dataset_formatters key#2369

Open
webb-ben wants to merge 2 commits into
geopython:masterfrom
webb-ben:safe-formatter
Open

Use formatter filetype as dataset_formatters key#2369
webb-ben wants to merge 2 commits into
geopython:masterfrom
webb-ben:safe-formatter

Conversation

@webb-ben

Copy link
Copy Markdown
Member

Overview

  • Use the formatter format f as the lookup key in external dataset_formatters
  • Add bytes as return type for BaseFormatter

Related Issue / discussion

Additional information

This PR largely aims to simplify how the formatters are selected by options for a dictionary instead of list comprehension.

Dependency policy (RFC2)

  • I have ensured that this PR meets RFC2 requirements

Updates to public demo

Contributions and licensing

(as per https://github.com/geopython/pygeoapi/blob/master/CONTRIBUTING.md#contributions-and-licensing)

  • I'd like to contribute [feature X|bugfix Y|docs|something else] to pygeoapi. I confirm that my contributions to pygeoapi will be compatible with the pygeoapi license guidelines at the time of contribution
  • I have already previously agreed to the pygeoapi Contributions and Licensing Guidelines

webb-ben added 2 commits June 23, 2026 09:22
Cleanup implementation and reduce amount of list comprehension
@webb-ben webb-ben requested a review from a team June 23, 2026 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant