Version 0.15.6
New Features
-
Zef repo has been open-sourced under the Apache License 2.0.
-
New traversal syntax...
- Instead of
z >> RT.Something
usez | Out[RT.Something]
- Instead of
z >> L[RT.Something]
usez | Outs[RT.Something]
- Instead of
z < RT.Something
usez | in_rel[RT.Something]
- Instead of
-
The traversal operators now can take another argument to filter on the target/source, e.g.
z | Outs[RT.Something][ET.SpecificEntity]
. -
PyPI packages. Zef can now be installed via
pip install zef
. -
General movement from predicates to types:
is_a
compares its argument to a type.- Use
Is[<predicate>]
to create a type which is the set of all items where the predicate is satisfied.
-
pattern matching with the
match
operator. match_apply has been retired, if a constant value is to be returned this is easily done with a lambda. -
the
Pattern
function: returns a ValueType and allows very concise pattern matching on dictionaries and lists. -
Preliminary Windows support.
New ZefOps
-
schema
to show delegate entities/relations. Note: the output of this is not stable and likely to change. -
events
on aZefRef
replacesinstantiation_tx
,termination_tx
, etc... -
events
on aTX
replacesinstantiated
,terminated
, etc... -
absorbed
andwithout_absorbed
manipulate parameters absorbed into ZefOps.
Bug Fixes
- Many fixes!
Deprecations
-
New traversal syntax with ZefOps.
- The operators
>>
,<<
,>
,<
are deprecated along with theL[...]
andO[...]
syntax. - Instead use the operators like the following examples for single values:
z | Out[...]
returns a ZefRef to the target of the outgoing relationz | In[...]
z | out_rel[...]
the ZefRef to the relation itself is returnedz | in_rel[...]
- Multiple relations are obtained with a plural form of these operators:
z | Outs[...]
for multary relations (a list of ZefRef is returned)z | Ins[...]
z | out_rels[...]
z | in_rels[...]
- The operators
-
match_apply
is retired formatch
.