Personal tools
Skip to content. | Skip to navigation
bitmath simplifies many facets of interacting with file sizes in various units. Examples include: converting between SI and NIST prefix units (GiB to kB), converting between units of the same type (SI to SI, or NIST to NIST), basic arithmetic operations (subtracting 42KiB from 50GiB), and rich comparison operations (1024 Bytes == 1KiB), bitwise operations, sorting, automatic best human-readable prefix selection, and completely customizable formatting. In addition to the conversion and math operations, bitmath provides human readable representations of values which are suitable for use in interactive shells as well as larger scripts and applications. bitmath can parse strings into proper objects and has support for integration with argparse as a custom argument type. bitmath is thoroughly unittested, with over 170 individual tests (a number which is always increasing). bitmaths test-coverage is almost always at 100%.
Bleach is an HTML sanitizing library that escapes or strips markup and attributes based on a white list. Bleach can also linkify text safely, applying filters that Django’s urlize filter cannot, and optionally setting rel attributes, even on links already in the text. Bleach is intended for sanitizing text from untrusted sources. If you find yourself jumping through hoops to allow your site administrators to do lots of things, you’re probably outside the use cases. Either trust those users, or don’t. Because it relies on html5lib, Bleach is as good as modern browsers at dealing with weird, quirky HTML fragments. And any of Bleach’s methods will fix unbalanced or mis-nested tags.
Blessed is a more simplified wrapper around curses, providing : Styles, color, and maybe a little positioning without necessarily clearing the whole screen first. Leave more than one screenful of scrollback in the buffer after your program exits, like a well-behaved command-line application should. No more C-like calls to tigetstr and tparm. Act intelligently when somebody redirects your output to a file, omitting all of the terminal sequences such as styling, colors, or positioning. Dead-simple keyboard handling, modeled after the Basic language’s INKEY$ Blessed provides just one top-level object: Terminal. Instantiating a Terminal figures out whether you’re on a terminal at all and, if so, does any necessary setup. After that, you can proceed to ask it all sorts of things about the terminal, such as its size and color support, and use its styling to construct strings containing color and styling. Also, the special sequences inserted with application keys (arrow and function keys) are understood and decoded, as well as your locale-specific encoded multibyte input.
Blinker provides a fast dispatching system that allows any number of interested parties to subscribe to events, or "signals".
Boto is a Python package that provides interfaces to Amazon Web Services. It supports over thirty services, such as S3 (Simple Storage Service), SQS (Simple Queue Service), and EC2 (Elastic Compute Cloud) via their REST and Query APIs. The goal of boto is to support the full breadth and depth of Amazon Web Services. In addition, boto provides support for other public services such as Google Storage in addition to private cloud systems like Eucalyptus, OpenStack and Open Nebula.
BSON is a binary-encoded serialization of JSON-like documents. BSON is designed to be lightweight, traversable, and efficient. BSON, like JSON, supports the embedding of objects and arrays within other objects and arrays.
This module provides various memoizing collections and decorators, including a variant of the Python 3 Standard Library @lru_cache function decorator. This module provides multiple cache implementations based on different cache algorithms, as well as decorators for easily memoizing function and method calls.
OpenStack ceilometer provides services to measure and collect metrics from OpenStack components. This package contains the ceilometer python library.
This is a client library for Ceilometer built on the Ceilometer API. It provides a Python API (the ceilometerclient module) and a command-line tool (ceilometer).