コード例 #1
0
ファイル: zillow.py プロジェクト: nikola-mm/bigmetadata
 def requires(self):
     return {
         'tags': ZillowTags(),
         'subsections': SubsectionTags(),
         'sections': SectionTags(),
         'units': UnitTags(),
     }
コード例 #2
0
 def requires(self):
     return {
         'sections': SectionTags(),
         'subsections': SubsectionTags(),
         'unittags': UnitTags(),
         'sourcetag': SourceTags()
     }
コード例 #3
0
 def requires(self):
     return {
         'subsections': SubsectionTags(),
         'sections': SectionTags(),
         'units': UnitTags(),
         'censustags': SourceTags()
     }
コード例 #4
0
ファイル: lacaixa.py プロジェクト: michelangelo13/bigmetadata
 def requires(self):
     return {
         'subsections': SubsectionTags(),
         'sections': SectionTags(),
         'units': UnitTags(),
         'source': SourceTags(),
         'license': LicenseTags(),
     }
コード例 #5
0
 def requires(self):
     return {
         'units': UnitTags(),
         'subsection': SubsectionTags(),
         'section': SectionTags(),
         'source': SourceTags(),
         'license': LicenseTags(),
         'metabase': MetabaseTable(),
     }
コード例 #6
0
ファイル: bls.py プロジェクト: nikola-mm/bigmetadata
    def requires(self):
        requirements = {
            'sections': SectionTags(),
            'subsections': SubsectionTags(),
            'units': UnitTags(),
            'sources': SourceTags()
        }
        parent_code = get_parent_code(self.naics_code)
        if parent_code:
            requirements['parent'] = QCEWColumns(naics_code=parent_code)

        return requirements
コード例 #7
0
    def requires(self):
        requirements = {
            'sections': SectionTags(),
            'subsections': SubsectionTags(),
            'unittags': UnitTags(),
            'sourcetag': SourceTags()
        }
        if self.table_theme != 'population':
            requirements['population_vars'] = FrenchColumns(
                table_theme='population')

        if self.table_theme in ('employment', 'education'):
            requirements['households_vars'] = FrenchColumns(
                table_theme='household')
        return requirements
コード例 #8
0
    def requires(self):
        requirements = {
            'sections': SectionTags(),
            'subsections': SubsectionTags(),
            'units': UnitTags(),
            'source': SourceTags(),
            'license': LicenseTags()
        }
        reqs = self._fetch_requirements()
        col_reqs = reqs.get('all', [])
        col_reqs.extend(reqs.get(self.tablename, []))
        for col_req in col_reqs:
            if col_req != self.tablename:
                requirements[col_req] = Columns(tablename=col_req,
                                                resolution=self.resolution,
                                                year=self.year,
                                                profile=self.profile)

        return requirements
コード例 #9
0
    def requires(self):
        requirements = {
            'sections': SectionTags(),
            'subsections': SubsectionTags(),
            'units': UnitTags(),
            'source': SourceTags(),
            'license': LicenseTags()
        }
        if self.tablename == 'Domicilio02':
            requirements['Domicilio01'] = Columns(tablename='Domicilio01')

        if self.tablename == 'Entorno02':
            requirements['Entorno01'] = Columns(tablename='Entorno01')

        if self.tablename in ('Entorno04', 'Entorno05'):
            requirements['Entorno03'] = Columns(tablename='Entorno03')

        if self.tablename in ('Pessoa11', 'Pessoa12'):
            requirements['Pessoa13'] = Columns(tablename='Pessoa13')

        if self.tablename in ('Pessoa02', 'Pessoa04'):
            requirements['Pessoa01'] = Columns(tablename='Pessoa01')

        if self.tablename in ('Pessoa08'):
            requirements['Pessoa07'] = Columns(tablename='Pessoa07')

        if self.tablename in ('Pessoa05'):
            requirements['Pessoa03'] = Columns(tablename='Pessoa03')

        if self.tablename in ('Responsavel01'):
            requirements['Responsavel02'] = Columns(tablename='Responsavel02')

        if self.tablename in ('Basico'):
            requirements['Pessoa13'] = Columns(tablename='Pessoa13')
            requirements['ResponsavelRenda'] = Columns(
                tablename='ResponsavelRenda')

        return requirements