This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author oconnor663
Recipients Zooko.Wilcox-O'Hearn, christian.heimes, corona10, jstasiak, kmaork, larry, mgorny, oconnor663, xtreak
Date 2022-01-11.23:47:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1641944848.79.0.943924325231.issue39298@roundup.psfhosted.org>
In-reply-to
Content
Ah, good idea. I've published the new C implementation as: https://test.pypi.org/project/blake3-experimental-c/

You can install it with: pip install -i https://test.pypi.org/simple/ blake3-experimental-c

Despite the package name change, the extension module is still "blake3", so we still "import blake3" to get at it. For example:

    $ pip install -i https://test.pypi.org/simple/ blake3-experimental-c
    $ python
    >>> from blake3 import blake3
    >>> blake3(b"foo").hexdigest()
    '04e0bb39f30b1a3feb89f536c93be15055482df748674b00d26e5a75777702e9'
    >>> blake3(b"foo", max_threads=blake3.AUTO).hexdigest()
    '04e0bb39f30b1a3feb89f536c93be15055482df748674b00d26e5a75777702e9'

To run the Rust implementation's test suite against this implementation, you could then:

    $ pip install pytest numpy
    $ git clone https://github.com/oconnor663/blake3-py
    $ python -m pytest blake3-py/tests/test_blake3.py
    ===================== test session starts =====================
    platform linux -- Python 3.10.1, pytest-6.2.5, py-1.11.0, pluggy-0.13.1
    rootdir: /tmp
    collected 24 items

    blake3-py/tests/test_blake3.py ........................ [100%]

    ===================== 24 passed in 0.30s ======================
History
Date User Action Args
2022-01-11 23:47:28oconnor663setrecipients: + oconnor663, larry, christian.heimes, mgorny, Zooko.Wilcox-O'Hearn, jstasiak, corona10, xtreak, kmaork
2022-01-11 23:47:28oconnor663setmessageid: <1641944848.79.0.943924325231.issue39298@roundup.psfhosted.org>
2022-01-11 23:47:28oconnor663linkissue39298 messages
2022-01-11 23:47:28oconnor663create