Bitmath

Latest version: v1.3.3.1

Safety actively analyzes 682387 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 2

1.2.01

<https://github.com/tbielawa/bitmath/releases/tag/1.2.0-1>`__ was
published on 2014-12-29.

Changes
=======

**Added Functionality**

* New utility: ``argparse`` integration: `bitmath.BitmathType
<https://bitmath.readthedocs.io/en/latest/module.html#argparse>`_.
Allows you to specify arguments as bitmath types.

Documentation
=============

* The command-line ``bitmath`` tool now has a `proper manpage
<https://github.com/tbielawa/bitmath/blob/master/bitmath.1.asciidoc.in>`_

Project
=======

**Tests**

* The command-line ``bitmath`` tool is now properly unittested. Code
coverage back to ~100%.

1.1.01

<https://github.com/tbielawa/bitmath/releases/tag/1.1.0-1>`_ was
published on 2014-12-20.

* `GitHub Milestone Tracker for 1.1.0 <https://github.com/tbielawa/bitmath/milestones/1.1.0>`_

Changes
=======

**Added Functionality**

* New ``bitmath`` `command-line tool
<https://github.com/tbielawa/bitmath/issues/35>`_ added. Provides
CLI access to basic unit conversion functions
* New utility function `bitmath.parse_string
<http://bitmath.readthedocs.io/en/latest//module.html#bitmath-parse-string>`_
for parsing a human-readable string into a bitmath object. `Patch
submitted <https://github.com/tbielawa/bitmath/pull/42>`_ by new
contributor `tonycpsu <https://github.com/tonycpsu>`_.

1.1.00

1.0.81

<https://github.com/tbielawa/bitmath/releases/tag/1.0.8-1>`__ was
published on 2014-08-14.

* `GitHub Milestone Tracker for 1.0.8 <https://github.com/tbielawa/bitmath/issues?q=milestone%3A1.0.8>`_

Major Updates
=============

* bitmath has a proper documentation website up now on Read the Docs,
check it out: `bitmath.readthedocs.io
<http://bitmath.readthedocs.io/en/latest/>`_
* bitmath is now Python 3.x compatible
* bitmath is now included in the `Extra Packages for Enterprise Linux
<https://fedoraproject.org/wiki/EPEL>`_ EPEL6 and EPEL7 repositories
(`pkg info
<https://admin.fedoraproject.org/pkgdb/package/rpms/python-bitmath/>`_)
* merged 6 `pull requests
<https://github.com/tbielawa/bitmath/pulls?q=is%3Apr+closed%3A%3C2014-08-28>`_
from 3 `contributors
<https://github.com/tbielawa/bitmath/graphs/contributors>`_

Bug Fixes
=========

* fixed some math implementation bugs

* `commutative multiplication <https://github.com/tbielawa/bitmath/issues/18>`_
* `true division <https://github.com/tbielawa/bitmath/issues/2>`_

Changes
=======

**Added Functionality**

* `best-prefix
<http://bitmath.readthedocs.io/en/latest/instances.html#best-prefix>`_
guessing: automatic best human-readable unit selection
* support for `bitwise operations
<http://bitmath.readthedocs.io/en/latest/simple_examples.html#bitwise-operations>`_
* `formatting customization
<http://bitmath.readthedocs.io/en/latest/instances.html#format>`_
methods (including plural/singular selection)
* exposed many more `instance attributes
<http://bitmath.readthedocs.io/en/latest/instances.html#instances-attributes>`_
(all instance attributes are usable in custom formatting)
* a `context manager
<http://bitmath.readthedocs.io/en/latest/module.html#bitmath-format>`_
for applying formatting to an entire block of code
* utility functions for sizing `files
<http://bitmath.readthedocs.io/en/latest/module.html#bitmath-getsize>`_
and `directories
<http://bitmath.readthedocs.io/en/latest/module.html#bitmath-listdir>`_
* add `instance properties
<http://bitmath.readthedocs.io/en/latest/instances.html#instance-properties>`_
equivalent to ``instance.to_THING()`` methods

Project
=======

**Tests**

* Test suite is now implemented using `Python virtualenv's
<https://github.com/tbielawa/bitmath/blob/master/Makefile#L177>`_
for consistency across across platforms
* Test suite now contains 150 unit tests. This is **110** more tests

1.0.51

*******************************

1.0.41

***************

This is the first release of **bitmath**. `bitmath-1.0.4-1
<https://github.com/tbielawa/bitmath/releases/tag/1.0.4-1>`__ was
published on 2014-03-20.

Project
=======

Available via:

* `PyPi <https://pypi.python.org/pypi/bitmath/>`_
* Fedora 19
* Fedora 20

bitmath had been under development for 12 days when the 1.0.4-1
release was made available.

Debut Functionality
===================

* 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)
* Rich comparison operations (``1024 Bytes == 1KiB``)
* Sorting
* Useful *console* and *print* representations

Page 2 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.