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.1.tar.gz (78.0 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.1-py2.py3-none-any.whl (46.2 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for ptutils-1.1.1.tar.gz
Algorithm Hash digest
SHA256 5d3e24718b7a075a07c2fb816cc4ada0f91980bd8368966adcd582d7dc8c1c5d
MD5 ce84a1d7e8ffa71f83251eae6cbba410
BLAKE2b-256 4a5462c278380e824fb323de5990bf9c5104c7059a0f3cf82a1b7903adfb5626

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ptutils-1.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1be05444e6844c0fab68587bd9531ec66033c2e5a5c840c5d8f6751d3982d94e
MD5 fd101c98977ce61dc4d406e21b5f7d2c
BLAKE2b-256 aa78515e0a55749e3da51d30ac26a3fea503b4b4fd3143241ef1d6ee8cbe0dc3

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