nushell/crates
Jack Wright ff8831318d
Added polars struct-encode-json, providing the ability to encode structs as json (#15678)
# Description
This PR introduces `polars struct-encode-json`. This exposes the ability
to encode struct columns as json strings. This is useful when converting
things to formats like CSV that do not support complex types.

```nushell
> ❯ : [[id person]; [1 {name: "Bob", age: 36}] [2 {name: "Betty", age: 63}]]
                    | polars into-df -s {id: i64, person: {name: str, age: u8}}
                    | polars select id (polars col person | polars struct-json-encode | polars as encoded) 
                    | polars collect
╭───┬────┬───────────────────────────╮
│ # │ id │          encoded          │
├───┼────┼───────────────────────────┤
│ 0 │  1 │ {"age":36,"name":"Bob"}   │
│ 1 │  2 │ {"age":63,"name":"Betty"} │
╰───┴────┴───────────────────────────╯
```

# User-Facing Changes
* Added `polars struct-encode-json`, providing the ability to encode
structs as json
2025-05-06 13:58:51 -07:00
..
nu_plugin_custom_values Bump to 0.104.1 dev version (#15669) 2025-04-29 23:33:10 -04:00
nu_plugin_example Bump to 0.104.1 dev version (#15669) 2025-04-29 23:33:10 -04:00
nu_plugin_formats Bump to 0.104.1 dev version (#15669) 2025-04-29 23:33:10 -04:00
nu_plugin_gstat Bump to 0.104.1 dev version (#15669) 2025-04-29 23:33:10 -04:00
nu_plugin_inc refactor Value::follow_cell_path to reduce clones and return Cow (#15640) 2025-05-01 09:43:57 -05:00
nu_plugin_javascript create nu_plugin_node_example.js (#15482) 2025-04-11 21:18:46 +02:00
nu_plugin_nu_example Bump to 0.104.1 dev version (#15669) 2025-04-29 23:33:10 -04:00
nu_plugin_polars Added polars struct-encode-json, providing the ability to encode structs as json (#15678) 2025-05-06 13:58:51 -07:00
nu_plugin_python Bump to 0.104.1 dev version (#15669) 2025-04-29 23:33:10 -04:00
nu_plugin_query Bump to 0.104.1 dev version (#15669) 2025-04-29 23:33:10 -04:00
nu_plugin_stress_internals Bump to 0.104.1 dev version (#15669) 2025-04-29 23:33:10 -04:00
nu-cli docs: fix available fields in history import command (#15686) 2025-05-03 08:09:58 -05:00
nu-cmd-base Bump to 0.104.1 dev version (#15669) 2025-04-29 23:33:10 -04:00
nu-cmd-extra refactor Value::follow_cell_path to reduce clones and return Cow (#15640) 2025-05-01 09:43:57 -05:00
nu-cmd-lang Bump to 0.104.1 dev version (#15669) 2025-04-29 23:33:10 -04:00
nu-cmd-plugin Bump to 0.104.1 dev version (#15669) 2025-04-29 23:33:10 -04:00
nu-color-config Bump to 0.104.1 dev version (#15669) 2025-04-29 23:33:10 -04:00
nu-command Environment-aware help for open and save (#15651) 2025-05-03 17:07:39 -05:00
nu-derive-value Bump to 0.104.1 dev version (#15669) 2025-04-29 23:33:10 -04:00
nu-engine refactor Value::follow_cell_path to reduce clones and return Cow (#15640) 2025-05-01 09:43:57 -05:00
nu-explore Bump to 0.104.1 dev version (#15669) 2025-04-29 23:33:10 -04:00
nu-glob Bump to 0.104.1 dev version (#15669) 2025-04-29 23:33:10 -04:00
nu-json Bump to 0.104.1 dev version (#15669) 2025-04-29 23:33:10 -04:00
nu-lsp refactor Value::follow_cell_path to reduce clones and return Cow (#15640) 2025-05-01 09:43:57 -05:00
nu-parser Bump to 0.104.1 dev version (#15669) 2025-04-29 23:33:10 -04:00
nu-path Bump to 0.104.1 dev version (#15669) 2025-04-29 23:33:10 -04:00
nu-plugin Bump to 0.104.1 dev version (#15669) 2025-04-29 23:33:10 -04:00
nu-plugin-core Bump to 0.104.1 dev version (#15669) 2025-04-29 23:33:10 -04:00
nu-plugin-engine Bump to 0.104.1 dev version (#15669) 2025-04-29 23:33:10 -04:00
nu-plugin-protocol Bump to 0.104.1 dev version (#15669) 2025-04-29 23:33:10 -04:00
nu-plugin-test-support Added polars struct-encode-json, providing the ability to encode structs as json (#15678) 2025-05-06 13:58:51 -07:00
nu-pretty-hex Bump to 0.104.1 dev version (#15669) 2025-04-29 23:33:10 -04:00
nu-protocol feat(table): Add new 'single' table mode (#15672) 2025-05-01 15:30:57 -05:00
nu-std Environment-aware help for open and save (#15651) 2025-05-03 17:07:39 -05:00
nu-system Bump to 0.104.1 dev version (#15669) 2025-04-29 23:33:10 -04:00
nu-table feat(table): Add new 'single' table mode (#15672) 2025-05-01 15:30:57 -05:00
nu-term-grid Bump to 0.104.1 dev version (#15669) 2025-04-29 23:33:10 -04:00
nu-test-support Bump to 0.104.1 dev version (#15669) 2025-04-29 23:33:10 -04:00
nu-utils feat(table): Add new 'single' table mode (#15672) 2025-05-01 15:30:57 -05:00
nuon Bump to 0.104.1 dev version (#15669) 2025-04-29 23:33:10 -04:00
README.md Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00

Nushell core libraries and plugins

These sub-crates form both the foundation for Nu and a set of plugins which extend Nu with additional functionality.

Foundational libraries are split into two kinds of crates:

  • Core crates - those crates that work together to build the Nushell language engine
  • Support crates - a set of crates that support the engine with additional features like JSON support, ANSI support, and more.

Plugins are likewise also split into two types:

  • Core plugins - plugins that provide part of the default experience of Nu, including access to the system properties, processes, and web-connectivity features.
  • Extra plugins - these plugins run a wide range of different capabilities like working with different file types, charting, viewing binary data, and more.