Skip to main content

A lightweight python utility package built on the standard library

Project description

tooltils | v1.5.1

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

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

Uploaded Source

Built Distribution

tooltils-1.5.1-py3-none-any.whl (27.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tooltils-1.5.1.tar.gz
  • Upload date:
  • Size: 22.7 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.1.tar.gz
Algorithm Hash digest
SHA256 9621d202a8f1f234bb203e2369cd76cf810cee86b082a78d615d131ff8384b3d
MD5 cddcbcdbe347e9aadd88f0d0d9cfe3db
BLAKE2b-256 01d0a629687c60fb0d152dc26e89fec0969bf0de3f6dad972271a499a6747fae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tooltils-1.5.1-py3-none-any.whl
  • Upload date:
  • Size: 27.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7ea405a0617a28b06af0f4206ee756f47850c3dbbd78f466b6adab2e56c75810
MD5 f1d997c7133ca3c688ef05f117242cd3
BLAKE2b-256 8e3968bfb43cfcd22d170641656480091f2a0c78c310c18c189abac5c2fddb52

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