Skip to main content

Common Python utilities used at MCG Strategic

Project description

mcgpyutils(MCG Python Utilities) is a project containing utility classes commonly used in Python projects at MCG Strategic.

Requirements

  • Python3, version >= 3.6

Usage

Example:

from mcgpyutils import FileSystemUtils

fsu = FileSystemUtils()
print(fsu.get_path_to_script(__file__))

Development

Changes to this package can be tested by putting the path to the root of this repository in the PYTHONPATH environment variable. PYTHONPATH will take precedence over the installed package and allow new changes to be used instead of the version installed via pip. To revert this, remove the path to the root of this repository from the PYTHONPATH. Here are 2 aliases to make switching easy:

# Enable development mode
alias pyutilsdev='export PYTHONPATH="/path/to/mcgpyutils:$PYTHONPATH"'

# Revert to installed package (this assumes there's nothing else in your PYTHONPATH)
alias pyutilsprod='export PYTHONPATH=""'

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
mcgpyutils-1.0.5-py3-none-any.whl (13.6 kB) Copy SHA256 hash SHA256 Wheel py3 Mar 12, 2018
mcgpyutils-1.0.5.tar.gz (9.6 kB) Copy SHA256 hash SHA256 Source None Mar 12, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page