ezkey is a package that allows developers to easily manage locally stored API keys.
Project description
ezKey
ezkey is a Python package that allows developers to easily manage locally stored API keys. It is designed to be used with the Command Line application ezKeyVault
Getting Started
This project has two parts
-
ezKeyVault - a CLI based key manager where the user can add and view their API keys. This is for local use only on a developer's machine, and is installed only once. ezKeyVault creates a simple key/value store that writes a hidden text file in the user's home directory. ezKeyVault does not encrypt any content, it's sole purpose is to facilitate separation of the keys from the working code. Once a key is added to the ezKeyVault, it can be accessed from any project on the user's machine via the ezKey
pip
module. -
ezKey - a
pip
module that the user can add to their projects to facilitate easy access to their API keys during development.
Prerequisites
You will need Python 2 or 3 on your system to use this software. ezKeyVault and ezKey were built on OSX and should work on any *.nix machine.
Be sure to install ezkeyvault as described in the repo linked here.
Installation
Install ezkey by running:
pip install ezkey
Documentation
Once ezKeyVault and ezKey are installed on your system, you can import ezkey into your project and use the getkey
method to retrieve any API keys that are stored in the ezKeyVault. You must first run ezkeyvault and store one or more API Keys in order to use them with ezkey.
ezKey and ezKeyVault are not designed for production use. Do not use these modules on a production server. The ezKey and ezKeyVault modules are created solely for convenience to help beginning developers quickly and easily store their API keys in a path outside of their projects, and reduce the chance of accidentally uploading keys to a public repository. This project does not include any encryption, obfuscation, or security measures of any kind, and should only be used for local key management on a developer's machine.
from ezkey import getkey
mykey = getkey('Google')
print("Mykey: ", mykey)
#Use mykey wherever you need the API Key
- Note - if you attempt to retrieve a key using an incorrect name, ezkey will return the string:
"Error - Key not found"
License
This project is licensed under the Apache 2.0 License - see the LICENSE.md file for details
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ezkey-0.0.1.tar.gz
.
File metadata
- Download URL: ezkey-0.0.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/43.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86a59a7326efd614445ec5f9fba0e99982ee1691216ef21659b3b1733cd4275f |
|
MD5 | 0e1b15bc2766b2c37c650ea6fb452899 |
|
BLAKE2b-256 | 21f671c8eb2bf80cdf36aa1b7a5e8e7ddbbdb76c7a58d27342f0c55a1fbd532e |
File details
Details for the file ezkey-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: ezkey-0.0.1-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/43.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7613c41aab30a71b423f6c98f0d2dc1ab497dfab3a3c47e4b40a97da88fd28d4 |
|
MD5 | 5299b7a6d0158ffea2a5fce01e88e0ec |
|
BLAKE2b-256 | 0af66087372ff12a786a5461d81cb7b1b1b9b7bbd57e5c1c93732980ea9698aa |