معرفی شرکت ها


cloud-storage-utility-0.0.1a9


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

A multi-platform cloud storage utility
ویژگی مقدار
سیستم عامل -
نام فایل cloud-storage-utility-0.0.1a9
نام cloud-storage-utility
نسخه کتابخانه 0.0.1a9
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Nick Kahlor
ایمیل نویسنده nkahlor@gmail.com
آدرس صفحه اصلی https://github.com/AAInternal/cloud-storage-utility
آدرس اینترنتی https://pypi.org/project/cloud-storage-utility/
مجوز -
# Cloud Storage Utility [![codecov](https://codecov.io/gh/nkahlor/cloud-storage-utility/branch/main/graph/badge.svg?token=JBO83HCV0T)](https://codecov.io/gh/nkahlor/cloud-storage-utility) [![PyPI pyversions](https://img.shields.io/pypi/pyversions/cloud-storage-utility.svg)](https://pypi.python.org/pypi/cloud-storage-utility/) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) [![Open Source? Yes!](https://badgen.net/badge/Open%20Source%20%3F/Yes%21/blue?icon=github)](https://github.com/Naereen/badges/) A Python based cloud utility to help you transfer files to and from multiple cloud providers under one CLI/API. ## Supported Cloud Platforms | Platform | Implemented | | :-------: | :------------- | | IBM Cloud | ✅ | | Azure | ❌ Coming Soon! | | AWS | ❌ Coming Soon! | ## Installation ```shell pip install cloud-storage-utility ``` ## Usage #### Configuration To configure this application, you have to set a few environment variables. ``` # Currently we only support 'ibm' CSUTIL_CLOUD_PLATFORM= # You only need to set these if you intend to use ibm CSUTIL_IBM_API_KEY= CSUTIL_IBM_AUTH_ENDPOINT= CSUTIL_IBM_COS_ENDPOINT= # If `CSUTIL_IBM_API_KEY` is undefined, we will attempt to use `IBMCLOUD_API_KEY` instead. ``` #### CLI Commands You can use `csutil --help` to see an exhaustive list of options and commands ``` csutil delete <bucket name> <filename> csutil list-remote <bucket name> csutil pull <bucket name> <destination directory> <cloud-files> csutil push <bucket name> <local-files> ``` Here are some examples ``` csutil delete example-bucket *.txt csutil delete example-bucket *.txt *.md example.csv csutil list-remote example-bucket csutil pull example-bucket ./dat * csutil pull example-bucket ./dat tmp.txt tmp2.txt *.md csutil push example-bucket ./dat/* csutil push example-bucket/test_directory ./dat/tmp.txt ./dat/tmp2.txt ``` ### Python API Example usage ```python import asyncio from cloud_storage_utility.file_broker import FileBroker config = IbmConfiguration( auth_endpoint="http://ibm-endpoint.com/auth", cos_endpoint="https://ibm-endpoint.com/cos", api_key="<api-key>" ) async def main(): async with FileBroker(config) as file_broker: file_broker.download_files( bucket_name="test-bucket", local_directory="./data", file_names=["tmp.txt1", "tmp2.txt"], ) if __name__ == "__main__": asyncio.run(main()) ``` Check out the [API docs](https://nkahlor.github.io/cloud-storage-utility/cloud_storage_utility.html) for many more detailed examples! ## Developing Locally We use `pipenv` to manage packages. If you don't already have it installed, make sure to install it via `pip install pipenv`. We also use `python-dotenv` for managing env vars for local development, so you can create a .env file for yourself and set the relevant vars that way. ```shell # You can use any python version, but I recommend 3.9 pipenv --python 3.9 # Gotta use the pre flag because of the code formatter pipenv install --dev --pre ``` Now you're all set to start writing code! https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-object-operations


نیازمندی

مقدار نام
- click
- python-dotenv
- aiohttp
- xmltodict
- tqdm
- colorama
- setuptools-scm


زبان مورد نیاز

مقدار نام
>=3.6 Python


نحوه نصب


نصب پکیج whl cloud-storage-utility-0.0.1a9:

    pip install cloud-storage-utility-0.0.1a9.whl


نصب پکیج tar.gz cloud-storage-utility-0.0.1a9:

    pip install cloud-storage-utility-0.0.1a9.tar.gz