faker.providers.sbn.en_US

Package Contents

Classes

SBNProvider

Generates fake SBNs. These are the precursor to the ISBN and are

Provider

Generates fake SBNs. These are the precursor to the ISBN and are

class faker.providers.sbn.en_US.SBNProvider(generator: Any)

Bases: faker.providers.BaseProvider

Generates fake SBNs. These are the precursor to the ISBN and are largely similar to ISBN-10.

See https://www.isbn-international.org/content/what-isbn for the format of ISBNs. SBNs have no EAN prefix or Registration Group.

_body() List[str]

Generate the information required to create an SBN

static _registrant_publication(reg_pub: str, rules: List[rules.RegistrantRule]) Tuple[str, str]

Separate the registration from the publication in a given string. :param reg_pub: A string of digits representing a registration

and publication.

Parameters

rules – A list of RegistrantRules which designate where to separate the values in the string.

Returns

A (registrant, publication) tuple of strings.

sbn9(separator: str = '-') str
class faker.providers.sbn.en_US.Provider(generator: Any)

Bases: faker.providers.sbn.Provider

Generates fake SBNs. These are the precursor to the ISBN and are largely similar to ISBN-10.

See https://www.isbn-international.org/content/what-isbn for the format of ISBNs. SBNs have no EAN prefix or Registration Group.