Skip to main content

Commonly used functions by the Compass FBI Team

Project description

Functional-Functions

Created by the FBI Compass team, this package contains our team's most commonly used and useful functions

About

Contents include functions for connecting to snowflake, saving and loading pickles. For help with what functions are available, please run help()

Installation

To install functional-functions, you can install it using pip:

pip install functional_functions

Additional Prequisites

To use the redshift query connector, you must additionally ensure you have downloaded/installed:

  • Java (Optional)
  • JDK8 (Optional)
    • For some reason, you may need this as well? This was troubleshooting I went through for setup
    brew tap adoptopenjdk/openjdk
    brew install --cask adoptopenjdk8
    

Usage

Currently all files are in the init.py. Import each function as needed. First time users are encouraged to import and run help() for more info.

import functional_functions
from functional_functions import help, query_snowflake

Troubleshooting/Prequisite/Additional Notes

Some functions, especially the connections, are built off of a settings.py file which stores local creds. You can view a sample settings file called 'settings.py.sample' in the included files. Obviously feel free to use another method to store and provide creds if you want. We now have added the ability to directly reference environmental variables and/or a .env file. See creds.env.sample for example file.

However if you are using 'settings.py' as your creds file, you will need to place it in your overall site-packages folder. If you are using 'creds.env' you will need to place it in your root folder or have a direct reference to it when you are loading it in. I'd recommend using python package python-dotenv.

NOTE: Yes I know code shouldnt be stored in init.py, but I also am learning packages and such!.

Help/Issues/Bugs

Please contact lawrence.chin@compass.com if there are any questions, bugs, or issues.

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

functional-functions-0.6.1.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

functional_functions-0.6.1-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file functional-functions-0.6.1.tar.gz.

File metadata

  • Download URL: functional-functions-0.6.1.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.2

File hashes

Hashes for functional-functions-0.6.1.tar.gz
Algorithm Hash digest
SHA256 f6bbebf03f0317df707b166721fb6dc5a1e4677c4f54d37e572f766bb31dca4e
MD5 16a7db88cc87cc4b81bd5fbedde8ce76
BLAKE2b-256 4247f6fabf615cdf4a8e743ef4d18b5b135746ce63bca049ee9a32dd099c4509

See more details on using hashes here.

File details

Details for the file functional_functions-0.6.1-py3-none-any.whl.

File metadata

File hashes

Hashes for functional_functions-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6eea9d24404d1445f2db21144e580759892627e61403dd2e4005ee858fd33f6d
MD5 9616efd3f071751117832fce94366d62
BLAKE2b-256 2adfb6903ba45fdce50ed3c754c55d0706aafa162940f409b6dc0b09a614606a

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