Skip to main content

Key Manager library

Project description

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()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ac8593_key_manager-0.2.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

ac8593_key_manager-0.2.0-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file ac8593_key_manager-0.2.0.tar.gz.

File metadata

  • Download URL: ac8593_key_manager-0.2.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for ac8593_key_manager-0.2.0.tar.gz
Algorithm Hash digest
SHA256 5306c2e6072515c3fdee903ae5b8a8d309b70b05e3a8478130e49089007c7829
MD5 076ffd383906726957b2f8d2e9f482b6
BLAKE2b-256 141efd2f9765a98d6c5bba5603c52edff951f643459c809d7ca79add1ce473a7

See more details on using hashes here.

File details

Details for the file ac8593_key_manager-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ac8593_key_manager-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a980d76f1332a9f4183dee3be6a4e5bdb23fb9ea95ac0d486cefe2112d1e35c7
MD5 6abf2a79371f4c3a36da6146a8f4ef91
BLAKE2b-256 fbbe491d3657b0c84d85556045f7e193ad4620fdf1048aee731da6d78479f0b6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page