summaryrefslogtreecommitdiff
path: root/pyeclib/core.py
Commit message (Collapse)AuthorAgeFilesLines
* Use hacking checksTim Burke2022-04-081-1/+1
| | | | Change-Id: I5ed0829d1124c813fb3457cf45152a0f175cebea
* Add a __repr__ for ECPyECLibDriverTim Burke2021-05-101-0/+5
| | | | Change-Id: I1a22049ee42fc5ee7832989e75c6c9b7147db232
* Switch from pep8 to flake8 for lintingTim Burke2017-05-031-2/+0
| | | | | | | ...and clean up the unused variables, unused imports, and inconsistent spacing that flake8 revealed. Change-Id: I3ae1e834f01f477be88dfc48de954eeaf19e43cf
* Assorted combinatoric-test fixesTim Burke2016-11-171-7/+8
| | | | | | | | | | | | | * Test flat_xor_hd decoding/reconstruction * Use random input * Make py3-friendly Additionally: * Accept iterables as fragment payloads, rather than just lists * Add a __repr__ for ECDrivers Change-Id: Ic5b5e5ef2420afdc318b403fcbea1ff106e16a33
* Disable error reporting during VALID_EC_TYPES evalTushar Gohad2015-11-231-4/+8
| | | | | ... this should not be required after upstream liberasurecode has more configurable logging
* Allow 'flat_xor_hd_4' from external APITushar Gohad2015-09-081-10/+7
| | | | Add 'hd' argument back to the internal API
* PEP8 fixesTushar Gohad2015-07-221-35/+43
| | | | TODO: test code
* Fix Python 3 issuesVictor Stinner2015-07-211-3/+3
| | | | | | | | | * Use relative imports * Fix bytes/unicode issues in tests * Replace long() with int() * Replace a/b with a//b to get integer division * Use a key function to sort list * Replace zip() with list(zip()) in a test to get a list on Python 3
* Expose liberasurecode error codes in PyECLibTushar Gohad2015-07-191-36/+12
| | | | | ... also move exception handing down to the C backend layer, so it is easier to add new error codes. Addresses #61.
* Example of passing different exception when decode has insifficient fragments.Kevin Greenan2015-07-121-3/+6
|
* Convert remaining ECPyECLibException instances to ECDriverErrorTushar Gohad2015-03-131-6/+6
|
* Replace ECPyECLibException with ECDriverErrorKevin Greenan2015-03-131-25/+14
|
* Wrap calls to pyeclib_c in core.py with try/catch and wrote exampleKevin Greenan2015-03-101-8/+30
| | | | test to validate exceptions.
* Re-add in support for both HD 3 and 4 flat XOR codes...Kevin Greenan2015-02-281-1/+3
|
* Add tests for decode metadata checks.Kevin Greenan2015-02-071-3/+7
|
* Adding support for checking fragment metadata during decode and plumbingKevin Greenan2015-02-071-5/+15
| | | | ragne parameter from python down to the C API.
* Remove algsig integrity checks, make crc32 the defaultTushar Gohad2015-02-011-3/+1
| | | | Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
* Removing 'fragment_metadata_len' from the check metaadta API, as it is not ↵Kevin Greenan2015-01-191-5/+1
| | | | needed.
* Fix the checksum unit tests for crc32.Kevin Greenan2015-01-191-4/+4
|
* Add option to return fragment metadata as a dict, instead of an opaque buffer.Kevin Greenan2015-01-191-2/+2
|
* Refactor pyeclib python src tree for nosetestsTushar Gohad2014-12-101-0/+279
pyeclib needs to be installed in order to run unit tests which shouldn't be the case. We should rely on in-source modules. This addresses issue#56. Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>