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.1.tar.gz (11.9 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.1-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: safe_file_example-0.1.1.tar.gz
  • Upload date:
  • Size: 11.9 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.1.tar.gz
Algorithm Hash digest
SHA256 dfa2f4f992161fe0959e58e0e940a814725fded7b95cfbefc6bb64151727b098
MD5 63d9e7b7fef0042a34fee73f2815558c
BLAKE2b-256 3521cf3b86cc350616562dcf2b3cbc2e98cb8a74ded85bd613d7ec70e6e876d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for safe_file_example-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bc03c859c32c9d965c6f96423c1955d105294b43eba61fbc0bda925e1b6e4a80
MD5 a75ba35616f31485c5c70ba2c8f6aa5d
BLAKE2b-256 ebf4fb90b3a6d3703f0eca906a6194dc5121cf855ad66dd15b81755deb04651c

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