When serializing something, it is useful to be able to deserialize it back into a useful object... ksuid doesn't seem to allow this currently
I'd expect something like the following to work
def test_ksuid_deserializable():
from ksuid import ksuid
id = ksuid()
serialized_id = str(id)
id2 = ksuid(serialized_id)
# not the same object in memory
assert id is not id2
# but they serialize to the same value
assert str(id) == str(id2)
When serializing something, it is useful to be able to deserialize it back into a useful object... ksuid doesn't seem to allow this currently
I'd expect something like the following to work