Skip to content

Conversation

@Mjboothaus
Copy link

@Mjboothaus Mjboothaus commented Jan 27, 2026

Adds mojo-yaml v0.1.2 - YAML Lite parser for Mojo covering ~80% of common YAML patterns.

Version update: v0.1.1 → v0.1.2 includes pre-commit whitespace fixes.

First submission following the modular-community standards guide.

Package features:

  • Native YAML configuration file parsing with zero Python dependencies
  • Nested mappings and sequences (any depth)
  • Inline list-mappings pattern (- name: value\n key2: value2)
  • All scalar types (int, float, bool, null, string)
  • Comments anywhere in files
  • Mixed structures (lists in dicts, dicts in lists)
  • Type-safe value access (as_string(), as_int(), as_bool())
  • 91/91 tests passing (100% test coverage)
  • Works with real configuration files (pre-commit configs, custom YAMLs)
  • Performance: 9-21x faster than Python's pyyaml
  • Comprehensive benchmarks comparing to Python baseline

Limitations:

  • Multi-word strings require quotes ("Hello world" not Hello world)
  • Flow-style syntax not supported (use block style instead)
  • Reader-only in v0.1.x (YAML writer planned for future releases)

Use case: Perfect for configuration files, CI/CD pipelines, build systems, and any Mojo application needing YAML configuration support. Covers ~80% of common YAML usage patterns.

Compliance checklist:

  • ✅ Package image (157KB PNG) for builds.modular.com
  • ✅ CodeQL scanning enabled
  • ✅ CodeQL badge in README
  • ✅ Apache-2.0 license
  • ✅ Git tag v0.1.2 exists
  • ✅ recipe.yaml with proper structure
  • ✅ test_package.mojo validates core functionality
  • ✅ Comprehensive README and documentation
  • ✅ Performance benchmarks included

Repository: https://github.com/DataBooth/mojo-yaml
CodeQL: CodeQL

Mjboothaus and others added 3 commits January 27, 2026 17:31
First submission following modular-community standards:
- Package image included for builds.modular.com
- CodeQL scanning enabled in repository
- Recipe with proper structure and metadata
- Test package validates core functionality

mojo-yaml provides YAML Lite parsing covering ~80% of common patterns,
with 91/91 tests passing and 9-21x better performance than Python's pyyaml.
Remove trailing spaces from blank lines to pass pre-commit checks.

Co-Authored-By: Warp <agent@warp.dev>
Version bump includes whitespace fixes from pre-commit.

Co-Authored-By: Warp <agent@warp.dev>
@Mjboothaus Mjboothaus changed the title Add mojo-yaml v0.1.1 Add mojo-yaml v0.1.2 Jan 28, 2026
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