faker.providers.sbn.en_US
¶
Package Contents¶
Classes¶
Generates fake SBNs. These are the precursor to the ISBN and are |
|
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.
- 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.
- 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.