Needletail

Latest version: v0.5.0

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

Scan your dependencies

0.4.1

Added
- `ParseErrorKind::EmptyFile` variant to handle cases where there are less than two bytes in a file [[51][51]]

0.4.0

Changed
- Added `parse_fastx_file` which replaces `parse_sequence_reader` and offers an iterator like usage and is faster
than 0.3. Also adds `parse_fastx_reader` and `parse_fastx_stdin`.
- `SequenceRecord` now offers more information about the file such as line ending, which allows writing a file identical
to the input one.

0.3.1

Fixed
- Needletail no longer runs out of memory when parsing large, compressed files.

[51]: https://github.com/onecodex/needletail/issues/51

0.3.0

Added
- Improved error reporting (i.e., a parse failure now gives the record it failed on).
- Significant code cleanup and additional linting (`cargo clippy`).
- Significant additional test coverage, including via fuzzing.
- Significant improvements to library documentation.

Changed
- The `.kmers` method has been simplified and a new `.canonical_kmers` method has been introduced with much of the original's functionality.
- Added `parse_sequence_reader`, which replaces `fastx_stream` and `fastx_bytes`.
- `fastx_cli` updated and renamed to `parse_sequence_path`.
- `SeqRecord` is now `SequenceRecord` and many of its methods are now in the `Sequence` trait (e.g., working on byte slices).
- Automatic decompression now takes `Read` instead of `Read + Seek` so we can handle e.g. gzip files piped in through `stdin`.
- See [this link](https://github.com/onecodex/needletail/pull/26#issuecomment-530982670) for additional details on updating code to `v0.3.0`.

Removed
- Single-file zip handling (zip requires `Seek`) 😞

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.