Code Monkey home page Code Monkey logo

passman_cli's Introduction

Passman CLI

A CLI to access data from a Passman instance.

Installation

There is still no version pushed to PyPi, so you can still by cloning this repository and running python setup.py install. A passman command will be available in your shell.

Development

  1. Clone this repository
  2. Install the development requirements: pip install -r requirements.txt
  3. (Optional) Install the egg in develop mode: python setup.py develop

Usage

To learn more about the usage please run passman --help.

Config File

Passman CLI supports a TOML config file to save the base url of the instance and your username and password. You can send a path to the config file using the --config option of the command-line. It also looks for a config named passman_cli.toml at the current working dir and at ~/.config/, in this exact order.

Here's an example of configuration:

base_url = "https://my.nextcloud/apps/passman/api/v2"
auth = ["admin", "password"]

passman_cli's People

Contributors

douglascamata avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

passman_cli's Issues

print ctx.obj["passman"].get_vault(guid)

Hi, are you still working on this project?

i was looking for a CLI tool for passman so i could use it in combination with rofi.
i found yours and installed it. but when running i get:

from passman_cli.cli import vault, credential

File "/home/eas/passman_cli/passman_cli/cli/vault.py", line 14
print ctx.obj["passman"].get_vault(guid)
^
SyntaxError: invalid syntax

any idea what could be wrong?

No moduled named 'cli'

Traceback (most recent call last):
  File "/usr/local/bin/passman", line 9, in <module>
    load_entry_point('passman-cli==0.0.1', 'console_scripts', 'passman')()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 542, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2569, in load_entry_point
    return ep.load()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2229, in load
    return self.resolve()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2235, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/local/lib/python3.5/dist-packages/passman_cli-0.0.1-py3.5.egg/passman_cli/entrypoint.py", line 4, in <module>
    from cli import vault, credential
ImportError: No module named 'cli'

Installed with sudo python3 setup.py install, on Ubuntu 16.04.

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.