Skip to main content

A repository of oft used functions and utility classes.

Project description

This library provides oft-reused boilerplate functions and classes. This library is under construction. Please see LICENSE.txt for licensing information. For the moment the GitLab repository is private, but will be made available soon.

Usage

Install with PIP

Install the package (or add it to your requirements.txt file):

pip install ptutils

Import in Python

Import the library in python:

from logging import getLogger
from ptutils.io import File
from ptutils.encoding import pretty_json

logger = getLogger(__name__)
f      = File('/etc/docker/daemon.json')
data   = f.content
text   = pretty_json( data )

logger.debug( text )

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

ptutils-1.0.10.tar.gz (62.6 kB view details)

Uploaded Source

Built Distribution

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

ptutils-1.0.10-py2.py3-none-any.whl (37.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file ptutils-1.0.10.tar.gz.

File metadata

  • Download URL: ptutils-1.0.10.tar.gz
  • Upload date:
  • Size: 62.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for ptutils-1.0.10.tar.gz
Algorithm Hash digest
SHA256 7a93c160bee858a5614403a37919d26a5144e7968f1f0dff728852ba68098d8c
MD5 e45a44dc6ddf570c08b4021bb7227773
BLAKE2b-256 1fd0ed444f785c0f15edb2af54add95a8a17cb95097490ce0b38b118de61ac57

See more details on using hashes here.

File details

Details for the file ptutils-1.0.10-py2.py3-none-any.whl.

File metadata

  • Download URL: ptutils-1.0.10-py2.py3-none-any.whl
  • Upload date:
  • Size: 37.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for ptutils-1.0.10-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 70a5e686c90f523905f53b692a6b3b7d5154e3acd257ea4175eb1e3d3e450a96
MD5 3041e48db18e2bbb412c55a14f826bec
BLAKE2b-256 a5df09b98ad88a1f0da7537ee40d602e69397f582e6d570dada36cf828a24592

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