Welcome to xoutil’s documentation!¶
xoutil is a collection of disparate utilities that does not conform a framework for anything. xoutil is essentially an extension to the Python’s standard library.
What’s new in this release¶
- Add
xoutil.collections.PascalSet
andxoutil.collections.BitPascalSet
. - Add
xoutil.functools.lwraps()
. - Add
xoutil.objects.multi_getter()
,xoutil.objects.get_branch_subclasses()
,xoutil.objects.fix_method_documentation()
. - Add
xoutil.string.safe_str()
- Remove long deprecated modules:
xoutil.aop
andxoutil.proxy
. - Deprecate
xoutil.html
entirely. - The following modules are included on a provisional basis. Backwards incompatible changes (up to and including removal of the module) may occur if deemed necessary by the core developers:
Fixes in 1.7.1.post1:
Fix issue with both
xoutil.string.safe_decode()
andxoutil.string.safe_encode()
.Previously, the parameter encoding could contain an invalid encoding name and the function could fail.
Fixes in 1.7.1.post2:
Fix
xoutil.string.cut_suffix()
. The following invariant was being violated:>>> cut_suffix(v, '') == v # for any value of 'v'
Warning
Due to lack of time, we have decided to release this version without proper releases of 1.7.0 and 1.6.11. You should also read the 1.7.0 notes in the Changelog.
Contents:¶
xoutil
– Collection of tools. Top-level imports.xoutil.annotate
- Py3k compatible annotations for Python 2xoutil.bases
- Numeric base 32 and base 64 integer representationsxoutil.bound
– Helpers for bounded execution of co-routines.xoutil.collections
- High-performance container datatypesxoutil.connote
– Predicatesxoutil.context
- Simple execution contextsxoutil.crypto
- Other cryptographic servicesxoutil.data
- Useful data-structures and data related algorithmsxoutil.datetime
- Basic date and time typesxoutil.decorator
- Several decoratorsxoutil.deprecation
- Utils for marking deprecated elementsxoutil.formatter
- Formattingxoutil.fs
– file system utilitiesxoutil.functools
- Higher-order functions and operations on callable objectsxoutil.html
– Helpers for manipulating HTML.xoutil.inspect
– Inspect live objectsxoutil.iterators
- Functions creating iterators for efficient loopingxoutil.json
- Encode and decode the JSON formatxoutil.logger
- Standard logger helpersxoutil.modules
– Utilities for working with modulesxoutil.names
– Utilities for handling objects namesxoutil.objects
- Functions for dealing with objectsxoutil.params
– Function signaturesxoutil.pprint
– Extension to the data pretty printer.xoutil.progress
- Console progress utilsxoutil.records
- Records definitions.xoutil.string
- Common string operations.xoutil.subprocess
- Extensions to subprocess stardard modulexoutil.textwrap
– Text wrapping and filling.xoutil.threading
– Higher-level threading interfacexoutil.types
- Names for built-in types and extensions.xoutil.cli
– Command line application facilitiesxoutil.decorator.development
- Decorators for development annotationsxoutil.decorator.meta
- Decorator-making facilitiesxoutil.eight
– Extensions for writing code that runs on Python 2 and 3xoutil.fs.path
– Path utilitiesxoutil.html.entities
– Definitions of HTML general entities.xoutil.html.parser
– A simple parser that can handle HTML and XHTML.xoutil.validators.identifiers
– Simple identifiers validators- Other utils
- Changelog
- Work plans (backlogs)
- How to contribute to xoutil
- List of contributors
- Copyright and Licence