{"id":16431789,"url":"https://github.com/drkostas/cloud-filemanager","last_synced_at":"2025-07-10T16:35:48.463Z","repository":{"id":62562823,"uuid":"453083184","full_name":"drkostas/cloud-filemanager","owner":"drkostas","description":"A high-level filemanager utility for cloud services. Currently only Dropbox is supported.","archived":false,"fork":false,"pushed_at":"2022-01-30T01:47:38.000Z","size":27,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T01:23:17.267Z","etag":null,"topics":["cloud","cloud-file-system","cloud-manager","cloud-storage","dropbox","dropbox-api"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/cloud-filemanager/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drkostas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-28T13:45:34.000Z","updated_at":"2024-12-05T19:01:17.000Z","dependencies_parsed_at":"2022-11-03T15:18:01.052Z","dependency_job_id":null,"html_url":"https://github.com/drkostas/cloud-filemanager","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drkostas%2Fcloud-filemanager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drkostas%2Fcloud-filemanager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drkostas%2Fcloud-filemanager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drkostas%2Fcloud-filemanager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drkostas","download_url":"https://codeload.github.com/drkostas/cloud-filemanager/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238418208,"owners_count":19468865,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloud","cloud-file-system","cloud-manager","cloud-storage","dropbox","dropbox-api"],"created_at":"2024-10-11T08:32:33.569Z","updated_at":"2025-02-12T05:31:14.456Z","avatar_url":"https://github.com/drkostas.png","language":"Python","readme":"# Cloud Filemanager\n\n[![Downloads](https://static.pepy.tech/personalized-badge/cloud-filemanager?period=total\u0026units=international_system\u0026left_color=grey\u0026right_color=red\u0026left_text=Downloads)](https://pepy.tech/project/cloud-filemanager)\n[![GitHub license](https://img.shields.io/badge/license-Apache-blue.svg)](https://github.com/drkostas/cloud-filemanager/master/LICENSE)\n[![CircleCI](https://circleci.com/gh/drkostas/cloud-filemanager/tree/master.svg?style=svg)](https://circleci.com/gh/drkostas/cloud-filemanager/tree/master)\n\n## About \u003ca name = \"about\"\u003e\u003c/a\u003e\n\nA high-level filemanager utility for cloud services. Currently, only Dropbox \nis supported. [PYPI Package](https://pypi.org/project/cloud-filemanager/)\n\n## Table of Contents\n\n+ [Using the library](#using)\n    + [Installing and using the library](#install_use)\n    + [Examples of usage](#examples)\n+ [Manually install the library](#manual_install)\n    + [Prerequisites](#prerequisites)\n    + [Install the requirements](#installing_req)\n    + [Run the Unit Tests](#unit_tests)\n+ [Continuous Integration](#ci)\n+ [Update PyPI package](#pypi)\n+ [License](#license)\n\n## Using the library \u003ca name = \"using\"\u003e\u003c/a\u003e\n\nFor a detailed usage example see \n[example.py](https://github.com/drkostas/cloud-filemanager/master/example.py).\n\nYou will need to create an Api key for your Dropbox account. \n[Reference 1](http://99rabbits.com/get-dropbox-access-token/), \n[Reference 2](https://dropbox.tech/developers/generate-an-access-token-for-your-own-account) \n\n### Installing and using the library \u003ca name = \"install_use\"\u003e\u003c/a\u003e\n\nFirst, you need to install the library using pip:\n\n```shell\n$ pip install cloud_filemanager\n```\n\nThen, import it and initialize it like so:\n\n```python\nfrom cloud_filemanager import DropboxCloudManager\n\ncloud_conf = {'type': 'dropbox', 'config': {'api_key': 'your api key'}}\ndbx = DropboxCloudManager(config=cloud_conf)\n```\n\nIf you want to use a yml file to load the configuration, you can use the `CloudConfig` class:\n```python\nfrom cloud_filemanager import CloudConfig\nimport os\n\nconfig_path = str(os.path.join('confs', 'conf.yml'))\nconfig = CloudConfig(config_src=config_path)\ncloud_conf = config.get_cloud_config()\n```\n\nTwo example YAML files can be found in \nthe [confs folder](https://github.com/drkostas/cloud-filemanager/blob/master/confs).\nFor more details on how to use this YAML configuration loader see \nthis [Readme](https://github.com/drkostas/yaml-config-wrapper/blob/master/README.md).\n\n### Examples of usage \u003ca name = \"examples\"\u003e\u003c/a\u003e\n\nThe currently supported operations are the following:\n- Upload, Download, Delete Files\n- List directories\n\n**Upload**\n```python\nwith open('my_file.txt', 'rb') as fp:\n    file_to_upload = fp.read()\ndbx.upload_file(file_bytes=file_to_upload, upload_path='/tests/my_file.txt', write_mode='overwrite')\n```\n**Download**\n```python\ndbx.download_file(frompath='/tests/my_file.txt', tofile='my_file_downloaded.txt')\n```\n**Delete**\n```python\ndbx.delete_file('/tests/my_file.txt')\n```\n**List Files**\n```python\ndbx.ls('/tests/')\n```\n\nAll of these examples can be found \nin [example.py](https://github.com/drkostas/cloud-filemanager/tree/blob/master/example.py).\n\n## Manually install the library \u003ca name = \"manual_install\"\u003e\u003c/a\u003e\n\nThese instructions will get you a copy of the project up and running on your local machine for\ndevelopment and testing purposes.\n\n### Prerequisites \u003ca name = \"prerequisites\"\u003e\u003c/a\u003e\n\nYou need to have a machine with\n[anaconda](https://docs.conda.io/projects/conda/en/latest/user-guide/install/index.html) installed and\nany Bash based shell (e.g. zsh) installed.\n\n```ShellSession\n\n$ conda -V\nconda 4.10.1\n\n$ echo $SHELL\n/usr/bin/zsh\n\n```\n\n### Install the requirements \u003ca name = \"installing_req\"\u003e\u003c/a\u003e\n\nAll the installation steps are being handled by\nthe [Makefile](https://github.com/drkostas/cloud-filemanager/blob/master/Makefile).\n\nFirst, modify the python version (`min_python`) and everything else you need in\nthe [settings.ini](https://github.com/drkostas/cloud-filemanager/blob/master/settings.ini).\n\nThen, execute the following commands:\n\n```ShellSession\n$ make create_env\n$ conda activate cloud_filemanager\n$ make dist\n```\n\nNow you are ready to use and modify the library.\n\n### Run the Unit Tests \u003ca name = \"unit_tests\"\u003e\u003c/a\u003e\n\nIf you want to run the unit tests, execute the following command:\n\n```ShellSession\n$ make tests\n```\n\n## Continuous Integration \u003ca name = \"ci\"\u003e\u003c/a\u003e\n\nFor the continuous integration, the \u003cb\u003eCircleCI\u003c/b\u003e service is being used. For more information you can\ncheck the [setup guide](https://circleci.com/docs/2.0/language-python/).\n\nFor any modifications, edit\nthe [circleci config](https://github.com/drkostas/cloud-filemanager/blob/master/.circleci/config.yml).\n\n## Update PyPI package \u003ca name = \"pypi\"\u003e\u003c/a\u003e\n\nThis is mainly for future reference for the developers of this project. First,\ncreate a file called `~/.pypirc` with your pypi login details, as follows:\n\n```\n[pypi]\nusername = your_pypi_username\npassword = your_pypi_password\n```\n\nThen, modify the python version (`min_python`), project status (`status`), release version (`version`) \nand everything else you need in\nthe [settings.ini](https://github.com/drkostas/cloud-filemanager/blob/master/settings.ini).\n\nFinally, execute the following commands:\n\n```ShellSession\n$ make create_env\n$ conda activate cloud_filemanager\n$ make release\n```\n\nFor a dev release, change the `testing_version` and instead of `make release`, run `make release_test`.\n\n## License \u003ca name = \"license\"\u003e\u003c/a\u003e\n\nThis project is licensed under the Apache License - see\nthe [LICENSE](https://github.com/drkostas/cloud-filemanager/blob/master/LICENSE) file for details.\n\n\u003ca href=\"https://www.buymeacoffee.com/drkostas\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/default-orange.png\" alt=\"Buy Me A Coffee\" height=\"41\" width=\"174\"\u003e\u003c/a\u003e\n","funding_links":["https://www.buymeacoffee.com/drkostas"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrkostas%2Fcloud-filemanager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrkostas%2Fcloud-filemanager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrkostas%2Fcloud-filemanager/lists"}