You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The address profile's readers (schema-dist serial 77): element_address(address) and parse_ow_link(text) (onlyworlds.address), as the TypeScript SDK's elementAddress and parseOwLink. One element is named by one triple, the world's id, the type word and the element's id, in three spellings: the site's address https://www.onlyworlds.com/w/<world id>/<type>/<id>, ow://<type>/<id> inside a world and ow://<world id>/<type>/<id> across worlds; a world by itself is https://www.onlyworlds.com/w/<world id> or ow://<world id>. Each may carry a moment (@<step>, one whole step of the world's time line) and a lens (?lens=<id>). element_address takes a mapping (form, world, type, id, lens, moment) or an AddressReading and writes the canonical string: lowercase, the world's id and never its slug, the moment before the lens. parse_ow_link reads one string whole and gives an AddressReading (form, world, world_is_slug, type, id, lens, moment, canonical); a slug in the site's address reads, and is never canonical. Both raise AddressError (a ValueError), whose reason is one of the profile's ten names (AddressReason), the first check that fails in the profile's order. The parser is written out, not urllib.parse: nothing is percent-decoded and case is ASCII case. A mapping with a key it does not know is a TypeError. The fixture's 133 cases are its test, and the two packages give the same answer on every input (compared on 54,018 random and adversarial inputs, no disagreement). Schema repinned to schema-dist v0.33.0-dist.77 (from dist.76; same canonical 00.33.00, no schema file moved).