A python package for interacting with SAFE File transfer API
Project description
safe-file-example
Description
A python package for interacting with SAFE File transfer API
Current Functionalities
- Generate a JWT Token
- Import a File
- Export a File
Prerequisite
- Having minimum Python 3.12 installed in your system and setting up a Python Virtual Environment.
Workflow
- Activate your Python Virtual Environment,
- Then run the following command.
pip install safe-file-example
- To see all the available commands and options run the following
safe-file-example
Usage:
$ safe-file-example [OPTIONS] COMMAND [ARGS]...
Options:
--help: Show this message and exit.
Commands:
get-token: Get and store access tokenimport-file: Import a fileexport-file: Export a fileinteractive: Run interactive mode
safe-file-example get-token
Get and store access token
Usage:
$ safe-file-example get-token [OPTIONS]
Options:
--help: Show this message and exit.
safe-file-example import-file
Import a file
Usage:
$ safe-file-example import-file [OPTIONS]
Options:
--server TEXT: Server name--file-path FILE: Path to file to import-i, --interactive: Run import interactively--help: Show this message and exit.
safe-file-example export-file
Export a file
Usage:
$ safe-file-example export-file [OPTIONS]
Options:
--server TEXT: Server name--filename TEXT: Filename to export--output-dir DIRECTORY: Output directory-i, --interactive: Run export interactively--help: Show this message and exit.
safe-file-example interactive
Run interactive mode
Usage:
$ safe-file-example interactive [OPTIONS]
Options:
--help: Show this message and exit.
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
safe_file_example-0.2.0.tar.gz
(13.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file safe_file_example-0.2.0.tar.gz.
File metadata
- Download URL: safe_file_example-0.2.0.tar.gz
- Upload date:
- Size: 13.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd81f247e0ed34efaca944d30ec9fe791bba14a79c894c567704637a6d7471d3
|
|
| MD5 |
51ebbb01c8e229a6d4a0f1394da81d9b
|
|
| BLAKE2b-256 |
0c4d343ab2e03202b92cfb8990a5ac988a77397dfbf9878bb34fb11341088cb9
|
File details
Details for the file safe_file_example-0.2.0-py3-none-any.whl.
File metadata
- Download URL: safe_file_example-0.2.0-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56a8c60cafb8e99c2b3e2b9a879a0a2bb8850a92893c73688dcdbe27da1a9cc0
|
|
| MD5 |
9508127591dcc50fbb152991386e326c
|
|
| BLAKE2b-256 |
85f0db9d247c6802a032bbeac3d3f58cb31c5defb06207666d595b7938397ffb
|