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

Uploaded Source

Built Distribution

fluke_api-0.3.0-py3-none-any.whl (30.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for fluke-api-0.3.0.tar.gz
Algorithm Hash digest
SHA256 5d428cfce1f2308784392f099a540ec078144b7c0f12b7f707d548a6a3c2a310
MD5 db4de16378dd4be78385fbc7d8e29838
BLAKE2b-256 c9c16ea01f7523fd5b35db477ed4f620d6e542e38b8871b0dc407bbc5781c8fe

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for fluke_api-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 46ba14738431226caf60ad64f45f979fed1138401a312dbb51c2b1c8c4a37b35
MD5 2b4d0e1ec17284ff6a0d1b04bf123e34
BLAKE2b-256 54ca11fc281cabce4e776c48519884c8b717cd36436a028b832ee7f3c24230fa

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page