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.1.4.tar.gz (79.2 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.1.4-py2.py3-none-any.whl (46.3 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: ptutils-1.1.4.tar.gz
  • Upload date:
  • Size: 79.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for ptutils-1.1.4.tar.gz
Algorithm Hash digest
SHA256 aa05de9df4766d6ff208d376ebbfcf120ca59d27bec358951894987393c25d25
MD5 7b5f81a038f7e7b67959b9deefae0a60
BLAKE2b-256 59432332fd7c246dd5fc2a0c98c7c59f0d1d042814f33949f94574c5f32b26e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ptutils-1.1.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 46.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for ptutils-1.1.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c6f3e40b29eee10c6efc1fed96ecf8ec72acfa5c0f730ff1baf9f9e92e41e3e3
MD5 cba243c20c4074f84ac72aca6e8f6d23
BLAKE2b-256 2f05d571e5e8a417995711d1715a22e34275fbbd9453672de7c0798242373664

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