|
- import pasn1
- from medashare import cli
- import datetime
- import uuid
-
- persona = cli.Persona()
- persona.generate_key()
- cbr = persona.get_identity().uuid
- storename = 'sample.data.sqlite3'
- objst = cli.ObjectStore.load(storename)
- list(map(objst.loadobj,
- [
- {
- 'type': 'metadata',
- 'uuid': uuid.UUID('3e466e06-45de-4ecc-84ba-2d2a3d970e96'),
- 'created_by_ref': cbr,
- 'modified': datetime.datetime(2019, 5, 31, 14, 5, 3),
- 'dc:creator': [ 'John-Mark Gurney' ],
- 'hashes': [ 'sha256:91751cee0a1ab8414400238a761411daa29643ab4b8243e9a91649e25be53ada', 'sha512:7d5768d47b6bc27dc4fa7e9732cfa2de506ca262a2749cb108923e5dddffde842bbfee6cb8d692fb43aca0f12946c521cce2633887914ca1f96898478d10ad3f' ],
- 'lang': 'en'
- }
- ]
- ))
-
- persona.store('sample.persona.pasn1')
|