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.4.tar.gz (61.3 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.4-py2.py3-none-any.whl (36.4 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: ptutils-1.0.4.tar.gz
  • Upload date:
  • Size: 61.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 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.4.tar.gz
Algorithm Hash digest
SHA256 34d5bf9f69f3c9cbbf21e084e79fe42d81c5b8008050865bbe30ca00a37f26b8
MD5 01094213a86d3691a8c0e72e0175099b
BLAKE2b-256 436ab22f43e2b8fb416910f5c19df0125a45d43d8348f8011a76532c185c09d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ptutils-1.0.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 36.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 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.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b8af81e38241e77096f2da9c8fcfc47ec10932dbead25768993c9491a6126f7c
MD5 17bca2f2889af971052d7cadc54c22e2
BLAKE2b-256 87feea627563e076f95a93cca5ca950f5e2cf18f476180c8f1533dd969fe4e41

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