summaryrefslogtreecommitdiff
path: root/venv/lib/python3.11/site-packages/faker/providers/company/es_ES
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/company/es_ES
parentc45662ff3923b34614ddcc8feb9195541166dcc5 (diff)
no venv
Diffstat (limited to 'venv/lib/python3.11/site-packages/faker/providers/company/es_ES')
-rw-r--r--venv/lib/python3.11/site-packages/faker/providers/company/es_ES/__init__.py127
-rw-r--r--venv/lib/python3.11/site-packages/faker/providers/company/es_ES/__pycache__/__init__.cpython-311.pycbin4218 -> 0 bytes
2 files changed, 0 insertions, 127 deletions
diff --git a/venv/lib/python3.11/site-packages/faker/providers/company/es_ES/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/company/es_ES/__init__.py
deleted file mode 100644
index 0306b52..0000000
--- a/venv/lib/python3.11/site-packages/faker/providers/company/es_ES/__init__.py
+++ /dev/null
@@ -1,127 +0,0 @@
-from collections import OrderedDict
-
-from .. import Provider as CompanyProvider
-
-
-class Provider(CompanyProvider):
- """
- Provider for company names for es_ES locale
-
- Company naming scheme and probabilities are inspired by and/or based on existing companies in Spain.
-
- Sources:
- - https://en.wikipedia.org/wiki/List_of_legal_entity_types_by_country
- - https://ranking-empresas.eleconomista.es/ranking_empresas_nacional.html
- """
-
- formats = (
- "{{company_prefix}} {{last_name}} {{company_suffix}}",
- "{{company_type}} {{random_company_acronym}} {{company_suffix}}",
- "{{company_type}} {{last_name}} {{company_suffix}}",
- "{{company_type}} {{random_company_adjective}} {{company_suffix}}",
- "{{company_type}} {{last_name}} {{random_name_complements}} {{company_suffix}}",
- "{{last_name}} {{random_name_complements}} {{company_suffix}}",
- "{{last_name}} y {{last_name}} {{company_suffix}}",
- "{{first_name}} {{last_name}} {{last_name}} {{company_suffix}}",
- )
-
- company_suffixes = OrderedDict(
- [
- ("S.A.", 0.19860906),
- ("S.A.D", 0.01020618),
- ("S.A.T.", 0.02307813),
- ("S.A.U", 0.01506562),
- ("S.C.P", 0.04465719),
- ("S.Com.", 0.15636432),
- ("S.Coop.", 0.17394866),
- ("S.L.", 0.18325857),
- ("S.L.L.", 0.05800693),
- ("S.L.N.E", 0.11496705),
- ("S.L.U.", 0.02183831),
- ]
- )
-
- company_prefixes = (
- "Familia",
- "Grupo",
- "Hermanos",
- "Hnos",
- )
-
- company_types = (
- "Alimentación",
- "Banca Privada",
- "Banco",
- "Comercial",
- "Comercializadora",
- "Compañía",
- "Construcción",
- "Consultoría",
- "Desarrollo",
- "Despacho",
- "Distribuciones",
- "Farmaceútica",
- "Finanzas",
- "Fábrica",
- "Hotel",
- "Industrias",
- "Infraestructuras",
- "Inmobiliaria",
- "Instalaciones",
- "Inversiones",
- "Logística",
- "Manufacturas",
- "Minería",
- "Promociones",
- "Restauración",
- "Servicios",
- "Soluciones",
- "Suministros",
- "Supermercados",
- "Talleres",
- "Tecnologías",
- "Transportes",
- )
-
- name_complements = (
- "& Asociados",
- "y asociados",
- )
-
- company_adjectives = (
- "Avanzadas",
- "Castellana",
- "Española",
- "Españolas",
- "Globales",
- "Iberia",
- "Ibérica",
- "Ibéricos",
- "Integrales",
- "Inteligentes",
- "Internacionales",
- "del Levante",
- "del Mediterráneo",
- "del Noroeste",
- "del Norte",
- "del Sur",
- )
-
- def company_type(self) -> str:
- return self.random_element(self.company_types)
-
- def company_suffix(self) -> str:
- return self.random_element(self.company_suffixes)
-
- def random_name_complements(self) -> str:
- return self.random_element(self.name_complements)
-
- def random_company_adjective(self) -> str:
- return self.random_element(self.company_adjectives)
-
- def random_company_acronym(self) -> str:
- letters = self.random_letters(self.random_int(2, 4))
- return "".join(letters).upper()
-
- def company_prefix(self) -> str:
- return self.random_element(self.company_prefixes)
diff --git a/venv/lib/python3.11/site-packages/faker/providers/company/es_ES/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/company/es_ES/__pycache__/__init__.cpython-311.pyc
deleted file mode 100644
index 521faf9..0000000
--- a/venv/lib/python3.11/site-packages/faker/providers/company/es_ES/__pycache__/__init__.cpython-311.pyc
+++ /dev/null
Binary files differ