osci/datalake/reports/company/projects_activity.py (10 lines of code) (raw):

"""Copyright since 2020, EPAM Systems This file is part of OSCI. OSCI is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. OSCI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OSCI. If not, see <http://www.gnu.org/licenses/>.""" from typing import Type from osci.datalake.schemas.public import ProjectsActivitySchema from osci.datalake import DatePeriodType from .base import CompanyReport, CompanyReportFactory class ProjectsActivityFactory(CompanyReportFactory): report_base_cls: Type[CompanyReport] = type('_Report', (CompanyReport,), dict(base_name='projects_activity', schema=ProjectsActivitySchema)) class ProjectsActivityMTD(ProjectsActivityFactory.report_base_cls): date_period = DatePeriodType.MTD