lastpass-go alternatives and similar packages
Based on the "Third-party APIs" category.
Alternatively, view lastpass-go alternatives based on common mentions on social networks and blogs.
-
githubql
Package githubv4 is a client library for accessing GitHub GraphQL API v4 (https://docs.github.com/en/graphql). -
openaigo
OpenAI GPT3/3.5 and GPT4 ChatGPT API Client Library for Go, simple, less dependencies, and well-tested -
gostorm
GoStorm is a Go library that implements the communications protocol required to write Storm spouts and Bolts in Go that communicate with the Storm shells.
CodeRabbit: AI Code Reviews for Developers
Do you think we are missing an alternative of lastpass-go or a related project?
README
Go client for LastPass
Features
- login via
- user name and master password
- two-factor authentication with out-of-band mechanism such as push notification to LastPass Authenticator or Duo Security
- two-factor authentication with one-time password from LastPass Authenticator, Google Authenticator, Microsoft Authenticator, YubiKey, Duo Security, Sesame, etc.
- create account
- read accounts (including accounts from shared folders)
- update account
- delete account
- logout
Documentation
Installation
Install:
$ go get github.com/ansd/lastpass-go
Import:
import "github.com/ansd/lastpass-go"
Usage
Below, error handling is excluded for brevity. See examples directory for more examples.
// authenticate with LastPass servers
client, _ := lastpass.NewClient(context.Background(), "user name", "master password")
// two-factor authentication with one-time password as second factor:
// client, _ := lastpass.NewClient(context.Background(), "user name", "master password", lastpass.WithOneTimePassword("123456"))
account := &lastpass.Account{
Name: "my site",
Username: "my user",
Password: "my pwd",
URL: "https://myURL",
Group: "my group",
Notes: "my notes",
}
// Add() account
client.Add(context.Background(), account)
// read all Accounts()
accounts, _ := client.Accounts(context.Background())
// Update() account
account.Password = "updated password"
client.Update(context.Background(), account)
// Delete() account
client.Delete(context.Background(), account.ID)
// Logout()
client.Logout(context.Background())
Notes
This repository is a port of detunized/lastpass-ruby and a clone of mattn/lastpass-go.
This project is licensed under the MIT License - see the LICENSE file for details.
This repository's ecb
(Electronic Codebook) package contains code which is "Copyright 2013 The Go Authors. All rights reserved."
*Note that all licence references and agreements mentioned in the lastpass-go README section above
are relevant to that project's source code only.