General Python tools
Project description
This is a collection of utility modules for Python projects.
Features
“classes” module:
Several classes derived from Python dicts, e.g. Mirror and Proxy.
“html” module:
HtmlEntityProxy - a dict which returns unicode characters when given a named HTML entity
“http” module:
extract_hostname (using url.split and raising ValueError)
“coding” module:
Factory functions to create safe_encode resp. safe_decode functions as needed
Documentation
The modules are documented by doctests. Full documentation for end users can be found in the “docs” folder.
Installation
Simply install visaplan.tools by using pip:
pip install visaplan.tools
or by adding it to your buildout:
[buildout] ... eggs = visaplan.tools
and then running bin/buildout
Contribute
Issue Tracker: https://github.com/visaplan/visaplan.tools/issues
Source Code: https://github.com/visaplan/visaplan.tools
Support
If you are having issues, please let us know; please use the issue tracker mentioned above.
License
The project is licensed under the Apache Software License.
Contributors
Tobias Herp, tobias.herp@visaplan.com
Changelog
1.2.1 (unreleased)
new module profile:
StopWatch context manager and @profile decorator
module sequences:
new function nocomment_split
module dicts:
new function make_key_injector [tobiasherp]
1.2 (2018-07-11)
breaking changes:
classes: Proxy is now a factory rather than a class
modules debug, dicts, lands0, minifuncs [tobiasherp]
1.1 (2018-06-12)
modules sequences, times, files
Minor Bugfixes [tobiasherp]
1.0 (2018-06-11)
Initial release, including modules classes, html, http and coding [tobiasherp]
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
File details
Details for the file visaplan.tools-1.2.1.dev2.tar.gz
.
File metadata
- Download URL: visaplan.tools-1.2.1.dev2.tar.gz
- Upload date:
- Size: 39.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/2.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71e3f51b361cb3bb84cf93878bba7696ea1d4a1591b344c8b56ffbc4fa36e25b |
|
MD5 | a250d86fe1fcf9efeea23e4c34a80942 |
|
BLAKE2b-256 | 127e50de698a51ce34defea358d76cd3c66b0b31b245d9fff53667b912198ee7 |