14
0
forked from pool/python-pyhibp

Accepting request 712848 from home:mnhauke

- Update to version 3.1.0
  * New function: pwnedpasswords.suffix_search(hash_prefix=prefix)
    was created in order to have a dedicated function return the
    suffix list.
  * Function modification notice: pwnedpasswords.is_password_breached
    will be modified in an upcoming release to remove the ability
    to search for suffixes; use suffix_search(hash_prefix=prefix)
    instead. The parameter first_5_hash_chars will be removed as a
    consequence.
  * Upcoming return type change for empty sets: For the functions
    get_account_breaches, get_all_breaches, get_single_breach, and
    get_pastes--all contained in the pyhibp module--when no items
    would be returned from the HIBP backend, the returned item will
    be an empty object matching the standard return type for the
    function, and not a Boolean False.
    This will occur when v4.0.0 is released. Return types will be:
    - get_account_breaches -> [] / list
    - get_all_breaches -> [] / list
    - get_single_breach -> {} / dict
    - get_pastes -> [] / list

OBS-URL: https://build.opensuse.org/request/show/712848
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyhibp?expand=0&rev=3
This commit is contained in:
Tomáš Chvátal
2019-07-02 07:28:53 +00:00
committed by Git OBS Bridge
parent dd4d62498c
commit 81932cd76c
3 changed files with 31 additions and 3 deletions

3
pyhibp-3.1.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7873dea2dd309fdd67a7479741d434c29f40ff385018fc9676880ec001cebcf1
size 27859

View File

@@ -1,3 +1,27 @@
-------------------------------------------------------------------
Mon Jul 1 12:34:45 UTC 2019 - Martin Hauke <mardnh@gmx.de>
- Update to version 3.1.0
* New function: pwnedpasswords.suffix_search(hash_prefix=prefix)
was created in order to have a dedicated function return the
suffix list.
* Function modification notice: pwnedpasswords.is_password_breached
will be modified in an upcoming release to remove the ability
to search for suffixes; use suffix_search(hash_prefix=prefix)
instead. The parameter first_5_hash_chars will be removed as a
consequence.
* Upcoming return type change for empty sets: For the functions
get_account_breaches, get_all_breaches, get_single_breach, and
get_pastes--all contained in the pyhibp module--when no items
would be returned from the HIBP backend, the returned item will
be an empty object matching the standard return type for the
function, and not a Boolean False.
This will occur when v4.0.0 is released. Return types will be:
- get_account_breaches -> [] / list
- get_all_breaches -> [] / list
- get_single_breach -> {} / dict
- get_pastes -> [] / list
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jan 28 11:36:35 UTC 2019 - mardnh@gmx.de Mon Jan 28 11:36:35 UTC 2019 - mardnh@gmx.de

View File

@@ -1,5 +1,5 @@
# #
# spec file for package python-pyHIBP # spec file for package python-pyhibp
# #
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# #
@@ -12,12 +12,13 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pyhibp Name: python-pyhibp
Version: 3.0.0 Version: 3.1.0
Release: 0 Release: 0
Summary: An interface to Troy Hunt's 'Have I Been Pwned' public API Summary: An interface to Troy Hunt's 'Have I Been Pwned' public API
License: AGPL-3.0-or-later License: AGPL-3.0-or-later