Skip to main content

A package used for downloading and processing files from multiple habitats.

Project description

Xtract SDK v0.0.5

Packaging: Creating file group objects for downstream data packaging.

Here we have a number of data elements that need to be defined.

Group: a collection of files and extractor to be executed on the collection of files. Groups need not have mutually exclusive sets of files. A group is also intitialized with an empty metadata dictionary.

from xtract_sdk.packagers import Group, Family, FamilyBatch

group1 = Group(files=[{'path': 12388550508, 'mdata': {}}], parser='image'}

group2 = Group(files=[{'path': 14546663235, 'mdata': {}}], parser='image'}

Family: a collection of groups such that all files in the group are mutually exclusive. This grouping is useful for parallelizing the download and extraction of separate groups that may contain the same files. You can easily add Group objects to a family as follows:

fam = Family()

fam.add_group(group1) fam.add_group(group2)

FamilyBatch: If the number of groups in a family is generally small, you may want to batch the families to increase application performance. In order to do this, you may add any number of families to a FamilyBatch that enables users to iterate over families. The family_batch can be directly read by the downloader that will batch-fetch all files therein.

fam_batch=FamilyBatch()

fam_batch.add_family(fam)

Downloaders: coming soon!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xtract_sdk-0.0.6-py3-none-any.whl (25.6 kB view details)

Uploaded Python 3

File details

Details for the file xtract_sdk-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: xtract_sdk-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 25.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.7

File hashes

Hashes for xtract_sdk-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 c55cedf87e06f2f068dafe00168deaa42fca082cce01d42c96ddfb9b03563168
MD5 2a7a4aed68fe596dc04507af2f98e593
BLAKE2b-256 bceceab5aa3c63d6f328b78812e6bd9a1a7e9dcc1c2125e1a0222f3e3906fa0e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page