Key Manager
This library creates a simple key manager so that the actual key is hidden from the code. This was done as a part of the homework for Data Engineering class at NYU
Installation
pip install ac8593_key_manager==0.2.0
Get started
Suppose Max wants to hide the key from his code. All he needs to do is create a .txt file and put his key in that file. Then, he can add the name of the key file to the .gitginore. This ensures that his key does not get pushed to git and can be passed around independantly of the code he writes. Moreover, people can use their own keys too without having to change the code!
Let's say Max saves his key in max_api_key.txt
from ac8593_key_manager import KeyManager
# Instantiate a KeyManager object
key_manager = KeyManager('max_api_key.txt')
# Call the get_key method to get the key. This key can be used to build the Polygon API client
key = key_manager.get_key()
Metadata
Release files for ac8593-key-manager 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ac8593_key_manager-0.2.0.tar.gz | 2.2 kB | Without provenance | Details for ac8593_key_manager-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ac8593_key_manager-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for ac8593_key_manager-0.2.0-py3-none-any.whl |
Total release size: 4.7 kB
Release files / ac8593_key_manager-0.2.0.tar.gz
| Download URL | ac8593_key_manager-0.2.0.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5306c2e6072515c3fdee903ae5b8a8d309b70b05e3a8478130e49089007c7829
|
|
BLAKE2b-256 checksum How to use checksums |
141efd2f9765a98d6c5bba5603c52edff951f643459c809d7ca79add1ce473a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.12
|
Release files / ac8593_key_manager-0.2.0-py3-none-any.whl
| Download URL | ac8593_key_manager-0.2.0-py3-none-any.whl |
|---|---|
| Size | 2.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a980d76f1332a9f4183dee3be6a4e5bdb23fb9ea95ac0d486cefe2112d1e35c7
|
|
BLAKE2b-256 checksum How to use checksums |
fbbe491d3657b0c84d85556045f7e193ad4620fdf1048aee731da6d78479f0b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.12
|
Security for ac8593-key-manager 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.