Skip to main content

Move your data around

Project description

Python Version MIT License Coverage

Fluke Logo

What is Fluke?

Fluke is a Python package that is primarily to be used as a data transfer tool. By utilizing Fluke, moving your data between two remote locations can be done in just a matter of seconds from the comfort of your own machine!

Installation

You can start using Fluke by installing it via pip. Note that fluke requires Python >= 3.9.

pip install fluke-api

Usage Example

In this example, we are going to transfer an entire directory residing within a remote machine to the cloud, more specifically, to an Amazon S3 bucket.

First things first, we need to be able to authenticate with both the remote machine and AWS. In order to achieve this, we will be importing from fluke.auth:

from fluke.auth import RemoteAuth, AWSAuth

# This object will be used to authenticate
# with the remote machine.
rmt_auth = RemoteAuth.from_password(
    hostname="host",
    username="user",
    password="password")

# This object will be used to authenticate
# with AWS.
aws_auth = AWSAuth(
    aws_access_key_id="aws_access_key",
    aws_secret_access_key="aws_secret_key")

Next, we just need to import from fluke.storage so that we gain access to any necessary resources and perform the data transfer:

from fluke.storage import RemoteDir, AWSS3Dir

with (
    RemoteDir(auth=rmt_auth, path='/home/user/dir') as rmt_dir,
    AWSS3Dir(auth=aws_auth, bucket="bucket", path='dir', create_if_missing=True) as aws_dir
):
    rmt_dir.transfer_to(dst=aws_dir, recursively=True)

And that's basically it!

You can learn more about Fluke by visiting the Fluke Documentation Page.

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

fluke-api-0.2.0.tar.gz (35.9 kB view details)

Uploaded Source

Built Distribution

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

fluke_api-0.2.0-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

Details for the file fluke-api-0.2.0.tar.gz.

File metadata

  • Download URL: fluke-api-0.2.0.tar.gz
  • Upload date:
  • Size: 35.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for fluke-api-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e410f94c2063c65fb49edcf28c99b144be84fbb7970a79b894dc479ed4c1c0cc
MD5 1641c1406c8c344f305bc0e7459e7ab5
BLAKE2b-256 e47ba60089e9935180403c678455f0fbdaa868a2dcd05022c4aec163cbdc08d8

See more details on using hashes here.

File details

Details for the file fluke_api-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: fluke_api-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 25.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for fluke_api-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c3349cd11dd459e8239947b7e78f2cf175954e01bde3d77650257f5012c9a675
MD5 5113a662567d6362351242639eb3e85b
BLAKE2b-256 d9438d6e97a6150dffe74cad6a1bef83c1d6ff4f1c3373c41585258cd7c18d78

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