Skip to content

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 21 Dec 02:16

μcharm 0.4.0

Network requests and templating just got a whole lot easier—plus 10 new stdlib modules to round out your toolkit.

✨ What's New

  • Add fetch module for HTTP/HTTPS requests with built-in TLS support via BearSSL
    • get(), post(), request() functions with intuitive APIs
    • Built-in CA certificate bundle; set verify=False for development
  • Add template module with Jinja-like syntax for dynamic content generation
    • Variables: {{name}}, dotted access {{user.email}}
    • Conditionals: {% if condition %}...{% end %}
    • Loops: {% for item in items %}...{% end %}
  • Expand stdlib with sqlite3, zipfile, tarfile, gzip, xml.etree.ElementTree, dataclasses, hmac, toml, tempfile improvements, and subprocess enhancements

⚡ Improvements

  • sqlite3 now supports full DB-API subset with cursor objects and fetchall()
  • zipfile and tarfile add read-only archive support for common workflows
  • xml.etree.ElementTree gains fromstring(), find(), and findall() for XML parsing
  • dataclasses module now includes field(), asdict(), and astuple() helpers
  • subprocess.run() improved with capture_output parameter for easier output handling
  • toml module supports nested table parsing with loads() and dumps()

📚 Documentation

  • Updated README with fetch and template examples
  • Expanded AI instruction templates with 50+ module reference
  • Full compatibility report: 1,663/1,663 tests passing

Installation

# Install
brew install ucharmdev/tap/ucharm

# Or upgrade
brew upgrade ucharm

Full Changelog: v0.3.0...v0.4.0