{"id":21876962,"url":"https://github.com/noaa-oar-arl/Fyaml","last_synced_at":"2025-07-21T06:32:09.176Z","repository":{"id":264884358,"uuid":"894274516","full_name":"noaa-oar-arl/Fyaml","owner":"noaa-oar-arl","description":"Very lightweight native fortran yaml parser ","archived":false,"fork":false,"pushed_at":"2025-06-23T14:23:39.000Z","size":1611,"stargazers_count":4,"open_issues_count":7,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-23T15:24:29.076Z","etag":null,"topics":["fortran","yaml","yaml-parser"],"latest_commit_sha":null,"homepage":"","language":"Fortran","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/noaa-oar-arl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-11-26T04:15:54.000Z","updated_at":"2025-06-23T14:23:38.000Z","dependencies_parsed_at":"2025-01-08T20:26:28.618Z","dependency_job_id":"9903a56a-268a-4d1e-a4ea-d51a7ba97e4c","html_url":"https://github.com/noaa-oar-arl/Fyaml","commit_stats":null,"previous_names":["bbakernoaa/fyaml","noaa-oar-arl/fyaml"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/noaa-oar-arl/Fyaml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noaa-oar-arl%2FFyaml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noaa-oar-arl%2FFyaml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noaa-oar-arl%2FFyaml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noaa-oar-arl%2FFyaml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noaa-oar-arl","download_url":"https://codeload.github.com/noaa-oar-arl/Fyaml/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noaa-oar-arl%2FFyaml/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266253614,"owners_count":23900053,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fortran","yaml","yaml-parser"],"created_at":"2024-11-28T08:07:26.077Z","updated_at":"2025-07-21T06:32:04.166Z","avatar_url":"https://github.com/noaa-oar-arl.png","language":"Fortran","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fyaml - A Modern Fortran YAML Parser\n\nA lightweight YAML parser written in modern Fortran that supports nested structures, sequences, and various data types. Designed for scientific computing applications needing configuration file support.\n\n## Features\n\n- Parse YAML files into native Fortran data structures\n- Support for strings, integers, floats, booleans, and null values\n- Handle nested mappings and sequences\n- Comment parsing\n- Debug logging with configurable levels\n- Dot notation access for nested values\n- Memory safe with pointer management\n\n## Requirements\n\n- Fortran 2008 compliant compiler (gfortran 8.0+ or ifort 19.0+)\n- CMake 3.12+\n\n## Installation\n\n```bash\ngit clone https://github.com/yourusername/fyaml.git\ncd fyaml\nmkdir build \u0026\u0026 cd build\ncmake ..\nmake\nmake install\n```\n\n## Usage\n1) Create a YAML configuration file:\n\n```yaml\ndatabase:\n  host: localhost\n  port: 5432\n  credentials:\n    username: admin\n    password: secret\n```\n\n2) Parse it in your Fortran code:\n```fortran\nprogram example\n    use fyaml\n    type(fyaml_doc) :: doc\n    type(yaml_value) :: val\n\n    call doc%load(\"config.yaml\")\n    val = doc%root%get(\"database.host\")\n    print *, \"Host:\", val%str_val\nend program\n```\n\n## Project Structure\n```\n.\n├── CMakeLists.txt\n├── src/\n│   ├── yaml_types.f90    ! Core type definitions\n│   ├── yaml_parser.f90   ! YAML parsing implementation\n│   └── fyaml.f90         ! High-level interface\n├── tests/\n│   └── test_example.yaml\n└── example/\n    ├── example.yaml\n    └── yaml_example.f90\n```\n\n## Testing\n```bash\ncd build\nctest --output-on-failure\n```\n\n## Documentation\nDocumentation is generated using FORD. To build:\n\n```bash\nford .ford\n```\n\n## License\nGNU General Public License v3.0\n\n## Contributing\nContributions welcome! Please read CONTRIBUTING.md for guidelines.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoaa-oar-arl%2FFyaml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoaa-oar-arl%2FFyaml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoaa-oar-arl%2FFyaml/lists"}