Technitribe

interesting problems (and a few solutions, too)

Technitribe
  • About the Authors
  • Log In
  • Log Out
  • Lost Password
  • Register
  • Reset Password
    • 28 Sep 2014

      New update for python-bitmath released

      Written by Tim Bielawa

      bitmath-1.0.8-1 was published on 2014-08-14.

      Major Updates

      • bitmath has a proper documentation website up now on Read the Docs, check it out:
        • bitmath.readthedocs.org
      • bitmath is now Python 3.x compatible
      • bitmath is now included in the Extra Packages for Enterprise Linux EPEL6 and EPEL7repositories
      • merged 6 pull requests from 3 contributors

      Bug Fixes

      • fixed some math implementation bugs
        • commutative multiplication
        • true division

      Changes

      Added Functionality

      • best-prefix guessing: automatic best human-readable unit selection
      • support for bitwise operations
      • formatting customization methods (including plural/singular selection)
      • exposed many more instance attributes (all instance attributes are usable in custom formatting)
      • a context manager for applying formatting to an entire block of code
      • utility functions for sizing files and directories
      • add instance properties equivalent to instance.to_THING() methods

      Project

      Tests

      • Test suite is now implemented using Python virtualenv’s for consistency across across platforms
      • Test suite now contains 150 unit tests. This is 110 more tests than the previous major release (1.0.4-1)
      • Test suite now runs on EPEL6 and EPEL7
      • Code coverage is stable around 95-100%

      Examples Below the Fold

      (more…)

      1 Comment
    • 27 Mar 2014

      python-bitmath – Now available in Fedora!

      Written by Tim Bielawa

      Last week I wrote about bitmath, a Python module I made for working with (prefix) units commonly used to represent file sizes, e.g., kB, GiB, Byte, TB.  I can now happily say that python-bitmath has passed the review process and has been officially accepted into Fedora!

      Need more proof?

      References:

      • bitmath on the Python Package Index
      • bitmath on GitHub (with examples!)
      • original blog post about bitmath
      2 Comments
    • The Authors
    • Virtual Disk Guide

      Interested in virtualization? Do QCOWs rule your filesystem? Are you a libvirt or KVM+QEMU wizard? I wrote a book about virtual disk management. Check out the The Linux Sysadmin's Guide to Virtual Disks online for free at ScribesGuides.com.


      Consider supporting the author by purchasing a hard copy of the first edition for just $10.00 on Lulu.com.

    • bitmath

      bitmath is a Python library for dealing with file size units (GiB's, kB's, etc) in a sane way. bitmath supports arithmetic, rich comparison, conversion, automatic best human-readable representation, and many other utility functions. Read some examples on the docs site or check out the source on GitHub.

    • latest posts

      • Using jq to filter an array of objects from JSON September 9, 2019
      • Two Year Break — And we’re back! November 16, 2018
      • [Updated] GitHub + Gmail — Filtering for Review Requests and Mentions January 20, 2017
    • tags

      bitmath blog conference css dblatex DNS DocBook eclipse Emacs Erlang Fedora fedora 22 filter GNU Screen Haiku Introduction java jboss LCSEE Linux locale locales fix slicehost ubuntu Macports module nist nXML-Mode opengl open source OS X package packaging pki prefix units presentation project pypi Python scholarship si summit Tutorial ubuntu xcode XML XMPP
    • h4ck teh world

      tbielawatbielawa

    Creative Commons License
    Technitribe by Tim Bielawa is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.