d70-t / ipldstore

zarr backend store using IPLD datastructures
MIT License
6 stars 7 forks source link

Car reference fs #4

Closed d70-t closed 2 years ago

d70-t commented 2 years ago

This is a potential implementation for #2.

I don't yet know what a good interface would be. Currently it can be used to generate a reference filesystem from an existing car file as follows:

from ipldstore.car_reference_fs import car2reference_fs
carfilename = "test.car"
indexfilename = "index.car"
ref = car2reference_fs(carfilename)    
with open(indexfilename, "w") as reffile:    
    json.dump(ref, reffile)  
thewtex commented 2 years ago

@d70-t this is awesome!! I will test and follow-up on #2