5 个仓库
Converts class instances back into plain JavaScript objects for serialization or transmission.
Distinct from Object Transformation: Distinct from Object Transformation: specifically converts class instances to plain objects, not general property manipulation on arbitrary objects.
Explore 5 awesome GitHub repositories matching data & databases · Class Instance to Plain Object Converters. Refine with filters or upvote what's useful.
class-transformer is a TypeScript library that converts plain JavaScript objects into typed class instances and back, using decorators to define transformation rules. It serves as a decorator-based object transformer, JSON deserialization library, and property transformation framework, enabling type-safe serialization and deserialization of class instances. The library distinguishes itself through comprehensive property filtering and mapping capabilities. It supports excluding properties by default, by prefix, by operation (serialization or deserialization), or by explicit marking, as well as
Converts class instances back into plain JavaScript objects for serialization or transmission.
MobX State Tree is a structured, tree-based state management library for JavaScript applications that combines typed model definitions with reactive snapshots and patch-based change tracking. It provides a reactive state container with runtime and compile-time type safety, where application state is defined as a tree of typed models with collocated actions, computed views, and lifecycle hooks for predictable state mutations. The library is built around an action-centric mutation model that encapsulates all state changes within named functions that directly modify the tree, supported by genera
Converts a model tree into an immutable plain JavaScript object for transport or serialization.
attrs is a Python library that automatically generates initialization, representation, equality, hashing, and ordering methods from declarative class attribute definitions. At its core, it provides a class decorator metaprogramming framework that intercepts class creation to rewrite the class body, producing dunder methods without manual boilerplate. The library includes a comprehensive attribute validation toolkit with built-in validators for type checks, range constraints, regex matching, length limits, and logical composition of validation rules. The library distinguishes itself through it
Converts class instances into plain dictionaries for serialization or inspection.
该库提供了一种使用 ES6 类和装饰器构建用户界面组件的结构模式。它是一个 TypeScript 组件库,允许开发者通过将组件定义为类而不是使用标准选项对象,在 Vue 框架内管理状态和逻辑。 该项目利用 TypeScript 装饰器将类属性和方法转换为框架运行时所需的标准格式。这种方法实现了一种基于类的组件架构,利用 TypeScript 提高了类型安全性和代码组织性。 该系统通过基于原型的逻辑提取和基于装饰器的映射,将基于类的定义转换为纯 JavaScript 对象。它进一步通过将类实例成员映射到组件的响应式状态系统来同步数据更新。
Converts class-based component definitions into plain JavaScript objects to maintain compatibility with the framework's internal options system.
Orange3 is a visual data mining platform that provides an interactive canvas for building data analysis workflows without writing code. At its core, it offers a widget-based visual programming environment where users connect configurable components to perform data preprocessing, machine learning model training, statistical evaluation, and interactive visualization. The platform is built on NumPy-backed data tables with domain descriptors that define variable names, types, and roles, and includes a lazy SQL query proxy for working with database tables without loading all data into memory. The
Transforms individual data instances between different domain schemas with automatic value conversion.