Coder Social home page Coder Social logo

ogarcia / lpacli Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 23 KB

CLI helper to get LessPass paswords configuration directly from a LessPass server (Python implementation)

License: GNU General Public License v3.0

Python 100.00%
lesspass python3 password client

lpacli's Introduction

The project has moved (and renamed)

lpacli code is now hosted in GitLab as rlpcli and rewritten in Rust.

lpacli

lpacli is a tiny CLI helper to get LessPass paswords configuration directly from a LessPass server.

Install

  1. Install python3 (in Debian apt-get install python3).
  2. Install virtualenv (in Debian apt-get install virtualenv).
  3. Configure a Python 3 virtualenv and install lpacli whith setup.py.
virtualenv -p python3 lpaclienv
source lpaclienv/bin/activate
python setup.py install

Once the installation ends you must have lpacli command.

For enter again in your virtualenv simply run source command.

source lpaclienv/bin/activate

Usage

In first time use you must configure the following evironment variables.

Variable Used for
LESSPASS_HOST URL of API server (ex. https://lesspass.com)
LESSPASS_USER Username (ex. [email protected])
LESSPASS_PASS Password

Now you can run lpacli ls to get a list of sites stored in server.

After first run, lpacli stores the login token in your XDG_CACHE_HOME directory, you can run commands with only LESSPASS_HOST environment variable.

For get LessPass configuration of a site run lpacli SITENAME being sitename one of the list given in lpacli ls command.

If you set LESSPASS_MASTERPASS environment variable with your LessPass master password, lpacli returns the password of site instead of site configuration.

lpacli's People

Contributors

ogarcia avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.