summaryrefslogtreecommitdiff
path: root/venv/lib/python3.11/site-packages/faker/providers/ssn/hr_HR
diff options
context:
space:
mode:
authorcyfraeviolae <cyfraeviolae>2024-04-03 03:17:55 -0400
committercyfraeviolae <cyfraeviolae>2024-04-03 03:17:55 -0400
commit12cf076118570eebbff08c6b3090e0d4798447a1 (patch)
tree3ba25e17e3c3a5e82316558ba3864b955919ff72 /venv/lib/python3.11/site-packages/faker/providers/ssn/hr_HR
parentc45662ff3923b34614ddcc8feb9195541166dcc5 (diff)
no venv
Diffstat (limited to 'venv/lib/python3.11/site-packages/faker/providers/ssn/hr_HR')
-rw-r--r--venv/lib/python3.11/site-packages/faker/providers/ssn/hr_HR/__init__.py49
-rw-r--r--venv/lib/python3.11/site-packages/faker/providers/ssn/hr_HR/__pycache__/__init__.cpython-311.pycbin2568 -> 0 bytes
2 files changed, 0 insertions, 49 deletions
diff --git a/venv/lib/python3.11/site-packages/faker/providers/ssn/hr_HR/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/ssn/hr_HR/__init__.py
deleted file mode 100644
index 54a2173..0000000
--- a/venv/lib/python3.11/site-packages/faker/providers/ssn/hr_HR/__init__.py
+++ /dev/null
@@ -1,49 +0,0 @@
-from typing import List
-
-from .. import Provider as SsnProvider
-
-
-def checksum(digits: List[int]) -> int:
- """
- Calculate and return control digit for given list of digits based on
- ISO7064, MOD 11,10 standard.
- """
- remainder = 10
- for digit in digits:
- remainder = (remainder + digit) % 10
- if remainder == 0:
- remainder = 10
- remainder = (remainder * 2) % 11
-
- control_digit = 11 - remainder
- if control_digit == 10:
- control_digit = 0
- return control_digit
-
-
-class Provider(SsnProvider):
- """
- The Personal identification number (Croatian: Osobni identifikacijski
- broj or OIB) is a permanent national identification number of every
- Croatian citizen and legal persons domiciled in the Republic of Croatia.
-
- OIB consists of 11 digits which contain no personal information. The OIB
- is constructed from ten randomly chosen digits and one digit control number
- (international standard ISO 7064, module 11.10).
- """
-
- def ssn(self) -> str:
- digits = self.generator.random.sample(range(10), 10)
-
- digits.append(checksum(digits))
-
- return "".join(map(str, digits))
-
- vat_id_formats = ("HR###########",)
-
- def vat_id(self) -> str:
- """
- http://ec.europa.eu/taxation_customs/vies/faq.html#item_11
- :return: A random Croatian VAT ID
- """
- return self.bothify(self.random_element(self.vat_id_formats))
diff --git a/venv/lib/python3.11/site-packages/faker/providers/ssn/hr_HR/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/ssn/hr_HR/__pycache__/__init__.cpython-311.pyc
deleted file mode 100644
index 388a2e6..0000000
--- a/venv/lib/python3.11/site-packages/faker/providers/ssn/hr_HR/__pycache__/__init__.cpython-311.pyc
+++ /dev/null
Binary files differ