A library for generating the path to write files to in cloud storage
Project description
Path generator for dataplatform files in cloud storage
This library generates the path to write files to in cloud storage, partitioned into the prefix, source, optionally type, and then finally the day. Arguments:
- prefix: "the prefix of the cloud storage location of your files, usually the top level bucket
- source: the type of files to output.
- date: the execution date in isoformat
- type (Optional): a subset of source, if the source has multiples types
Example usage:
from pathgenerator import path
output_path = path.generate_path('gs://dataplatform-raw', 'salesforce', "2022-03-11T12:12:12+00:00", "account")
Output
gs://dataplatform-raw/source=salesforce/type=account/year=2022/month=3/day=11
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for dataplatform-path-generator-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f3a0c01018a1d5f4f3d056e21a8e5cc7a7038e0ba399f167656677145453327 |
|
MD5 | 0a083e0e128070168ad2a471ac12df61 |
|
BLAKE2b-256 | f759b85bb5e26f66a4ede5581bf2ad84210459ae0a9916fae5c62af85023f79c |