Skip to main content

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)

Source distribution for ac8593-key-manager 0.2.0
File Size Uploaded
ac8593_key_manager-0.2.0.tar.gz 2.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ac8593-key-manager 0.2.0
File Interpreter ABI Platform
ac8593_key_manager-0.2.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page