You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by di...@apache.org on 2023/02/02 18:16:02 UTC

[airavata-mft] branch master updated: Removing samples as they are not maintained anymore

This is an automated email from the ASF dual-hosted git repository.

dimuthuupe pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-mft.git


The following commit(s) were added to refs/heads/master by this push:
     new d677a59  Removing samples as they are not maintained anymore
d677a59 is described below

commit d677a591260da99bfbb20cbd31632d3758340e3b
Author: Dimuthu Wannipurage <di...@gmail.com>
AuthorDate: Thu Feb 2 13:15:54 2023 -0500

    Removing samples as they are not maintained anymore
---
 python-sdk/samples/README.md | 29 -----------------------------
 python-sdk/samples/sample.py | 42 ------------------------------------------
 2 files changed, 71 deletions(-)

diff --git a/python-sdk/samples/README.md b/python-sdk/samples/README.md
deleted file mode 100644
index 9065b23..0000000
--- a/python-sdk/samples/README.md
+++ /dev/null
@@ -1,29 +0,0 @@
-<!--
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License.  You may obtain a copy of the License at
-
-  http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing,
-software distributed under the License is distributed on an
-"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-KIND, either express or implied.  See the License for the
-specific language governing permissions and limitations
-under the License.
--->
-
-### Instructions to run samples
-
-* Start MFT Components
-* Run following commands
-```
-virtualenv -p python3 env
-source env/bin/activate
-pip install airavata-mft-sdk
-python3 sample.py
-```
\ No newline at end of file
diff --git a/python-sdk/samples/sample.py b/python-sdk/samples/sample.py
deleted file mode 100644
index 6c75454..0000000
--- a/python-sdk/samples/sample.py
+++ /dev/null
@@ -1,42 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-from airavata_mft_sdk import mft_client
-from airavata_mft_sdk import MFTTransferApi_pb2
-from airavata_mft_sdk.s3 import S3Storage_pb2
-
-client = mft_client.MFTClient()
-
-
-
-create_request = S3Storage_pb2.S3StorageCreateRequest(bucketName = "bucket",
-                                                           region = "us-east",
-                                                           storageId = "some_id",
-                                                           endpoint = "https://endpoint.url",
-                                                           name = "s3-storage")
-
-print(client.s3_storage_api.createS3Storage(create_request))
-
-transfer_request = MFTTransferApi_pb2.TransferApiRequest(sourceResourceId="source_id",
-                                                         sourceType = "S3",
-                                                         sourceToken = "source_token",
-                                                         destinationResourceId = "dest_id",
-                                                         destinationType = "S3",
-                                                         destinationToken = "dest_token")
-print(client.transfer_api.submitTransfer(transfer_request))
-