A lightweight python utility package built on the standard library
Project description
tooltils | v1.5.0
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.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 base-level implementation of the
requests
module using only thesocket
andssl
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
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
File details
Details for the file tooltils-1.5.0.tar.gz
.
File metadata
- Download URL: tooltils-1.5.0.tar.gz
- Upload date:
- Size: 23.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77aea9836b727d734b5aaa66322ede48b15c1cf173f10e260bb76833317221c7 |
|
MD5 | 683319198c13a4a8436303648ef587e9 |
|
BLAKE2b-256 | 2eebe737491d2f691460a285ec3cbe4d5bd19ee51c934b42d12b2169b80abb05 |
File details
Details for the file tooltils-1.5.0-py3-none-any.whl
.
File metadata
- Download URL: tooltils-1.5.0-py3-none-any.whl
- Upload date:
- Size: 27.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41c52c3a521c48ed22c6b9af8ed3f335e0ee3e868cf00d413d3da2be18d1d800 |
|
MD5 | cbd7452dbe2265ae93b500d40f2d2072 |
|
BLAKE2b-256 | 885d191d323236eccc6265160c097ce144e29298c7bbdfa89596d4d1a02febe2 |