compass.pipeline.collection.persistence.write_collection_manifest_shard#

async write_collection_manifest_shard(shard_dir, collection_info)[source]#

Write one jurisdiction collection manifest shard to disk

Parameters:
  • shard_dir (path-like) – Directory where the jurisdiction shard JSON should be written.

  • collection_info (dict) – Serialized collection metadata for one jurisdiction.

Returns:

pathlib.Path – Path to the written shard file.