Skip to main content

Liberty CLI is a user-facing command-line client for interacting with Librem One or another Liberty Deckplan Host (LDH).

Project description

Liberty CLI

project | code | tracker | pypi

Liberty CLI is a user-facing command-line client for interacting with Librem One or another Liberty Deckplan Host (LDH).

Dive into https://liberty.one for LDH design and development.

Installation

The preferred way to install Liberty CLI is with your package manager. The recommended package name is ldh-client. For example:

sudo apt install ldh-client # Debian-based

or

pipx install ldh-client # Python-based

Usage

For help and a list of available commands:

liberty --help

To add a tunnel connection to Network-Manager:

liberty setup tunnel
# you will be prompted for your Librem One/LDH credentials

Installation (from source)

If you'd prefer to run from source...

  1. Install Python 3.x and pipenv. (See https://docs.pipenv.org/install/ for a tutorial.)

  2. Install prerequisites:

     apt install libcairo2-dev libgirepository1.0-dev
    
  3. Get source:

     git clone https://source.puri.sm/liberty/tool/client.git ldh_client
    
  4. Install with pipenv:

     cd ldh_client
     pipenv install --dev -e .
    

Usage (from source)

cd ldh_client
pipenv run liberty --help
# using "pipenv run" avoids confusing the package and source installations

Build wheel package (and optionally upload)

Follow these instructions to build Liberty CLI as a Python package:

git clone https://source.puri.sm/liberty/tool/client.git ldh_client
cd ldh_client
pipenv install --dev
pipenv shell
# optionally edit default.strict.yaml
python setup.py sdist bdist_wheel

If everything works as expected you should end up with the files:

  • dist/ldh_client-<version>-py3-none-any.whl
  • dist/ldh_client-<version>.tar.gz

You can now optionally upload the created Python package to PyPI using twine:

twine upload dist/*

Sharing and contributions

Liberty CLI (LDH client)
https://source.puri.sm/liberty/tool/client
Copyright 2018-2020 Purism SPC
SPDX-License-Identifier: AGPL-3.0-or-later

Shared under AGPL-3.0-or-later. We adhere to the Community Covenant 1.0 without modification, and certify origin per DCO 1.1 with a signed-off-by line. Contributions under the same terms are welcome.

For details see:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ldh_client-0.0.5.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

ldh_client-0.0.5-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

Details for the file ldh_client-0.0.5.tar.gz.

File metadata

  • Download URL: ldh_client-0.0.5.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for ldh_client-0.0.5.tar.gz
Algorithm Hash digest
SHA256 66fc71ef049404924dac45b200f0afc1b724dc0ceec8fcdd3a47dde2a9eeecbf
MD5 ba245e54fcf92fa79c885b3a6594ed89
BLAKE2b-256 4845b00fca84833a1e0b7345e5ff56603dc6b80be2a01fd0aaf302b0eaebf862

See more details on using hashes here.

File details

Details for the file ldh_client-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: ldh_client-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 20.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for ldh_client-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 863d9e0df4905538b4ae0c645680c0a075954183d88d4a9dc228a138ec476e1d
MD5 c064bc5b6a59496adda861cad01cb4a1
BLAKE2b-256 8b77dd891927b66c45357d48e2914d6fe0d54ac76f8a4c7164f1cbc0bd4752e4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page