zeff.recordgenerator package

Submodules

zeff.recordgenerator.generate module

Zeff record generation.

zeff.recordgenerator.generate.generate(record_url_generator, record_builder)[source]

Generate a set of records from a record builder.

Parameters
  • record_url_generator – A generator that will produce URLs from which records may be built. These URLs are are unmodified when given to record_builder.

  • record_builder – An callable object that will accept a single URL parameter and return a Zeff record type (e.g. zeff.record.Record or zeff.temporalrecord.TemporalRecord).

zeff.recordgenerator.urlgenerators module

Zeff collection of URL Generators.

zeff.recordgenerator.urlgenerators.entry_generator(dirpath, allow=<function <lambda>>)[source]

URL generator of entries in a path.

Given a directory this will generate a URL to each entry in the directory.

Parameters
  • dirpath – The URL to the directory. This may be an explicit or implicit file URL.

  • allow – A filter that accepts a pathlib.Path and returns True if it is acceptable: i.e. if only files are wanted then the using lambda p: p.is_file() would filter out any non-files.

zeff.recordgenerator.urlgenerators.file_generator(dirpath)[source]

URL generator of files in a path.

Given a directory this will generate a URL to each file in the directory.

Parameters

dirpath – The URL to the directory. This may be an explicit or implicit file URL.

zeff.recordgenerator.urlgenerators.directory_generator(dirpath)[source]

URL generator of directories in a path.

Each directory in the dirpath will be generated as a file scheme URL.

Parameters

dirpath – The URL to the directory. This may be an explicit or implicit file URL.

Module contents

Zeff Client Record Generation subsystem.