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 <https://www.gitlab.com/principled.technologies/community/ptutils> 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 pt.ptutils.io import File
from pt.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-0.0.4.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

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

ptutils-0.0.4-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ptutils-0.0.4.tar.gz
  • Upload date:
  • Size: 14.5 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.20.1 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.9

File hashes

Hashes for ptutils-0.0.4.tar.gz
Algorithm Hash digest
SHA256 744f8cbf19657b6d61abdc517d6a76791b2a4a7b368dea7f89c7d996c62eedd8
MD5 305dad108ba88ddaba1b0a4f36fbf4f4
BLAKE2b-256 d860f902a66a435653fda96d2b9b64f024e8afb27191d178322ea7062bb51e83

See more details on using hashes here.

File details

Details for the file ptutils-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: ptutils-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.20.1 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.9

File hashes

Hashes for ptutils-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 31c1443a922ed18043969a05ee7af62bc00b4d61991be7ee1ef380cdcb48a406
MD5 3cb840356562ee3f9096f610fcb4f5de
BLAKE2b-256 a0bb36f9357ed6a9eceb6f33fb0d937c9ec072c14f177516647549129dfacb06

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