forms
Native Form layer.
Module nu.forms.
Native Form layer.
A Form is what a fabric location holds (an Int, a Str, a Dict, a ToList) and the
fluent typed surface for building Nu over it. The base mixin Form and the
passthrough TypedNu live in nu.lang (re-exported here for convenience);
the sentinel predicates (IsEmpty / IsInvalid) live in nu.core.
Concrete primitive Forms live in primitives/, concrete collection Forms in
collections/ (with abstract contracts in collections/abc/).
Modules
| Module | What |
|---|---|
nu.forms.collections.abc | Generic collection interfaces and interactions. |
nu.lang.forms
Module nu.lang.forms.
Form and TypedNu - the type-wrapping layer.
| Name | Sort | Call | Meaning |
|---|---|---|---|
| TypedNu | scalar_query | TypedNu() | Transparent ScalarQuery passthrough carrying a python type tag T. |
primitives.any_
Module nu.forms.primitives.any_.
Any - dynamic/unknown type interface.
| Name | Sort | Call | Meaning |
|---|---|---|---|
| Any | scalar_query | Any() | Wildcard interface. Full operator surface, no promise about the runtime type. |
primitives.bool_
Module nu.forms.primitives.bool_.
Bool - boolean interface.
| Name | Sort | Call | Meaning |
|---|---|---|---|
| Bool | scalar_query | Bool() | Boolean interface. Logical + comparable. |
primitives.bytes_
Module nu.forms.primitives.bytes_.
Bytes - bytes interface.
| Name | Sort | Call | Meaning |
|---|---|---|---|
| Bytes | scalar_query | Bytes() | Bytes interface. Sliceable + comparable + logical + bytes methods. |
collections.dict_
Module nu.forms.collections.dict_.
Dict - dict interface.
| Name | Sort | Call | Meaning |
|---|---|---|---|
| Dict | scalar_query | Dict() | Dict interface. Mutable mapping + comparable. |
collections.views
Module nu.forms.collections.views.
Dict view interfaces - DictKeys, DictValues, DictItems.
| Name | Sort | Call | Meaning |
|---|---|---|---|
| DictItems | scalar_query | DictItems() | View of a Dict's (key, value) pairs, produced by dict.items(). |
| DictKeys | scalar_query | DictKeys() | View of a Dict's keys, produced by dict.keys(). |
| DictValues | scalar_query | DictValues() | View of a Dict's values, produced by dict.values(). |
primitives.sentinel_
Module nu.forms.primitives.sentinel_.
Sentinel interfaces - SentinelForm, EmptyForm, InvalidForm.
| Name | Sort | Call | Meaning |
|---|---|---|---|
| EmptyForm | scalar_query | EmptyForm() | Wraps EMPTY, the address-resolved-to-nothing sentinel. |
| InvalidForm | scalar_query | InvalidForm() | Wraps INVALID, the operation-not-applicable sentinel. |
| SentinelForm | scalar_query | SentinelForm() | Base for the sentinel interfaces, EmptyForm and InvalidForm. |
primitives.float_
Module nu.forms.primitives.float_.
Float - float interface.
| Name | Sort | Call | Meaning |
|---|---|---|---|
| Float | scalar_query | Float() | Float interface. Numeric + comparable + logical. |
collections.set_
Module nu.forms.collections.set_.
Set, FrozenSet - set interfaces.
| Name | Sort | Call | Meaning |
|---|---|---|---|
| FrozenSet | scalar_query | FrozenSet() | FrozenSet interface. Immutable set + comparable. |
| Set | scalar_query | Set() | Set interface. Mutable set + comparable. |
primitives.int_
Module nu.forms.primitives.int_.
Int - integer interface.
| Name | Sort | Call | Meaning |
|---|---|---|---|
| Int | scalar_query | Int() | Integer interface. Full numeric + comparable + logical + bitwise. |
collections.iterator_
Module nu.forms.collections.iterator_.
Iterator - lazy iterator interface.
| Name | Sort | Call | Meaning |
|---|---|---|---|
| Iterator | scalar_query | Iterator() | Lazy stream over another form's elements. |
collections.list_
Module nu.forms.collections.list_.
List - list interface.
| Name | Sort | Call | Meaning |
|---|---|---|---|
| List | scalar_query | List() | List interface. Mutable sequence + comparable. |
primitives.none_
Module nu.forms.primitives.none_.
None_ - none interface.
| Name | Sort | Call | Meaning |
|---|---|---|---|
| None_ | scalar_query | None_(source=None) | None interface. Logical only. |
primitives.str_
Module nu.forms.primitives.str_.
Str - string interface.
| Name | Sort | Call | Meaning |
|---|---|---|---|
| Str | scalar_query | Str() | String interface. Addable + sliceable + comparable + logical + string methods. |
collections.tuple_
Module nu.forms.collections.tuple_.
Tuple - tuple interface.
| Name | Sort | Call | Meaning |
|---|---|---|---|
| Tuple | scalar_query | Tuple() | Tuple interface. Immutable sequence + comparable. |