Databricks FileStore Uploader
A convenience tool for uploading local directories to the DBFS FileStore
Upload Local Files
This tool uploads specified source directories to specified paths in the DBFS FileStore.
Create a file adjacent to main.py called input.yml, and copy the following:
host : <workspace-url>
token: <user-access-token>
# THIS TOOL CREATES OR OVERWRITES THE TARGET FOLDER!
# Folder paths don't start with './'
# Folder paths don't end with '/'
payloads:
some-local-folder : some-filestore-folder
some-other-local-folder : some-other/filestore-folder
# ...
Replace <user-access-token> with your token in databricks, and replace the example text under payloads: one or more "source : destination" pairs.
These local source directory paths are relative to main.py.
You can then upload all files contained in the local source folders to their specified destinations with:
./main.py
Though make sure you have PyYAML installed.
Verify Uploads
In a databricks notebook, you can verify uploads with:
display(dbutils.fs.ls("/FileStore/some-filestore-folder"))
Please Note❗
This tool CREATES or OVERWRITES it's target dbfs:/FileStore path. Only target folders that are meant to be overwritten, or don't exist.
Metadata
Release files for databricks-filestore-uploader 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| databricks-filestore-uploader-0.1.0.tar.gz | 5.2 kB | Without provenance | Details for databricks-filestore-uploader-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| databricks_filestore_uploader-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for databricks_filestore_uploader-0.1.0-py3-none-any.whl |
Total release size: 11.3 kB
Release files / databricks-filestore-uploader-0.1.0.tar.gz
| Download URL | databricks-filestore-uploader-0.1.0.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
16727f608685930b8779d37ffedb280c63deb2eefaad1ed1e7b1d40b3d9cbe1d
|
|
BLAKE2b-256 checksum How to use checksums |
ef77c1574df8de55abfa0acfc02ca2a5941399cac27f4874e6e3ba78db46763b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.0 CPython/3.10.4 Darwin/21.6.0
|
Release files / databricks_filestore_uploader-0.1.0-py3-none-any.whl
| Download URL | databricks_filestore_uploader-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7750872c3e292e917bad107eeff46322d154383554b8821278ef978de3cc275e
|
|
BLAKE2b-256 checksum How to use checksums |
b6fc5dd60bdd4478c2fe8ed43c9e47114d8b89747412ddb1768984f7305269c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.0 CPython/3.10.4 Darwin/21.6.0
|
Security for databricks-filestore-uploader 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.