{"id":26100545,"url":"https://github.com/djoezeke/yamlfy","last_synced_at":"2025-08-21T03:09:50.267Z","repository":{"id":281279456,"uuid":"944779936","full_name":"djoezeke/yamlfy","owner":"djoezeke","description":"A Lightweight Yaml  file parser and emmiter written in pure c.","archived":false,"fork":false,"pushed_at":"2025-03-08T01:35:38.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-08T02:24:33.951Z","etag":null,"topics":["c","config","configuration","cpp","deserialize","emmiter","parser","serializer","yaml","yaml-parser"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/djoezeke.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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}},"created_at":"2025-03-08T00:24:17.000Z","updated_at":"2025-03-08T01:35:42.000Z","dependencies_parsed_at":"2025-03-08T05:15:22.874Z","dependency_job_id":null,"html_url":"https://github.com/djoezeke/yamlfy","commit_stats":null,"previous_names":["djoezeke/yamlfy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djoezeke%2Fyamlfy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djoezeke%2Fyamlfy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djoezeke%2Fyamlfy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djoezeke%2Fyamlfy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/djoezeke","download_url":"https://codeload.github.com/djoezeke/yamlfy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242729460,"owners_count":20175945,"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":["c","config","configuration","cpp","deserialize","emmiter","parser","serializer","yaml","yaml-parser"],"created_at":"2025-03-09T17:39:22.803Z","updated_at":"2025-03-09T17:39:23.416Z","avatar_url":"https://github.com/djoezeke.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MyYAML 📄\n\nMyYAML is a simple C library for creating, manipulating, and printing YAML data structures. It supports scalar values, sequences, and mappings.\n\n## Features ✨\n\n- Create YAML scalar values\n- Create YAML sequences\n- Create YAML mappings\n- Add items to sequences\n- Add key-value pairs to mappings\n- Print YAML values\n- Pretty print YAML values to a string\n- Read YAML files into `YamlValue` structures\n- Write `YamlValue` structures to YAML files\n- Free YAML values\n\n## Files 📂\n\n- `yaml.c`: Implementation of the YAML library\n\n## Usage 🚀\n\n### Creating and Printing YAML Values\n\nTo create and print YAML values, you can use the functions provided in `yaml.c`. Here is an example:\n\n````c\n#include \"yaml.c\"\n\nint main()\n{\n    // Create a YAML mapping\n    Yaml *root = yaml_create_mapping();\n    yaml_mapping_add(root, \"name\", yaml_create_scalar(\"John Doe\"));\n    yaml_mapping_add(root, \"age\", yaml_create_scalar(\"30\"));\n\n    // Create a YAML sequence and add it to the mapping\n    Yaml *hobbies = yaml_create_sequence();\n    yaml_sequence_add(hobbies, yaml_create_scalar(\"reading\"));\n    yaml_sequence_add(hobbies, yaml_create_scalar(\"swimming\"));\n    yaml_sequence_add(hobbies, yaml_create_scalar(\"coding\"));\n    yaml_mapping_add(root, \"hobbies\", hobbies);\n\n    // Print the YAML value\n    yaml_print(root, 0);\n\n    // Pretty print the YAML value\n    yaml_pretty_print(root, 0);\n\n    // Free the YAML value\n    yaml_free(root);\n\n    return 0;\n}# MyYAML 📄\n\nMyYAML is a simple C library for creating, manipulating, and printing YAML data structures. It supports scalar values, sequences, and mappings.\n\n## Features ✨\n\n- Create YAML scalar values\n- Create YAML sequences\n- Create YAML mappings\n- Add items to sequences\n- Add key-value pairs to mappings\n- Print YAML values\n- Free YAML values\n\n## Files 📂\n\n- `yaml.c`: Implementation of the YAML library\n- `csv.cpp`: Implementation of a CSV parser\n- `mycsv.hpp`: Header file for CSV and YAML related classes and functions\n- `csvconfig.hpp`: Configuration header for CSV parser (currently empty)\n- `yaml.cpp`: C++ implementation of the YAML library\n\n## Usage 🚀\n\n### Creating and Printing YAML Values\n\nTo create and print YAML values, you can use the functions provided in `yaml.c`. Here is an example:\n\n```c\n#include \"yaml.c\"\n\nint main()\n{\n    // Create a YAML mapping\n    YamlValue *root = yaml_create_mapping();\n    yaml_mapping_add(root, \"name\", yaml_create_scalar(\"John Doe\"));\n    yaml_mapping_add(root, \"age\", yaml_create_scalar(\"30\"));\n\n    // Create a YAML sequence and add it to the mapping\n    YamlValue *hobbies = yaml_create_sequence();\n    yaml_sequence_add(hobbies, yaml_create_scalar(\"reading\"));\n    yaml_sequence_add(hobbies, yaml_create_scalar(\"swimming\"));\n    yaml_sequence_add(hobbies, yaml_create_scalar(\"coding\"));\n    yaml_mapping_add(root, \"hobbies\", hobbies);\n\n    // Print the YAML value\n    yaml_print(root, 0);\n\n    // Free the YAML value\n    yaml_free(root);\n\n    return 0;\n}\n````\n\n## License 📜\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjoezeke%2Fyamlfy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdjoezeke%2Fyamlfy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjoezeke%2Fyamlfy/lists"}