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 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ptutils-0.1.6.tar.gz.
File metadata
- Download URL: ptutils-0.1.6.tar.gz
- Upload date:
- Size: 46.0 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb2eb0de96053a6a7f07922af6972c66b9d923a18df82ccb0023de4cee5bbb9d
|
|
| MD5 |
8f2d6645ab928f3951c86e899f889763
|
|
| BLAKE2b-256 |
09d13db9da0efd65d7b91e599ddc26b80f5cc74e62bbba9c1370f307e55ae85a
|
File details
Details for the file ptutils-0.1.6-py2.py3-none-any.whl.
File metadata
- Download URL: ptutils-0.1.6-py2.py3-none-any.whl
- Upload date:
- Size: 4.8 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e8cff3fb659cc80e05c5d6d7bb0c6b3c82ad15f75df3605859ce4f44e1a2aad
|
|
| MD5 |
dc5d7915017e8bb0ffa23a9b051701c2
|
|
| BLAKE2b-256 |
539254daf2cc0315c6a2554785ac7bf0a29e5cb0ce9893bf465f027d620f4f16
|