Skip to main content

A lightweight python utility package built on the standard library

Project description

tooltils | v1.5.2

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.5.2'

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 base-level implementation of the requests module using only the socket and ssl modules
  • Add a feature in the info module to specify methods or variables as config values
  • Rewrite older messy code

Important Note

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

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.5.2.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

tooltils-1.5.2-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tooltils-1.5.2.tar.gz
  • Upload date:
  • Size: 2.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.5.2.tar.gz
Algorithm Hash digest
SHA256 01c24eeeca659fa2437bfb4429fb9e4f95ab1d9f756697ced65e7d81876b20ea
MD5 2b05b0e40d925c5fa3868bbe84568793
BLAKE2b-256 0b1830fd0a993c40b8996c12319cd9d343fd365511f62ce80f9402dfdde2ecf0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tooltils-1.5.2-py3-none-any.whl
  • Upload date:
  • Size: 2.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.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1af575c35fc3c3d2ccae47671b028c02c21d0d55fe30c6a2a91060f1f1be1cfb
MD5 e3ac8d57fd5892144894fe7cd2f322df
BLAKE2b-256 f46f9b3600ce5100237a61d56abce48d4c24a55e3696fdc5243a0c69ea16d1bb

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