Skip to main content

ncc_cli

NextCloud / ownCloud Command-Line Client

Overview

Just a basic command-line client for NextCloud and ownCloud based servers. This is my project with Python so if you notice any bugs or would like to provide help, please let me know!

Installation

pip:

ncc_cli has been added to pip, so you can simply execute the following:

pip install ncc-cli

manual:

Alternatively, you can install the utility manually, but first you will need to install the following dependancies:

humanize tzdm yaspin texttable pyocclient

Now you have all of the dependancies installed, you can simply clone the ncc_cli git repo and execute the following:

./setup.py

Usage

Syntax: ncc [command]
ls (-l) <dir> - lists dir contents
put - [local file] <dest remote dir> - uploads file
putdir - [local dir] <dest remote dir> - uploads dir
get - [remote file] <dest local dir> - downloads file
getdir - [remote dir] <dest local dir> - downloads dir as zip
mkdir - [dir name] - creates new dir
rm - [dir/file name] - deletes files or dirs
mkshare - [dir/file name] - creates new share w/link
lsshare - [dir name] - lists shares in dir
rmshare - [dir/file name] - deletes share
cp - [source] [destination] - copies files on server
mv - [source] [destination] - moves files on server

To Do

  • Find a way of tracking upload progress and counting with tqdm instead of using indefinite spinner.

Libraries

This utility uses the pyocclient library and a couple of other libraries for visual indications, human readable numbers, progress bars etc. Much thanks to all of the developers of their respective libraries.

pyocclient - https://github.com/owncloud/pyocclient

humanize - https://github.com/jmoiron/humanize

tqdm - https://github.com/tqdm/tqdm

yaspin - https://github.com/pavdmyt/yaspin

texttable - https://github.com/foutaise/texttable

License

This utility is licensed under the GNU GPLv3 https://www.gnu.org/licenses/gpl-3.0.en.html

Metadata

Release files for ncc-cli 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ncc-cli 0.0.7
File Size Uploaded Provenance Actions
ncc_cli-0.0.7.tar.gz 7.8 kB Without provenance Details for ncc_cli-0.0.7.tar.gz

Release files / ncc_cli-0.0.7.tar.gz

Download URL ncc_cli-0.0.7.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
cc238ed0c33fd5a77bcf1d8245a5017865d9a4e28d4065865a92e72187395734
BLAKE2b-256 checksum
How to use checksums
1b2b072639f574fc6d89afed8de181fc0dc0429593631a7da6336b80d7729e7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Security for ncc-cli 0.0.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page