Metadata-Version: 2.1
Name: mycloud-cli
Version: 1.2.3
Summary: myCloud Command Line Interface
Home-page: https://github.com/thomasgassmann/mycloud-cli
Author: Thomas Gassmann
Author-email: thomas.gassmann@hotmail.com
License: MIT
Keywords: swisscom cloud cli mycloud
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Description-Content-Type: text/markdown
Requires-Dist: aiohttp (==3.4.2)
Requires-Dist: appdirs (==1.4.3)
Requires-Dist: asn1crypto (==1.0.1)
Requires-Dist: async-timeout (==3.0.1)
Requires-Dist: atomicwrites (==1.3.0)
Requires-Dist: attrs (==19.2.0)
Requires-Dist: beautifulsoup4 (==4.6.3)
Requires-Dist: better-exceptions (==0.2.2)
Requires-Dist: blinker (==1.4)
Requires-Dist: brotlipy (==0.7.0)
Requires-Dist: browsermob-proxy (==0.8.0)
Requires-Dist: certifi (==2019.9.11)
Requires-Dist: cffi (==1.12.3)
Requires-Dist: chardet (==3.0.4)
Requires-Dist: click (==6.7)
Requires-Dist: colorama (==0.4.1)
Requires-Dist: cryptography (==2.3.1)
Requires-Dist: cursor (==1.3.4)
Requires-Dist: entrypoints (==0.3)
Requires-Dist: filelock (==3.0.4)
Requires-Dist: flask (==1.0.2)
Requires-Dist: h11 (==0.7.0)
Requires-Dist: h2 (==3.1.1)
Requires-Dist: halo (==0.0.28)
Requires-Dist: hpack (==3.0.0)
Requires-Dist: hurry.filesize (==0.9)
Requires-Dist: hyperframe (==5.2.0)
Requires-Dist: idna (==2.7)
Requires-Dist: importlib-metadata (==0.23)
Requires-Dist: inject (==3.5.4)
Requires-Dist: itsdangerous (==1.1.0)
Requires-Dist: jeepney (==0.4.1)
Requires-Dist: jinja2 (==2.10.3)
Requires-Dist: kaitaistruct (==0.8)
Requires-Dist: keyring (==19.2.0)
Requires-Dist: ldap3 (==2.5.2)
Requires-Dist: log-symbols (==0.0.14)
Requires-Dist: lxml (==4.4.1)
Requires-Dist: markupsafe (==1.1.1)
Requires-Dist: mitmproxy (==4.0.4)
Requires-Dist: more-itertools (==7.2.0)
Requires-Dist: multidict (==4.5.2)
Requires-Dist: packaging (==19.2)
Requires-Dist: passlib (==1.7.1)
Requires-Dist: pluggy (==0.13.0)
Requires-Dist: py (==1.8.0)
Requires-Dist: pyasn1 (==0.4.7)
Requires-Dist: pycparser (==2.19)
Requires-Dist: pycryptodome (==3.9.0)
Requires-Dist: pyopenssl (==18.0.0)
Requires-Dist: pyparsing (==2.2.2)
Requires-Dist: pyperclip (==1.6.5)
Requires-Dist: pytest (==5.2.1)
Requires-Dist: python-dateutil (==2.6.1)
Requires-Dist: requests (==2.20.0)
Requires-Dist: ruamel.yaml (==0.15.100)
Requires-Dist: secretstorage (==3.1.1)
Requires-Dist: selenium (==3.11.0)
Requires-Dist: six (==1.12.0)
Requires-Dist: sortedcontainers (==2.0.5)
Requires-Dist: spinners (==0.0.23)
Requires-Dist: tabulate (==0.8.2)
Requires-Dist: termcolor (==1.1.0)
Requires-Dist: tornado (==5.1.1)
Requires-Dist: urllib3 (==1.24.3)
Requires-Dist: urwid (==2.0.1)
Requires-Dist: wcwidth (==0.1.7)
Requires-Dist: werkzeug (==0.16.0)
Requires-Dist: wsproto (==0.11.0)
Requires-Dist: yarl (==1.3.0)
Requires-Dist: zipp (==0.6.0)

# Swisscom myCloud CLI

![](https://github.com/thomasgassmann/mycloud-cli/workflows/.github/workflows/release.yml/badge.svg)

Swisscom myCloud CLI is a command line utility to manage all your data stored on Swisscom myCloud. To achieve this, it uses the public Swisscom myCloud API.

# Requirements
Any Keyring Backend comptatible with the [keyring](https://pypi.org/project/keyring) package is required in order to store the credentials for myCloud.

# Usage

## Docker

```
docker run -it mycloud-cli
```

## Manual Installation

First, make sure `chromium` and `chromedriver` are installed and in your `$PATH`.

To install or upgrade myCloud CLI via pip, run:

```
python3 -m pip install --user --upgrade mycloud-cli
```

After installing myCloud CLI make sure to add the certificates for mitmproxy to your CA in your OS / Chromium. Run:

```
mycloud auth cert
```

to download the required certificate.

## Authenticate
To use myCloud CLI, run `mycloud [command]`.
Then authenticate yourself with your username and password using:

```
mycloud auth login
```

To get a list of all available commands, run:

```
mycloud -h
```

# Setup local environment

First, clone the repository:

```
git clone https://github.com/thomasgassmann/mycloud-cli
```

Then install all dependencies via pipenv:

```
cd mycloud-cli
export PIPENV_VENV_IN_PROJECT="enabled"
pipenv install --python 3.6
pipenv shell
```

Then run `python -m mycloud auth cert` to install the certificates as described in the [Installation](#Installation) section.


