Skip to main content

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:

  • token: Get and store access token
  • import-file: Import a file
  • export-file: Export a file
  • interactive: Run interactive mode

safe-file-example token

Get and store access token

Usage:

$ safe-file-example 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


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.1.0.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

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

safe_file_example-0.1.0-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file safe_file_example-0.1.0.tar.gz.

File metadata

  • Download URL: safe_file_example-0.1.0.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for safe_file_example-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9c3749da2f8813b60a7ac70596d7594d8a1af5eb6ed8f210c3614ea9da222bb4
MD5 bc076fc1b8082976d69c5ed86fda57ca
BLAKE2b-256 9dfcd26698315578bd47f746bd8b865fb621060b5a4a783eb7a17650bc11cdc2

See more details on using hashes here.

File details

Details for the file safe_file_example-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for safe_file_example-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 70f64330e0f1150ecc9dacac7421b5121b89f205d9311a6765b259892a17083d
MD5 0014c9e1e2ff59145bf920d1ec7ef9ab
BLAKE2b-256 6bbfef4cc558de48e03eeb820a3648db9e0e22e3636bc84b8c7c343c0d5b159b

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