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...
-
Install Python 3.x and pipenv. (See https://docs.pipenv.org/install/ for a tutorial.)
-
Install prerequisites:
apt install libcairo2-dev libgirepository1.0-dev libssl-dev python3-dev
-
Get source:
git clone https://source.puri.sm/liberty/tool/client.git ldh_client
-
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:
- COPYING.AGPL.md, full license text
- CODE_OF_CONDUCT.md, full conduct text
- CONTRIBUTING.DCO.md, full origin text (
git -s
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ldh_client-0.0.8.tar.gz
.
File metadata
- Download URL: ldh_client-0.0.8.tar.gz
- Upload date:
- Size: 29.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | df9f602d39dada301936665315db00815bbd2d748f6a2e0a857b1be9e4ca2915 |
|
MD5 | 70057b9b6b0300ea01a334ea95e936d9 |
|
BLAKE2b-256 | 21f890adde0e026d2e48a1d2a41a8ee5dbdc99df9c716c9051bb2ee3fd18e152 |
File details
Details for the file ldh_client-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: ldh_client-0.0.8-py3-none-any.whl
- Upload date:
- Size: 20.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8bc772c3113052a745f4029d68cc112d5f401b7ac0a0e309e8f5fa8eb69524a |
|
MD5 | a1ef6b0e327fea48ec47409dc8497b2b |
|
BLAKE2b-256 | 1fac0e06a0d51db54fb41e02ac0fcccbd2b69d8aed5ee78b8dea12d015199ca4 |