Skip to content

Commit

Permalink
Lib fix (#10)
Browse files Browse the repository at this point in the history
* Fix lib import

* remove extra code

* remove extra comment

* Update demo
  • Loading branch information
gabfl authored Jul 8, 2017
1 parent c500eda commit 549030b
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Vault is a simple Python password manager. It allows you to securely save secret

## Basic usage

![Demo](img/demo.gif)
![Demo](https://github.com/gabfl/vault/blob/master/img/demo.gif?raw=true)

## Installation and setup

Expand Down
Binary file modified img/demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"""
Just run:
python3 main.py
"""

from src.vault import *

main()
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from setuptools import setup
from setuptools import setup, find_packages

try:
import pypandoc
Expand All @@ -8,18 +8,18 @@

setup (
name = 'pyvault',
version = '1.3b',
version = '1.4',
description = 'Python password manager',
long_description = long_description,
author = 'Gabriel Bordeaux',
author_email = '[email protected]',
url = 'https://github.com/gabfl/vault',
license = 'MIT',
packages = ['vault', 'vault.lib'],
packages = find_packages(),
install_requires = ['pycryptodome', 'pyperclip', 'tabulate', 'argparse'], # external dependencies
entry_points = {
'console_scripts': [
'vault = vault.vault:main',
'vault = src.vault:main',
],
},
)
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions vault/lib/ImportExport.py → src/lib/ImportExport.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def importFromJson(self):
Import items to the vault
"""

from lib.Misc import confirm
from .Misc import confirm

# Unlock the vault with the existing key
self.unlockVault()
Expand Down Expand Up @@ -120,7 +120,7 @@ def importFromNative(self):

import pickle

from lib.Misc import confirm
from .Misc import confirm

# Unlock the vault with the existing key
self.unlockVault()
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions vault/lib/Vault.py → src/lib/Vault.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def get(self, id = None):
Quickly retrieve an item from the vault with its ID
"""

from lib.Misc import confirm
from .Misc import confirm

if id is None: # If the user did not pre-select an item
print()
Expand Down Expand Up @@ -487,7 +487,7 @@ def itemDelete(self, itemKey):
Delete an item
"""

from lib.Misc import confirm
from .Misc import confirm

try:
# Get item
Expand Down Expand Up @@ -745,7 +745,7 @@ def categoryDelete(self):
Quickly delete a category from the vault with its ID
"""

from lib.Misc import confirm
from .Misc import confirm

print()
try:
Expand Down Expand Up @@ -800,7 +800,7 @@ def categoryRename(self):
Quickly rename a category from the vault with its ID
"""

from lib.Misc import confirm
from .Misc import confirm

print()
try:
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions vault/vault.py → src/vault.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

import argparse

from .lib.Vault import Vault
from .lib.Config import Config
from .lib.ImportExport import ImportExport
from .lib.Misc import *
from src.lib.Vault import Vault
from src.lib.Config import Config
from src.lib.ImportExport import ImportExport
from src.lib.Misc import *

# Parse arguments
parser = argparse.ArgumentParser()
Expand Down

0 comments on commit 549030b

Please sign in to comment.