From 6d7ba58f880be618ade07f8ea080fe8c4bf8a896 Mon Sep 17 00:00:00 2001 From: cyfraeviolae Date: Wed, 3 Apr 2024 03:10:44 -0400 Subject: venv --- .../faker/providers/barcode/ja_JP/__init__.py | 49 +++++++++++++++++++++ .../ja_JP/__pycache__/__init__.cpython-311.pyc | Bin 0 -> 2360 bytes 2 files changed, 49 insertions(+) create mode 100644 venv/lib/python3.11/site-packages/faker/providers/barcode/ja_JP/__init__.py create mode 100644 venv/lib/python3.11/site-packages/faker/providers/barcode/ja_JP/__pycache__/__init__.cpython-311.pyc (limited to 'venv/lib/python3.11/site-packages/faker/providers/barcode/ja_JP') diff --git a/venv/lib/python3.11/site-packages/faker/providers/barcode/ja_JP/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/barcode/ja_JP/__init__.py new file mode 100644 index 0000000..b4d571f --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/barcode/ja_JP/__init__.py @@ -0,0 +1,49 @@ +from .. import Provider as BarcodeProvider + + +class Provider(BarcodeProvider): + """Implement barcode provider for ``ja_JP`` locale. + + Japanese local EAN barcodes are called JAN-codes. + + Sources: + + - https://gs1.org/standards/id-keys/company-prefix + - https://www.dsri.jp/jan/about_jan.html + + .. |JaJpProvider.localized_ean| replace:: + :meth:`JaJpProvider.localized_ean() ` + + .. |JaJpProvider.localized_ean8| replace:: + :meth:`JaJpProvider.localized_ean8() ` + + .. |JaJpProvider.localized_ean13| replace:: + :meth:`JaJpProvider.localized_ean13() ` + """ + + local_prefixes = (4, 5), (4, 9) + + def jan(self, length: int = 13) -> str: + """Generate a JAN barcode of the specified ``length``. + + This method is an alias for |JaJpProvider.localized_ean|. + + :sample: + :sample: length=8 + :sample: length=13 + """ + return self.localized_ean(length) + + def jan8(self) -> str: + """Generate a 8 digit JAN barcode. + + This method is an alias for |JaJpProvider.localized_ean8|. + """ + return self.localized_ean8() + + def jan13(self) -> str: + """Generate a 13 digit JAN barcode. + + This method is an alias for |JaJpProvider.localized_ean13|. + """ + return self.localized_ean13() diff --git a/venv/lib/python3.11/site-packages/faker/providers/barcode/ja_JP/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/barcode/ja_JP/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000..67dfcb5 Binary files /dev/null and b/venv/lib/python3.11/site-packages/faker/providers/barcode/ja_JP/__pycache__/__init__.cpython-311.pyc differ -- cgit v1.2.3