v0.4.0
μ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=Falsefor 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 %}
- Variables:
- 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(), andfindall()for XML parsing - dataclasses module now includes
field(),asdict(), andastuple()helpers - subprocess.run() improved with
capture_outputparameter for easier output handling - toml module supports nested table parsing with
loads()anddumps()
📚 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 ucharmFull Changelog: v0.3.0...v0.4.0