-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from shugaoye/master
Fixed errors when load to PyPi.
- Loading branch information
Showing
26 changed files
with
118 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
KeePass command line application | ||
================================ | ||
|
||
`KPCLibPy <https://github.com/passxyz/KPCLibPy>`__ is a KeePass command | ||
application written in Python. | ||
|
||
The original `KeePass <https://keepass.info/>`__ by Dominik Reichl is a | ||
.NET application written in C#. ``KeePassLib`` is part of KeePass which | ||
can be built as a library to support the major functions of KeePass. | ||
However, at the moment, ``KeePassLib`` is still built for .NET framework | ||
which can run on Windows only. I modified ``KeePassLib`` and extended it | ||
as a .NET Standard library - | ||
`KPCLib <https://github.com/passxyz/KPCLib>`__. | ||
`KPCLib <https://github.com/passxyz/KPCLib>`__ stands for KeePass | ||
Portable Class Library at the time when I started the work. Portable | ||
Class Library (PCL) is replaced by .NET Standard Library nowadays. | ||
|
||
`KPCLibPy <https://github.com/passxyz/KPCLibPy>`__ is just a Python | ||
wrapper of `KPCLib <https://github.com/passxyz/KPCLib>`__ using | ||
`Python.NET <http://pythonnet.github.io/>`__. In this perspective, | ||
``KPCLibPy`` is fully compatible to the original KeePass, since the | ||
majority of code is the same as KeePass. | ||
|
||
In order to save the development effort and have a nice user interface, | ||
the Python library | ||
`python-nubia <https://github.com/facebookincubator/python-nubia>`__ | ||
from Facebook is used as the framework to support command line | ||
interface. | ||
|
||
Key Features | ||
------------ | ||
|
||
- Full compatible with the original KeePass | ||
- .NET Standard 2.0 support with | ||
`KPCLib <https://github.com/passxyz/KPCLib>`__ | ||
- Cross platform support with .NET Standard and .NET core | ||
- Nice user interface with | ||
`python-nubia <https://github.com/facebookincubator/python-nubia>`__ | ||
- Interactive mode that offers fish-style auto-completion | ||
|
||
Installation | ||
------------ | ||
|
||
As a developer, you can use | ||
`KPCLibPy <https://github.com/passxyz/KPCLibPy>`__ from GitHub directly. | ||
|
||
.. code:: bash | ||
git clone https://github.com/shugaoye/KPCLibPy.git | ||
cd KPCLibPy | ||
pip install -r requirements.txt | ||
cd src | ||
python3 ./nubia_main.py | ||
For normal user, `KPCLibPy <https://github.com/passxyz/KPCLibPy>`__ can | ||
be installed using pip. | ||
|
||
:: | ||
|
||
$ pip install kpclibpy | ||
$ keepass | ||
|
||
|image01| | ||
|
||
Docker image | ||
------------ | ||
|
||
A Dockr image - | ||
`docker-mono <https://github.com/shugaoye/docker-mono>`__ can be used on | ||
Linux or Windows 10 (WSL). | ||
|
||
.. |image01| image:: https://github.com/passxyz/passxyz.github.io/raw/master/images/kpclib/kpclibpy.gif |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[options] | ||
packages = | ||
kpclibpy | ||
kpclibpy.commands | ||
kpclibpy.commands.entry | ||
kpclibpy.commands.group | ||
kpclibpy.kpclib | ||
python_requires = >=3.6 | ||
install_requires= | ||
pycparser==2.20 | ||
pythonnet==2.5.2 | ||
python-nubia==0.2b5 | ||
setup_requires = | ||
setuptools_scm >= 1.15 | ||
include_package_data = True | ||
|
||
[options.entry_points] | ||
console_scripts = | ||
keepass = kpclibpy.__main__:main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,14 +8,15 @@ | |
|
||
setup( | ||
name="kpclibpy", | ||
version="1.0.9", | ||
version="1.1.0", | ||
description="KeePass command line application", | ||
url="https://github.com/passxyz/KPCLibPy", | ||
license="MIT", | ||
author="Roger Ye", | ||
author_email="[email protected]", | ||
package_dir={"": "src"}, | ||
packages=find_packages(where="src"), | ||
#package_dir={"": "src"}, | ||
#packages=find_packages(where="src"), | ||
#package_data={'kpclibpy.kpclib': ['lib/*.dll']}, | ||
install_requires=["pycparser==2.20", | ||
"pythonnet==2.5.2", | ||
"python-nubia==0.2b5"], | ||
|