RepositoryPython
remarshal-project

remarshal-project/remarshal

Convert between CBOR, JSON, MessagePack, TOML, and YAML 1.1 & 1.2

554sao
37fork
5issue
5lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: conversion

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: msgpack

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: messagepack

#1 Repository của tuần

🔄 Chuyển đổi đa định dạng dữ liệu mất mát với Remarshal

Remarshal là công cụ dòng lệnh hỗ trợ chuyển đổi giữa các định dạng CBOR, JSON, MessagePack, TOML, YAML (1.1 và 1.2) và cả Python code.

Remarshal cung cấp lệnh remarshal cùng các lệnh ngắn gọn như yaml2json, json2toml... để chuyển đổi, định dạng lại và kiểm tra lỗi cú pháp. Ngoài ra, công cụ còn hỗ trợ biến đổi dữ liệu bằng ngôn ngữ Starlark.

✨ Điểm nổi bật

  • Hỗ trợ nhiều định dạng: CBOR, JSON, MessagePack, TOML, YAML 1.1/1.2 và Python code.
  • Chuyển đổi mất mật: theo mặc định, chuyển đổi không mất thông tin; lỗi nếu không thể.
  • Chế độ stringify (-k): chuyển đổi an toàn kiểu boolean, null, ngày giờ sang chuỗi khi cần.
  • Biến đổi Starlark: hỗ trợ biến đổi dữ liệu bằng script Starlark qua --starlark hoặc --starlark-file.
  • Cài đặt linh hoạt: hỗ trợ cài đặt qua pipx, uv hoặc chạy trực tiếp bằng pipx run remarshal.
  • Đầu ra Python: hỗ trợ xuất dữ liệu dưới dạng code Python bằng repr hoặc pprint.pformat.

💡 Vì sao đáng chú ý

Remarshal nổi bật với tính năng chuyển đổi mất mát theo mặc định, giúp tránh mất thông tin khi chuyển đổi giữa các định dạng. Điều này giúp người dùng yên tâm rằng dữ liệu sau khi chuyển đổi vẫn giữ nguyên giá trị gốc. Ngoài ra, hỗ trợ YAML 1.1 và 1.2 cùng với khả năng biến đổi dữ liệu bằng Starlark giúp linh hoạt xử lý dữ liệu phức tạp.


#Converter #JSON #TOML #YAML #CLI #Python #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryGo
urfave/cli

A declarative, simple, fast, and fun package for building command line tools in Go

24.3k
Nov 16, 2026
RepositoryGo
sl1pm4t/k2tf

Kubernetes YAML to Terraform HCL converter

1.2k
Dec 12, 2025
RepositoryPython
RVC-Project/Retrieval-based-Voice-Conversion-WebUI

Easily train a good VC model with voice data <= 10 mins!

39.4k
Aug 4, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

487.0k
Dec 2, 2026
RepositoryTypeScript
n8n-io/n8n

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

212.9k
Dec 2, 2026
RepositoryShell
ohmyzsh/ohmyzsh

🙃 A delightful, community-driven framework for managing your zsh configuration. Built by 2,600+ contributors, with hundreds of plugins (git, rails, laravel, node, python, docker, kubectl, aws, and more), themes to spice up your terminal, and automatic updates to keep your command line feeling like home.

191.0k
Nov 29, 2026
RepositoryPython
httpie/cli

🥧 HTTPie CLI — modern, user-friendly command-line HTTP client for the API era. JSON support, colors, sessions, downloads, plugins & more.

38.8k
Dec 17, 2024
RepositoryPython
FujiwaraChoki/MoneyPrinterV2

Automate the process of making money online.

32.7k
Sep 15, 2026
RepositoryPython
msgspec/msgspec

A fast serialization and validation library, with builtin support for JSON, MessagePack, YAML, and TOML

4.2k
Dec 1, 2026