Skip to main content

A lightweight python utility package built on the standard library

Project description

tooltils | v1.6.0

python downloads

A lightweight python utility package built on the standard library

>>> import tooltils
>>> req = tooltils.requests.get('httpbin.org/get/')
>>> req
'<GET httpbin.org [200]>'
>>> req.url
'https://httpbin.org/get'
>>> req.status_code
'200 OK'
>>> req.headers["User-Agent"]
'Python-tooltils/1.6.0'

Installation

Get the latest version from PyPi

python -m pip install tooltils

OR build it directly from the source

git clone https://github.com/feetbots/tooltils.git
cd tooltils
python -m pip install setup.py --user

API

The full API is available to read in the project files at API.md

Planned Features

  • Add a different implementation of the requests module using some other library to include features like connection pooling
  • (maybe) start including third party modules to add desireable features
  • Stop using run of the mill implementations for everything

Important Note

The current implementation for the cache and config, opens the data file once if used, then the code will use that specific TextIOWrapper class to write and read etc. Unfortunately, there is no native method of closing this file class once the program execution has ended, leaving this up to CPython's garbage collecter. This technique is bad practice but should be better than constantly opening and closing each file (performance reasons).

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

tooltils-1.6.0.tar.gz (29.8 kB view details)

Uploaded Source

Built Distribution

tooltils-1.6.0-py3-none-any.whl (32.8 kB view details)

Uploaded Python 3

File details

Details for the file tooltils-1.6.0.tar.gz.

File metadata

  • Download URL: tooltils-1.6.0.tar.gz
  • Upload date:
  • Size: 29.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for tooltils-1.6.0.tar.gz
Algorithm Hash digest
SHA256 211ce0e8e6d63f4b88dd67dc234d845d7a249113a8a61d06f2da46929f419640
MD5 cfd1eaee6130144dacef54bd4f26c74a
BLAKE2b-256 adab46584df04d27e803ebee1de6ab3fd537200362f93ff8170ed6839a10e79d

See more details on using hashes here.

File details

Details for the file tooltils-1.6.0-py3-none-any.whl.

File metadata

  • Download URL: tooltils-1.6.0-py3-none-any.whl
  • Upload date:
  • Size: 32.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for tooltils-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6f3f887fa1fbe2174aa76922cf81d0565876cba895d1b3ab38fdd8580ea7e933
MD5 0de876556709e477fe77638585627b4e
BLAKE2b-256 35f628c460f11699a162dfc2ad6622732327e6015dcf4d0e6f30d0e6d545d7db

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page