semvec/pypi-packages huggingface dataset:
hashed 2.2.0
Provides secured hashes for given data
License: MIT
Requires Python: >=3.6
Keywords: python, hashing, sha256, sha512

## Python Package Link: [![PyPI version](https://img.shields.io/pypi/v/hashed.svg)](https://pypi.org/project/hashed/)

> A simple SHA-2 implementation in python which gives hash for string or a file.
> Suported hashing algorithms: SHA56, SHA512

## CLI Tool Usage

* Example

```python
python hashed/cli.py -s "Hello World!!" --sha256
```

```
Hash:  096c0a72c31f9a2d65126d8e8a401a2ab2f2e21d0a282a6ffe6642bbef65ffd9
```


* For help
```python
usage: Hashing Library [-h] [--sha256] [--sha512] [-s STRING] [-f FILE] [-fb BINARY_FILE] [-t] [-p] [-b]

Provides secured hashes for given data

options:
  -h, --help            show this help message and exit
  --sha256              Generates SHA-256 for given input (default: False)
  --sha512              Generates SHA-512 for given input (default: False)
  -s STRING, --string STRING
                        String to be hashed (default: None)
  -f FILE, --file FILE  File to be hashed (default: None)
  -fb BINARY_FILE, --binary_file BINARY_FILE
                        Binary file to be hashed (default: None)
  -t, --test            Test accuracy of algorithm (default: False)
  -p, --perf            Log performance of the algorithm (default: False)
  -b, --bits            Returns size of hashed message in bytes (default: False)

Currently supported hashes [SHA256, SHA512]
```


## Package Usage

```python
from hashed import HashLib
h = HashLib('sha256').hasher_class()
h.hex_digest("Hello World")
```

## Code Coverage and UTs

- Run UT

```
pytest
```

- Generate Coverage

```
coverage run -m pytest test
coverage html
```

## Functions Supported

- hex_digest
- file_digest
- digest
- hashed_bits
- digest_size

## For Algo refer: [SHA-256 Wiki](https://en.wikipedia.org/wiki/SHA-2)

## For more refer:

- https://blog.boot.dev/cryptography/how-sha-2-works-step-by-step-sha-256/
- https://github.com/mukund26/softwareEnggGuide/blob/main/sha256-384-512.pdf
attotree 0.1.6
description
License: MIT

Attotree
========

.. |info-badge| image:: https://img.shields.io/badge/Project-Info-blue
    :target: https://github.com/karel-brinda/attotree
.. |github-release-badge| image:: https://img.shields.io/github/release/karel-brinda/attotree.svg
    :target: https://github.com/karel-brinda/attotree/releases/
.. |pypi-badge| image:: https://img.shields.io/pypi/v/attotree.svg
    :target: https://pypi.org/project/attotree/
.. |doi-badge| image:: https://zenodo.org/badge/DOI/110.5281/zenodo.10945896.svg
    :target: https://doi.org/10.5281/zenodo.10945896
.. |ci-tests-badge| image:: https://github.com/karel-brinda/attotree/actions/workflows/ci.yml/badge.svg
    :target: https://github.com/karel-brinda/attotree/actions/

|info-badge| |github-release-badge| |pypi-badge| |doi-badge| |ci-tests-badge|


Introduction
------------

Rapid estimation of phylogenetic trees directly from FASTA files in the style of
`Mashtree <https://github.com/lskatz/mashtree>`_. With the default options,
its output is identical to Mashtree,
but the computation takes only a fraction of time.


Installation
------------

Using Bioconda
~~~~~~~~~~~~~~

.. code-block:: bash

    conda install -y -c bioconda -c conda-forge attotree


Using PyPI
~~~~~~~~~~

First, install the following dependencies:

* `Mash <https://github.com/marbl/Mash>`_
* `QuickTree <https://github.com/khowe/quicktree>`_


Then install the Attotree Python package:

.. code-block:: bash

    pip install -U attotree


Quick example
-------------

.. code-block:: bash

    conda install attotree
    attotree tests/*.fa


Command-line parameters
-----------------------


.. code-block::

    $ attotree -h
    
    Program: attotree (rapid estimation of phylogenetic trees using sketching)
    Version: 0.1.6
    Author:  Karel Brinda <karel.brinda@inria.fr>

    usage: attotree [-k INT] [-s INT] [-t INT] [-o FILE] [-m STR] [-d DIR] [-L] [-D] [-V] genome [genome ...]

    positional arguments:
      genome      input genome file(s) (fasta / gzipped fasta / list of files when "-L")

    options:
      -h          show this help message and exit
      -v          show program's version number and exit
      -k INT      kmer size [21]
      -s INT      sketch size [10000]
      -t INT      number of threads [#cores, 10]
      -o FILE     newick output [-]
      -m STR      tree construction method (nj/upgma) [nj]
      -d DIR      tmp dir [default system, /var/folders/z6...]
      -L          input files are list of files
      -D          debugging (don't remove tmp dir)
      -V          verbose output

Issues
------

Please use `Github issues <https://github.com/karel-brinda/attotree/issues>`_.


Changelog
---------

See `Releases <https://github.com/karel-brinda/attotree/releases>`_.


Licence
-------

`MIT <https://github.com/karel-brinda/attotree/blob/master/LICENSE.txt>`_


Authors
-------

`Karel Brinda <http://brinda.eu>`_ <karel.brinda@inria.fr>