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

Uploaded Source

Built Distribution

fluke_api-0.1.0-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for fluke-api-0.1.0.tar.gz
Algorithm Hash digest
SHA256 79ec0ebc7ce4e4a46f49df09d81c0a6c7c119f928819ad30e706c77fc6d19c58
MD5 b04553e2dc2d3311f956f7af89987be0
BLAKE2b-256 bd79086ef96b777c3159f0c730a62296559b2113cb57467701e62e11b882e63e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for fluke_api-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3ff057e3f84ec6f80e9efcb1d920c2db41c117d667327176f84c7568e80ff22a
MD5 358f9820e921253178d2c7fff16d536e
BLAKE2b-256 7cefb813dd6c5fca3d98492a56f0de683d7c316ef64205c1677e5311449687c6

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