-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'prepare-for-pypi' into develop
- Loading branch information
Showing
18 changed files
with
183 additions
and
78 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 |
---|---|---|
|
@@ -3,3 +3,4 @@ __pycache__/ | |
.coverage | ||
.coverage.* | ||
build/ | ||
dist/ |
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,109 @@ | ||
blimey | ||
====== | ||
|
||
A Python library for interacting with 1Password's AgileKeychain password storage. Supports keychains created with 1Password 3 through 5. | ||
|
||
Features | ||
|
||
* Unlocking/locking the keychain | ||
* Iterating over the keychain contents | ||
* Creating new keychain items | ||
* Editing keychain items | ||
|
||
Planned | ||
|
||
* Removing keychain items with support for the trash functionality | ||
* Support for other password managers | ||
|
||
Development status | ||
------------------ | ||
|
||
Stable (master) | ||
|
||
* .. image:: https://secure.travis-ci.org/openpassword/blimey.png?branch=master | ||
:alt: Build status | ||
:target: https://travis-ci.org/openpassword/blimey | ||
|
||
* .. image:: https://scrutinizer-ci.com/g/openpassword/blimey/badges/quality-score.png?b=master | ||
:alt: Quality | ||
:target: https://scrutinizer-ci.com/g/openpassword/blimey/?branch=master | ||
|
||
* .. image:: https://scrutinizer-ci.com/g/openpassword/blimey/badges/coverage.png?b=master | ||
:alt: Coverage | ||
:target: https://scrutinizer-ci.com/g/openpassword/blimey/?branch=master | ||
|
||
Unstable (develop) | ||
|
||
* .. image:: https://secure.travis-ci.org/openpassword/blimey.png?branch=develop | ||
:alt: Build status | ||
:target: https://travis-ci.org/openpassword/blimey | ||
|
||
* .. image:: https://scrutinizer-ci.com/g/openpassword/blimey/badges/quality-score.png?b=develop | ||
:alt: Quality | ||
:target: https://scrutinizer-ci.com/g/openpassword/blimey/?branch=develop | ||
|
||
* .. image:: https://scrutinizer-ci.com/g/openpassword/blimey/badges/coverage.png?b=develop | ||
:alt: Coverage | ||
:target: https://scrutinizer-ci.com/g/openpassword/blimey/?branch=develop | ||
|
||
License | ||
------- | ||
|
||
.. image:: http://b.repl.ca/v1/License-MIT-blue.png | ||
:alt: MIT License | ||
:target: http://opensource.org/licenses/MIT | ||
|
||
Usage | ||
----- | ||
|
||
.. code-block:: python | ||
from blimey import AgileKeychain | ||
# Construct a keychain with either a path to an existing keychain, | ||
# or the path to where you want your keychain created | ||
agilekeychain = AgileKeychain('path/to/keychain.agilekeychain') | ||
# If the keychain doesn't exist, initialise it with a master password | ||
agilekeychain.initialise('super-secret-password') | ||
# Existing (and newly crated) keychains are unlocked by calling the unlock method | ||
agilekeychain.unlock('super-secret-password') | ||
# You can change the master password by calling set_password | ||
agilekeychain.set_password('even-more-secret-password') | ||
# Call create_item to initialise a new item | ||
item = agilekeychain.create_item() | ||
# Some boilerplate is put in place automatically | ||
print(item) | ||
# AgileKeychainItem({'encrypted': {}, 'title': 'Untitled', 'createdAt': 1422404797.4550807, | ||
# 'typeName': 'passwords.Password', 'keyID': 'ED7D542C2EA24479407D3D5CB35637D2', 'location': '', | ||
# 'uuid': 'CBA45A598A4A63D4DDD3C78E2CC11666', 'locationKey': ''}) | ||
# The item behaves like any dictionary | ||
item['title'] = 'Usage Example' | ||
# Anything stored under 'encrypted' key will be encrypted on save | ||
item['encrypted'] = { | ||
'username': 'patrick', | ||
'password': 'correct horse battery staple' | ||
} | ||
# To save an item, pass it to the save_item method | ||
agilekeychain.save_item(item) | ||
# To access keychain items, you can iterate over the keychain, ... | ||
for item in agilekeychain: | ||
print(item['title']) | ||
# AgileKeychainItem({'encrypted': {}, 'title': 'Untitled', 'createdAt': 1422404797.4550807, | ||
# 'typeName': 'passwords.Password', 'keyID': 'ED7D542C2EA24479407D3D5CB35637D2', 'updatedAt': 1422404900, | ||
# 'location': '', 'uuid': 'CBA45A598A4A63D4DDD3C78E2CC11666', 'locationKey': ''}) | ||
# ... or access them directly by their UUID | ||
print(agilekeychain['905B51856FD59A3C3AEF42A9FCE47E87']) | ||
# When you are done you can lock the keychain by calling the lock method | ||
agilekeychain.lock() | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Metadata-Version: 1.1 | ||
Name: blimey | ||
Version: 0.9.4 | ||
Summary: A password management library with AgileKeychain (1Password) support | ||
Home-page: https://github.com/openpassword/blimey | ||
Author: Open Password Team | ||
Author-email: [email protected] | ||
License: MIT | ||
Description: UNKNOWN | ||
Keywords: password management 1password agilekeychain | ||
Platform: UNKNOWN | ||
Classifier: Development Status :: 4 - Beta | ||
Classifier: Intended Audience :: Developers | ||
Classifier: Topic :: Software Development :: Libraries | ||
Classifier: Topic :: Security | ||
Classifier: Topic :: Security :: Cryptography | ||
Classifier: License :: OSI Approved :: MIT License | ||
Classifier: Programming Language :: Python :: 3.3 | ||
Classifier: Programming Language :: Python :: 3.4 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
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,3 @@ | ||
pbkdf2 | ||
pycrypto | ||
jinja2 |
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 @@ | ||
blimey |
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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
setuptools | ||
twine | ||
wheel | ||
spec | ||
nose | ||
pep8 | ||
|
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 |
---|---|---|
@@ -1,14 +1,32 @@ | ||
from distutils.core import setup | ||
from setuptools import setup, find_packages | ||
|
||
setup(name='blimey', | ||
version='0.9.2', | ||
description='Library for reading AgileKeychain files', | ||
author='openpassword', | ||
url='https://github.com/openpassword/blimey', | ||
packages=[ | ||
'blimey', | ||
'blimey.abstract', | ||
'blimey.agile_keychain', | ||
'blimey.agile_keychain._manager', | ||
'blimey.agile_keychain.template', | ||
]) | ||
|
||
setup( | ||
name='blimey', | ||
version='0.9.4', | ||
description='A password management library with AgileKeychain (1Password) support', | ||
author='Open Password Team', | ||
author_email='[email protected]', | ||
url='https://github.com/openpassword/blimey', | ||
license='MIT', | ||
classifiers=[ | ||
'Development Status :: 4 - Beta', | ||
'Intended Audience :: Developers', | ||
'Topic :: Software Development :: Libraries', | ||
'Topic :: Security', | ||
'Topic :: Security :: Cryptography', | ||
'License :: OSI Approved :: MIT License', | ||
'Programming Language :: Python :: 3.3', | ||
'Programming Language :: Python :: 3.4' | ||
], | ||
keywords='password management 1password agilekeychain', | ||
packages=find_packages(exclude=['specs*']), | ||
package_data={ | ||
'blimey': ['agile_keychain/template/*.template'] | ||
}, | ||
install_requires=[ | ||
'pbkdf2', | ||
'pycrypto', | ||
'jinja2' | ||
] | ||
) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.