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.

Source Distribution

mcgpyutils-1.0.5.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcgpyutils-1.0.5-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file mcgpyutils-1.0.5.tar.gz.

File metadata

  • Download URL: mcgpyutils-1.0.5.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mcgpyutils-1.0.5.tar.gz
Algorithm Hash digest
SHA256 11065fecda16bf51cf4474da0ec91531ebd888ca6965bd8258583a0ded07c765
MD5 271e7ed31ce07fef755060a0ed7c690a
BLAKE2b-256 f7bc1d54716f3fbab6c514d2748d248beb7944a74776551305dc2513a0e80c4d

See more details on using hashes here.

File details

Details for the file mcgpyutils-1.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for mcgpyutils-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4ca277c72b79d3a7cde0a29b873aa474246f3352e934aa58293f419d20def8ea
MD5 1f6782b14876442209cc51a599b6029e
BLAKE2b-256 6b87b54193ba65d253284d7ff71d0c3f3ebac1c21042605f88f9636333c6ab07

See more details on using hashes here.

Supported by

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