├── .circleci └── config.yml ├── .dockerignore ├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ ├── config.yml │ ├── feature_request.md │ └── general-issue.md ├── PULL_REQUEST_TEMPLATE.md └── logo.png ├── .gitignore ├── .gitmodules ├── .python-version ├── AUTHORS ├── CODEOWNERS ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── docker └── docker-compose.yml ├── entrypoint.sh ├── immuni_exposure_reporting ├── __init__.py ├── apis │ ├── __init__.py │ └── keys.py ├── core │ ├── __init__.py │ ├── config.py │ └── managers.py ├── helpers │ ├── __init__.py │ └── validation.py ├── models │ ├── __init__.py │ └── swagger.py └── sanic.py ├── poetry.lock ├── pyproject.toml ├── pytest.ini ├── sonar-project.properties └── tests ├── __init__.py ├── conftest.py ├── fixtures ├── __init__.py ├── batch_file.py ├── batch_file_eu.py └── core.py ├── test_batch_index.py ├── test_batch_index_eu.py └── test_managers.py /.circleci/config.yml: -------------------------------------------------------------------------------- 1 | # Immuni CircleCI configuration. 2 | # Copyright (C) 2020 Presidenza del Consiglio dei Ministri. 3 | # Please refer to the AUTHORS file for more information. 4 | # This program is free software: you can redistribute it and/or modify 5 | # it under the terms of the GNU Affero General Public License as 6 | # published by the Free Software Foundation, either version 3 of the 7 | # License, or (at your option) any later version. 8 | # This program is distributed in the hope that it will be useful, 9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | # GNU Affero General Public License for more details. 12 | # You should have received a copy of the GNU Affero General Public License 13 | # along with this program. If not, see . 14 | 15 | version: 2.1 16 | description: Maintain consistent security and quality standards. 17 | 18 | # TODO: Evaluate promotion to orbs. 19 | commands: 20 | initialize-submodules: 21 | description: Initialize the git submodules. 22 | steps: 23 | - run: 24 | name: "[git] Initialize submodules" 25 | command: git submodule update --init 26 | 27 | poetry-install: 28 | description: | 29 | Install Poetry and the Python dependencies from the poetry.lock with Poetry. 30 | The virtualenv containing the installed packages will automatically be cached and restored. 31 | parameters: 32 | additional_parameters: 33 | description: Additional parameters to append to the poetry install command (e.g., --extras) 34 | type: string 35 | default: "" 36 | 37 | deps_cache_version: 38 | description: Dependencies cache version identifier. Bump this to clear the virtualenv cache. 39 | type: string 40 | default: "v1" 41 | 42 | poetry_version: 43 | description: The version of Poetry to be installed. 44 | type: string 45 | default: 1.1.4 46 | 47 | steps: 48 | - run: 49 | name: "[python] Setup Poetry environment" 50 | command: echo 'export POETRY_VERSION=<< parameters.poetry_version >>; export POETRY_HOME=./.poetry; export PATH=$POETRY_HOME/bin:$PATH' >> $BASH_ENV 51 | - restore_cache: 52 | name: "[python] Restore the Poetry cache" 53 | keys: 54 | - poetry-<< parameters.poetry_version >> 55 | - run: 56 | name: "[python] Install Poetry" 57 | working_directory: . 58 | command: curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/<< parameters.poetry_version >>/get-poetry.py | python 59 | - save_cache: 60 | name: "[python] Save the Poetry cache" 61 | key: poetry-<< parameters.poetry_version >> 62 | paths: 63 | - ./.poetry 64 | - restore_cache: 65 | name: "[python] Restore the dependencies cache" 66 | keys: 67 | - venv-<< parameters.deps_cache_version >>-{{ .Environment.CIRCLE_JOB }}-{{ .Branch }}-{{ checksum "./poetry.lock" }} 68 | - venv-<< parameters.deps_cache_version >>-{{ .Environment.CIRCLE_JOB }}-{{ .Branch }} 69 | - venv-<< parameters.deps_cache_version >>-{{ .Environment.CIRCLE_JOB }} 70 | - run: 71 | name: "[python] Install the dependencies" 72 | working_directory: . 73 | environment: 74 | POETRY_VIRTUALENVS_IN_PROJECT: true 75 | command: poetry install -v << parameters.additional_parameters >> 76 | - save_cache: 77 | name: "[python] Save the dependencies cache" 78 | key: venv-<< parameters.deps_cache_version >>-{{ .Environment.CIRCLE_JOB }}-{{ .Branch }}-{{ checksum "./poetry.lock" }} 79 | paths: 80 | - .venv 81 | - run: 82 | name: "[python] Activate the virtual environment" 83 | command: echo 'source .venv/bin/activate' >> $BASH_ENV 84 | 85 | pytest: 86 | description: | 87 | Run pytest with code coverage. 88 | Store the coverage reports as artifacts. 89 | Fail if the code coverage is below the minimum threshold. 90 | parameters: 91 | coverage_path: 92 | description: Filesystem path to measure coverage. 93 | type: string 94 | default: . 95 | 96 | min_coverage: 97 | description: Minimum code coverage percentage ([0,100]). 98 | type: integer 99 | default: 100 100 | 101 | steps: 102 | - run: 103 | name: "[python] Run pytest with code coverage" 104 | command: | 105 | pytest \ 106 | --capture=no \ 107 | --cov-branch \ 108 | --cov-fail-under=<> \ 109 | --cov-report=html:coverage-reports \ 110 | --cov=<> \ 111 | --junitxml=coverage-reports/junit.xml \ 112 | --ignore=common \ 113 | - store_test_results: 114 | path: test-reports 115 | - store_artifacts: 116 | path: test-reports 117 | - store_artifacts: 118 | path: coverage-reports 119 | 120 | jobs: 121 | test: 122 | docker: 123 | - image: cimg/python:3.8.2 124 | - image: circleci/mongo:4.0.18-xenial 125 | resource_class: small 126 | steps: 127 | - checkout 128 | - initialize-submodules 129 | - poetry-install: 130 | deps_cache_version: "v3" 131 | - pytest: 132 | coverage_path: ./immuni_exposure_reporting 133 | 134 | check: 135 | docker: 136 | - image: cimg/python:3.8.2 137 | resource_class: small 138 | steps: 139 | - checkout 140 | - initialize-submodules 141 | - poetry-install: 142 | deps_cache_version: "v3" 143 | - run: 144 | name: "[python] Run checks" 145 | command: poetry run checks immuni_exposure_reporting --ci 146 | 147 | build-and-run-example: 148 | docker: 149 | - image: cimg/base:2020.05 150 | resource_class: small 151 | steps: 152 | - checkout 153 | - initialize-submodules 154 | - setup_remote_docker 155 | - run: 156 | name: "[docker] Build the images" 157 | command: | 158 | cd docker && docker-compose build \ 159 | --build-arg GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD) \ 160 | --build-arg GIT_SHA=$(git rev-parse --verify HEAD) \ 161 | --build-arg GIT_TAG=$(git tag --points-at HEAD | cat) \ 162 | --build-arg BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ") 163 | - run: 164 | name: "[docker] Run the example" 165 | command: cd docker && docker-compose up --detach 166 | - run: 167 | name: "[docker] Health check" 168 | command: | 169 | docker run \ 170 | --network container:docker_api_1 \ 171 | appropriate/curl \ 172 | -4 \ 173 | --verbose \ 174 | --retry 10 \ 175 | --retry-delay 1 \ 176 | --retry-connrefused \ 177 | http://localhost:5000 178 | workflows: 179 | code-quality: 180 | jobs: 181 | - test 182 | - check 183 | - build-and-run-example 184 | -------------------------------------------------------------------------------- /.dockerignore: -------------------------------------------------------------------------------- 1 | **/.git 2 | **/tests 3 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: "[BUG] Bug Title here" 5 | labels: "" 6 | assignees: "" 7 | --- 8 | 9 | **Describe the bug** 10 | 11 | 12 | 13 | **To Reproduce** 14 | 15 | 21 | 22 | **Expected behaviour** 23 | 24 | 25 | 26 | **Screenshots** 27 | 28 | 29 | 30 | **Smartphone (optional):** 31 | 32 | - Device: [e.g. iPhone X] 33 | - OS: [e.g. iOS13.5] 34 | - Version [e.g. 1] 35 | 36 | **Additional context** 37 | 38 | 39 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: false 2 | contact_links: 3 | - name: Immuni Feature Request 4 | url: https://github.com/immuni-app/immuni-documentation 5 | about: Please open a feature request in the appropriated repository as defined in the CONTRIBUTING file 6 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Backend feature request 3 | about: Suggest an idea related to the backend only 4 | title: "[FEAT] Feature Title Here" 5 | labels: "" 6 | assignees: "" 7 | --- 8 | 9 | **Is your feature request related to a problem? Please describe it.** 10 | A clear and concise description of what the problem is. E.g., I'd love to [...] 11 | 12 | **Describe the solution you'd like** 13 | A clear and concise description of what you want to happen. 14 | 15 | **Describe alternatives you've considered** 16 | A clear and concise description of any alternative solutions or features you've considered. 17 | 18 | **Additional context** 19 | Add any other context or screenshots about the feature request here. 20 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/general-issue.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: General issue 3 | about: This is a template for a general issue 4 | title: "[GENERAL] Title here" 5 | labels: "" 6 | assignees: "" 7 | --- 8 | 9 | # Issue content 10 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ## Description 5 | 6 | 7 | 8 | This PR tackles: 9 | 10 | - ... 11 | - ... 12 | - ... 13 | 14 | In particular, the ... 15 | 16 | ## Checklist 17 | 18 | 19 | 20 | - [ ] I have followed the indications in the [CONTRIBUTING](https://github.com/immuni-app/immuni-backend-exposure-reporting/blob/master/CONTRIBUTING.md). 21 | - [ ] The documentation related to the proposed change has been updated accordingly (plus comments in code). 22 | - [ ] I have written new tests for my core changes, as applicable. 23 | - [ ] I have successfully run tests with my changes locally. 24 | - [ ] It is ready for review! :rocket: 25 | 26 | ## Fixes 27 | 28 | 29 | 30 | - Fixes #ISSUE_NUMBER 31 | -------------------------------------------------------------------------------- /.github/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/immuni-app/immuni-backend-exposure-reporting/81eecea41a06de4376d184b7c86369a803e62573/.github/logo.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Python 2 | **/__pycache__ 3 | **/.coverage 4 | .venv/ 5 | .mypy_cache 6 | .pytest_cache 7 | test-reports/junit.xml 8 | 9 | # Metadata 10 | **/*.egg-info/ 11 | **/pip-wheel-metadata 12 | 13 | # IntelliJ 14 | **/.idea/* 15 | 16 | # MacOSX 17 | .DS_Store 18 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "common"] 2 | path = common 3 | url = https://github.com/immuni-app/immuni-backend-common.git 4 | -------------------------------------------------------------------------------- /.python-version: -------------------------------------------------------------------------------- 1 | 3.8.2 2 | -------------------------------------------------------------------------------- /AUTHORS: -------------------------------------------------------------------------------- 1 | Copyright (c) 2020 Presidenza del Consiglio dei Ministri 2 | 3 | Under the supervision of the Italian Ministry of Health together with the support of the Department for Technological Innovation and Digitalization, a set of public and private stakeholders have been collaborating at the Immuni project, namely SoGEI S.p.A and PagoPA S.p.A belonging to the former category and Bending Spoons S.p.A to the latter. 4 | Furthermore, Bending Spoons S.p.A is the author of the source code published in this repository prior to October 13, 2020. 5 | 6 | The version control system provides attribution for specific lines of code. 7 | -------------------------------------------------------------------------------- /CODEOWNERS: -------------------------------------------------------------------------------- 1 | # This file specifies the people currently responsible for code reviews in the repository. 2 | # For information about the owners of the code, please refer to the LICENSE and README files. 3 | 4 | * @immuniopensource @immunistaff @immuniteam 5 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | We as members, contributors, and leaders pledge to make participation in our 6 | community a harassment-free experience for everyone, regardless of age, body 7 | size, visible or invisible disability, ethnicity, sex characteristics, gender 8 | identity and expression, level of experience, education, socio-economic status, 9 | nationality, personal appearance, race, religion, or sexual identity 10 | and orientation. 11 | 12 | We pledge to act and interact in ways that contribute to an open, welcoming, 13 | diverse, inclusive, and healthy community. 14 | 15 | ## Our Standards 16 | 17 | Examples of behavior that contributes to a positive environment for our 18 | community include: 19 | 20 | * Demonstrating empathy and kindness toward other people 21 | * Being respectful of differing opinions, viewpoints, and experiences 22 | * Giving and gracefully accepting constructive feedback 23 | * Accepting responsibility and apologizing to those affected by our mistakes, 24 | and learning from the experience 25 | * Focusing on what is best not just for us as individuals, but for the 26 | overall community 27 | 28 | Examples of unacceptable behavior include: 29 | 30 | * The use of sexualized language or imagery, and sexual attention or 31 | advances of any kind 32 | * Trolling, insulting or derogatory comments, and personal or political attacks 33 | * Public or private harassment 34 | * Publishing others' private information, such as a physical or email 35 | address, without their explicit permission 36 | * Other conduct which could reasonably be considered inappropriate in a 37 | professional setting 38 | 39 | ## Enforcement Responsibilities 40 | 41 | Community leaders are responsible for clarifying and enforcing our standards of 42 | acceptable behavior and will take appropriate and fair corrective action in 43 | response to any behavior that they deem inappropriate, threatening, offensive, 44 | or harmful. 45 | 46 | Community leaders have the right and responsibility to remove, edit, or reject 47 | comments, commits, code, wiki edits, issues, and other contributions that are 48 | not aligned to this Code of Conduct, and will communicate reasons for moderation 49 | decisions when appropriate. 50 | 51 | ## Scope 52 | 53 | This Code of Conduct applies within all community spaces, and also applies when 54 | an individual is officially representing the community in public spaces. 55 | Examples of representing our community include using an official e-mail address, 56 | posting via an official social media account, or acting as an appointed 57 | representative at an online or offline event. 58 | 59 | ## Enforcement 60 | 61 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 62 | reported to the community leaders responsible for enforcement. 63 | All complaints will be reviewed and investigated promptly and fairly. 64 | 65 | All community leaders are obligated to respect the privacy and security of the 66 | reporter of any incident. 67 | 68 | ## Enforcement Guidelines 69 | 70 | Community leaders will follow these Community Impact Guidelines in determining 71 | the consequences for any action they deem in violation of this Code of Conduct: 72 | 73 | ### 1. Correction 74 | 75 | **Community Impact**: Use of inappropriate language or other behavior deemed 76 | unprofessional or unwelcome in the community. 77 | 78 | **Consequence**: A private, written warning from community leaders, providing 79 | clarity around the nature of the violation and an explanation of why the 80 | behavior was inappropriate. A public apology may be requested. 81 | 82 | ### 2. Warning 83 | 84 | **Community Impact**: A violation through a single incident or series 85 | of actions. 86 | 87 | **Consequence**: A warning with consequences for continued behavior. No 88 | interaction with the people involved, including unsolicited interaction with 89 | those enforcing the Code of Conduct, for a specified period of time. This 90 | includes avoiding interactions in community spaces as well as external channels 91 | like social media. Violating these terms may lead to a temporary or 92 | permanent ban. 93 | 94 | ### 3. Temporary Ban 95 | 96 | **Community Impact**: A serious violation of community standards, including 97 | sustained inappropriate behavior. 98 | 99 | **Consequence**: A temporary ban from any sort of interaction or public 100 | communication with the community for a specified period of time. No public or 101 | private interaction with the people involved, including unsolicited interaction 102 | with those enforcing the Code of Conduct, is allowed during this period. 103 | Violating these terms may lead to a permanent ban. 104 | 105 | ### 4. Permanent Ban 106 | 107 | **Community Impact**: Demonstrating a pattern of violation of community 108 | standards, including sustained inappropriate behavior, harassment of an 109 | individual, or aggression toward or disparagement of classes of individuals. 110 | 111 | **Consequence**: A permanent ban from any sort of public interaction within 112 | the community. 113 | 114 | ## Attribution 115 | 116 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], 117 | version 2.0, available at 118 | https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. 119 | 120 | Community Impact Guidelines were inspired by [Mozilla's code of conduct 121 | enforcement ladder](https://github.com/mozilla/diversity). 122 | 123 | [homepage]: https://www.contributor-covenant.org 124 | 125 | For answers to common questions about this code of conduct, see the FAQ at 126 | https://www.contributor-covenant.org/faq. Translations are available at 127 | https://www.contributor-covenant.org/translations. 128 | 129 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Table of contents 2 | 3 | - [Contributing instructions](#contributing-instructions) 4 | - [Architecture](#architecture) 5 | - [Environment](#environment) 6 | - [Repository structure](#repository-structure) 7 | - [Microservices](#microservices) 8 | - [Code style](#code-style) 9 | - [Testing](#testing) 10 | - [Gitflow](#gitflow) 11 | - [Feature and fixes](#feature-and-fixes) 12 | - [Releases](#releases) 13 | - [Commits](#commits) 14 | - [How to contribute](#how-to-contribute) 15 | - [Issues](#issues) 16 | - [Creating a new issue](#creating-a-new-issue) 17 | - [Good first issues](#good-first-issues) 18 | - [Pull requests](#pull-requests) 19 | - [Pull request checks](#pull-request-checks) 20 | - [Labels](#labels) 21 | 22 | # Contributing instructions 23 | Thank you for considering making a contribution to this repository. In this file, you will find guidelines for contributing efficiently. If you are unsure whether this is the appropriate repository for a particular issue, please review the repository structure of this organisation. 24 | 25 | Please do not file an issue to ask a question. You will get faster results by using the resources below. 26 | 27 | Before proceeding, please review our [Code of Conduct](./CODE_OF_CONDUCT.md). 28 | 29 | # Architecture 30 | This section describes the project's architecture. Please read it thoroughly before contributing to the project. 31 | 32 | 33 | ## Environment 34 | The project has been implemented in [Python 3.8](https://www.python.org/). [Poetry](https://python-poetry.org/) is used for dependency management, allowing for a seamless installation of dependencies. 35 | 36 | To set up your development environment, run the following command at the project’s root: 37 | 38 | ```bash 39 | poetry install 40 | ``` 41 | 42 | ## Repository Structure 43 | The root folder contains the following folders: 44 | 45 | - **common**. This contains the common logic of Immuni’s backend services. It is a [Git](https://git-scm.com/) repository—*immuni-backend-common*—used here as a Git submodule. 46 | - **docker**. This contains the *docker-compose* configuration to seamlessly run the service, as shown in [Environment](#environment). 47 | - **immuni_exposure_reporting**. This contains the logic of the specific backend service. 48 | tests. This contains the unit tests. 49 | 50 | The *immuni_exposure_reporting* folder is grouped by concerns. Specifically, as follows: 51 | 52 | - **apis**. This contains the Sanic API endpoints, with one file per blueprint. 53 | - **core**. This contains the service-specific configurations and the managers. 54 | - **helpers**. This contains a collection of reusable utility methods. 55 | - **models**. This contains the models (e.g., dataclasses, [marshmallow](https://pypi.org/project/marshmallow/), [mongoengine](https://pypi.org/project/mongoengine/)) used by the backend service. 56 | 57 | ### Microservices 58 | The backend service logic runs microservices, each one identified by a dedicated file within the *immuni_exposure_reporting* folder. Specifically, as follows: 59 | 60 | - **sanic.py**. This contains the sanic_app object, representing the [Sanic](https://pypi.org/project/sanic/) API microservice. 61 | 62 | To better understand how to run these microservices, see the dedicated commands in [entrypoint.sh](./entrypoint.sh). 63 | 64 | 65 | ## Code style 66 | 67 | A script is provided to maintain consistent security and quality standards using the development tools described in the Technology Description's [Backend Services Technologies](https://github.com/immuni-app/documentation/blob/master/Technology%20Description.md#backend-services-technologies) section. This solution permits keeping the checks' configuration files in the common repository. 68 | 69 | ```bash 70 | poetry run checks immuni_exposure_reporting 71 | ``` 72 | 73 | When a new pull request is opened, the CI checks for security, formatting, or linting issues. Please solve any before we can proceed with the review. 74 | 75 | ## Testing 76 | To preserve functionality after every change, please ensure that all existing test cases pass. You may be required to implement additional test cases, in the event that the existing ones do not ensure maximum coverage after your changes. 77 | 78 | ```bash 79 | poetry run pytest \ 80 | --cov=immuni_exposure_reporting \ 81 | --cov-branch \ 82 | --cov-fail-under=100 \ 83 | --ignore=common 84 | ``` 85 | 86 | When a new pull request is opened, the CI assesses whether all test cases pass and whether the maximum coverage is reached. Please solve any failures before we can proceed with the review. 87 | 88 | # Gitflow 89 | This repository adopts the [Gitflow](https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow) branch management system. 90 | 91 | ## Feature and fixes 92 | 93 | When contributors wish to implement a new feature or a fix, they should branch from the development branch and open a pull request. Branches should have a meaningful name that adheres to the following convention: 94 | ``` 95 | /name_of_feature_or_fix 96 | ``` 97 | The *type* prefix should be one of the following: 98 | 99 | - **feature**. Used in the case that the branch implements a new feature. 100 | - **fix**. Used in the case that the branch implements a fix. 101 | 102 | Valid branch names are: 103 | 104 | - *feature/onboarding* 105 | - *fix/paddings* 106 | 107 | Invalid branch names are: 108 | 109 | - *feat/onboarding* 110 | - *fix_paddings* 111 | 112 | ## Releases 113 | When the code is ready for a new release, a new release branch is cut from development. From the [Gitflow](https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow) website: 114 | 115 | _Once development has acquired enough features for a release (or a predetermined release date is approaching), you fork a release branch off from development. Creating this branch starts the next release cycle, so no new features can be added after this point—only bug fixes, documentation generation, and other release-oriented tasks should go in this branch._ 116 | 117 | During this stage, the focus is on preparing the release by fixing issues. It is not possible to add new features to the codebase. 118 | 119 | # Commits 120 | Please follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0-beta.2/) naming convention for consistency and to avoid problems with our continuous integration systems. The automatic systems also perform checks and mark as not ready for review any pull request that it determines has not followed the convention. 121 | 122 | # How to contribute 123 | When you encounter a bug or an issue with the system represented in this repository, you may choose to let the developers know the nature of the issue. 124 | 125 | The Immuni project is composed of different repositories—one for each component or service. If you wish to raise something strictly relevant to this repository (i.e., an Exposure Reporting Service bug), please read on. However, to raise other issues or to highlight other bugs, please open an issue in the [Documentation repository](https://github.com/immuni-app/immuni-documentation). This lets everyone involved see it, consider it, and participate in the discussion, without slowing down the overall process. 126 | 127 | ## Issues 128 | Before filing a new issue, please browse the relevant section and use the search functionality to check if it has already been filed by someone else. 129 | 130 | - If this issue has previously been filed, please do not create a new one. Instead, add more information to the existing issue, or simply add the :+1: symbol to the first message. This helps the project maintainers to identify issues and prioritise accordingly. 131 | - If the issue has not already been filed, please create a new one. 132 | 133 | ### Creating a new issue 134 | When creating a new issue, there are three categories: 135 | 136 | - Bug report 137 | - Feature request 138 | - General issue 139 | 140 | Please ensure that you select the appropriate category for the issue. Each one has a unique template designed to elicit the information required to reproduce and fix the issue. If the issue does not fall under Bug report or Feature request, please select General issue. With a general issue, it is especially important to provide a significant amount of detail, to help the project maintainers and any other collaborators understand the issue clearly. 141 | 142 | When an issue is opened, a triage label is automatically assigned. The project maintainers are automatically notified of the issue's creation—they endeavour to address all issues as quickly as possible. When the issue has been triaged, a corresponding label will be assigned. Here is a [list of all the possible labels](#labels). 143 | 144 | ### Good first issues 145 | If you are interested in contributing to Immuni but are unsure where to start, please search for issues with the _Good first issue_ label. These issues are relatively easy tasks that can help you get familiar with the code. 146 | 147 | ## Pull requests 148 | After opening an issue, you may want to help the developers further. If the issue has been triaged and if the project maintainers give the green light, you may propose a solution. Doing so is always appreciated. For this, please use the Pull Request tool. 149 | 150 | Before proceeding, please ensure that your proposal relates to an issue that has already been reviewed. 151 | 152 | The first step in opening a pull request is to fork the project. Please log in to your account, then select Fork in the repository's landing page. This allows you to work on a dedicated fork and push your changes there. Then, if you wish to apply these changes back in the main Immuni repository, create a pull request targeting this repository. For more detailed information, [please read this guide](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request-from-a-fork). 153 | 154 | When creating a pull request, please choose a name that adheres to the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0-beta.2/) naming convention. It is important to review and follow this convention before creating a pull request. This ensures that the commit history remains clean and makes it easy to identify what each commit does. 155 | 156 | After choosing the appropriate name, please use the following template for the body of the pull request: 157 | 158 | ```markdown 159 | 160 | 161 | 162 | ## Description 163 | 164 | 165 | 166 | This PR tackles: 167 | 168 | - ... 169 | - ... 170 | - ... 171 | 172 | In particular, the ... 173 | 174 | ## Checklist 175 | 176 | 177 | 178 | - [ ] I have followed the indications in the [CONTRIBUTING](../CONTRIBUTING.md). 179 | - [ ] The documentation related to the proposed change has been updated accordingly (plus comments in code). 180 | - [ ] I have written new tests for my core changes, as applicable. 181 | - [ ] I have successfully run tests with my changes locally. 182 | - [ ] It is ready for review! :rocket: 183 | 184 | ## Fixes 185 | 186 | 187 | 188 | - Fixes #ISSUE_NUMBER 189 | ``` 190 | 191 | There is a checklist indicating the different steps to follow. After completing each step, please mark it as such by inserting an X between the [ ]. When all the steps have been completed, the review process begins. 192 | 193 | ### Pull request checks 194 | When a new pull request is opened, the CI performs some checks. These are as follows: 195 | 196 | - Verification that the commits respect the repository's convention 197 | - Verification that the source code is properly formatted 198 | - Verification that the source code is properly linted 199 | - Verification that the test cases are all successful 200 | - Verification that the maximum code converge is reached 201 | 202 | Pull requests that fall foul of these rules are not reviewed. 203 | 204 | ## Labels 205 | Labels are used to tag issues and make them more easily discoverable. Please refer to the [Github website](https://guides.github.com/features/issues/?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc) for more information. 206 | 207 | | Name | Description | 208 | | ---------------- | ---------------------------------------------------------------------------- | 209 | | bug | Indicates an unexpected problem or unintended behaviour | 210 | | documentation | Indicates that improvements or additions to the documentation are needed | 211 | | duplicate | Indicates similar issues or pull requests | 212 | | enhancement | Indicates new feature requests | 213 | | good first issue | Indicates a good issue for first-time contributors | 214 | | help wanted | Indicates that a project maintainer wants help on an issue or a pull request | 215 | | invalid | Indicates that an issue or a pull request is no longer relevant | 216 | | question | Indicates that an issue or a pull request needs more information | 217 | | wontfix | Indicates that work won't continue on an issue or a pull request | 218 | | triage | Indicates that the issue still needs to be triaged | 219 | | QA | Label coming directly from the QA department | 220 | 221 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU AFFERO GENERAL PUBLIC LICENSE 2 | Version 3, 19 November 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU Affero General Public License is a free, copyleft license for 11 | software and other kinds of works, specifically designed to ensure 12 | cooperation with the community in the case of network server software. 13 | 14 | The licenses for most software and other practical works are designed 15 | to take away your freedom to share and change the works. By contrast, 16 | our General Public Licenses are intended to guarantee your freedom to 17 | share and change all versions of a program--to make sure it remains free 18 | software for all its users. 19 | 20 | When we speak of free software, we are referring to freedom, not 21 | price. Our General Public Licenses are designed to make sure that you 22 | have the freedom to distribute copies of free software (and charge for 23 | them if you wish), that you receive source code or can get it if you 24 | want it, that you can change the software or use pieces of it in new 25 | free programs, and that you know you can do these things. 26 | 27 | Developers that use our General Public Licenses protect your rights 28 | with two steps: (1) assert copyright on the software, and (2) offer 29 | you this License which gives you legal permission to copy, distribute 30 | and/or modify the software. 31 | 32 | A secondary benefit of defending all users' freedom is that 33 | improvements made in alternate versions of the program, if they 34 | receive widespread use, become available for other developers to 35 | incorporate. Many developers of free software are heartened and 36 | encouraged by the resulting cooperation. However, in the case of 37 | software used on network servers, this result may fail to come about. 38 | The GNU General Public License permits making a modified version and 39 | letting the public access it on a server without ever releasing its 40 | source code to the public. 41 | 42 | The GNU Affero General Public License is designed specifically to 43 | ensure that, in such cases, the modified source code becomes available 44 | to the community. It requires the operator of a network server to 45 | provide the source code of the modified version running there to the 46 | users of that server. Therefore, public use of a modified version, on 47 | a publicly accessible server, gives the public access to the source 48 | code of the modified version. 49 | 50 | An older license, called the Affero General Public License and 51 | published by Affero, was designed to accomplish similar goals. This is 52 | a different license, not a version of the Affero GPL, but Affero has 53 | released a new version of the Affero GPL which permits relicensing under 54 | this license. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | TERMS AND CONDITIONS 60 | 61 | 0. Definitions. 62 | 63 | "This License" refers to version 3 of the GNU Affero General Public License. 64 | 65 | "Copyright" also means copyright-like laws that apply to other kinds of 66 | works, such as semiconductor masks. 67 | 68 | "The Program" refers to any copyrightable work licensed under this 69 | License. Each licensee is addressed as "you". "Licensees" and 70 | "recipients" may be individuals or organizations. 71 | 72 | To "modify" a work means to copy from or adapt all or part of the work 73 | in a fashion requiring copyright permission, other than the making of an 74 | exact copy. The resulting work is called a "modified version" of the 75 | earlier work or a work "based on" the earlier work. 76 | 77 | A "covered work" means either the unmodified Program or a work based 78 | on the Program. 79 | 80 | To "propagate" a work means to do anything with it that, without 81 | permission, would make you directly or secondarily liable for 82 | infringement under applicable copyright law, except executing it on a 83 | computer or modifying a private copy. Propagation includes copying, 84 | distribution (with or without modification), making available to the 85 | public, and in some countries other activities as well. 86 | 87 | To "convey" a work means any kind of propagation that enables other 88 | parties to make or receive copies. Mere interaction with a user through 89 | a computer network, with no transfer of a copy, is not conveying. 90 | 91 | An interactive user interface displays "Appropriate Legal Notices" 92 | to the extent that it includes a convenient and prominently visible 93 | feature that (1) displays an appropriate copyright notice, and (2) 94 | tells the user that there is no warranty for the work (except to the 95 | extent that warranties are provided), that licensees may convey the 96 | work under this License, and how to view a copy of this License. If 97 | the interface presents a list of user commands or options, such as a 98 | menu, a prominent item in the list meets this criterion. 99 | 100 | 1. Source Code. 101 | 102 | The "source code" for a work means the preferred form of the work 103 | for making modifications to it. "Object code" means any non-source 104 | form of a work. 105 | 106 | A "Standard Interface" means an interface that either is an official 107 | standard defined by a recognized standards body, or, in the case of 108 | interfaces specified for a particular programming language, one that 109 | is widely used among developers working in that language. 110 | 111 | The "System Libraries" of an executable work include anything, other 112 | than the work as a whole, that (a) is included in the normal form of 113 | packaging a Major Component, but which is not part of that Major 114 | Component, and (b) serves only to enable use of the work with that 115 | Major Component, or to implement a Standard Interface for which an 116 | implementation is available to the public in source code form. A 117 | "Major Component", in this context, means a major essential component 118 | (kernel, window system, and so on) of the specific operating system 119 | (if any) on which the executable work runs, or a compiler used to 120 | produce the work, or an object code interpreter used to run it. 121 | 122 | The "Corresponding Source" for a work in object code form means all 123 | the source code needed to generate, install, and (for an executable 124 | work) run the object code and to modify the work, including scripts to 125 | control those activities. However, it does not include the work's 126 | System Libraries, or general-purpose tools or generally available free 127 | programs which are used unmodified in performing those activities but 128 | which are not part of the work. For example, Corresponding Source 129 | includes interface definition files associated with source files for 130 | the work, and the source code for shared libraries and dynamically 131 | linked subprograms that the work is specifically designed to require, 132 | such as by intimate data communication or control flow between those 133 | subprograms and other parts of the work. 134 | 135 | The Corresponding Source need not include anything that users 136 | can regenerate automatically from other parts of the Corresponding 137 | Source. 138 | 139 | The Corresponding Source for a work in source code form is that 140 | same work. 141 | 142 | 2. Basic Permissions. 143 | 144 | All rights granted under this License are granted for the term of 145 | copyright on the Program, and are irrevocable provided the stated 146 | conditions are met. This License explicitly affirms your unlimited 147 | permission to run the unmodified Program. The output from running a 148 | covered work is covered by this License only if the output, given its 149 | content, constitutes a covered work. This License acknowledges your 150 | rights of fair use or other equivalent, as provided by copyright law. 151 | 152 | You may make, run and propagate covered works that you do not 153 | convey, without conditions so long as your license otherwise remains 154 | in force. You may convey covered works to others for the sole purpose 155 | of having them make modifications exclusively for you, or provide you 156 | with facilities for running those works, provided that you comply with 157 | the terms of this License in conveying all material for which you do 158 | not control copyright. Those thus making or running the covered works 159 | for you must do so exclusively on your behalf, under your direction 160 | and control, on terms that prohibit them from making any copies of 161 | your copyrighted material outside their relationship with you. 162 | 163 | Conveying under any other circumstances is permitted solely under 164 | the conditions stated below. Sublicensing is not allowed; section 10 165 | makes it unnecessary. 166 | 167 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 168 | 169 | No covered work shall be deemed part of an effective technological 170 | measure under any applicable law fulfilling obligations under article 171 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 172 | similar laws prohibiting or restricting circumvention of such 173 | measures. 174 | 175 | When you convey a covered work, you waive any legal power to forbid 176 | circumvention of technological measures to the extent such circumvention 177 | is effected by exercising rights under this License with respect to 178 | the covered work, and you disclaim any intention to limit operation or 179 | modification of the work as a means of enforcing, against the work's 180 | users, your or third parties' legal rights to forbid circumvention of 181 | technological measures. 182 | 183 | 4. Conveying Verbatim Copies. 184 | 185 | You may convey verbatim copies of the Program's source code as you 186 | receive it, in any medium, provided that you conspicuously and 187 | appropriately publish on each copy an appropriate copyright notice; 188 | keep intact all notices stating that this License and any 189 | non-permissive terms added in accord with section 7 apply to the code; 190 | keep intact all notices of the absence of any warranty; and give all 191 | recipients a copy of this License along with the Program. 192 | 193 | You may charge any price or no price for each copy that you convey, 194 | and you may offer support or warranty protection for a fee. 195 | 196 | 5. Conveying Modified Source Versions. 197 | 198 | You may convey a work based on the Program, or the modifications to 199 | produce it from the Program, in the form of source code under the 200 | terms of section 4, provided that you also meet all of these conditions: 201 | 202 | a) The work must carry prominent notices stating that you modified 203 | it, and giving a relevant date. 204 | 205 | b) The work must carry prominent notices stating that it is 206 | released under this License and any conditions added under section 207 | 7. This requirement modifies the requirement in section 4 to 208 | "keep intact all notices". 209 | 210 | c) You must license the entire work, as a whole, under this 211 | License to anyone who comes into possession of a copy. This 212 | License will therefore apply, along with any applicable section 7 213 | additional terms, to the whole of the work, and all its parts, 214 | regardless of how they are packaged. This License gives no 215 | permission to license the work in any other way, but it does not 216 | invalidate such permission if you have separately received it. 217 | 218 | d) If the work has interactive user interfaces, each must display 219 | Appropriate Legal Notices; however, if the Program has interactive 220 | interfaces that do not display Appropriate Legal Notices, your 221 | work need not make them do so. 222 | 223 | A compilation of a covered work with other separate and independent 224 | works, which are not by their nature extensions of the covered work, 225 | and which are not combined with it such as to form a larger program, 226 | in or on a volume of a storage or distribution medium, is called an 227 | "aggregate" if the compilation and its resulting copyright are not 228 | used to limit the access or legal rights of the compilation's users 229 | beyond what the individual works permit. Inclusion of a covered work 230 | in an aggregate does not cause this License to apply to the other 231 | parts of the aggregate. 232 | 233 | 6. Conveying Non-Source Forms. 234 | 235 | You may convey a covered work in object code form under the terms 236 | of sections 4 and 5, provided that you also convey the 237 | machine-readable Corresponding Source under the terms of this License, 238 | in one of these ways: 239 | 240 | a) Convey the object code in, or embodied in, a physical product 241 | (including a physical distribution medium), accompanied by the 242 | Corresponding Source fixed on a durable physical medium 243 | customarily used for software interchange. 244 | 245 | b) Convey the object code in, or embodied in, a physical product 246 | (including a physical distribution medium), accompanied by a 247 | written offer, valid for at least three years and valid for as 248 | long as you offer spare parts or customer support for that product 249 | model, to give anyone who possesses the object code either (1) a 250 | copy of the Corresponding Source for all the software in the 251 | product that is covered by this License, on a durable physical 252 | medium customarily used for software interchange, for a price no 253 | more than your reasonable cost of physically performing this 254 | conveying of source, or (2) access to copy the 255 | Corresponding Source from a network server at no charge. 256 | 257 | c) Convey individual copies of the object code with a copy of the 258 | written offer to provide the Corresponding Source. This 259 | alternative is allowed only occasionally and noncommercially, and 260 | only if you received the object code with such an offer, in accord 261 | with subsection 6b. 262 | 263 | d) Convey the object code by offering access from a designated 264 | place (gratis or for a charge), and offer equivalent access to the 265 | Corresponding Source in the same way through the same place at no 266 | further charge. You need not require recipients to copy the 267 | Corresponding Source along with the object code. If the place to 268 | copy the object code is a network server, the Corresponding Source 269 | may be on a different server (operated by you or a third party) 270 | that supports equivalent copying facilities, provided you maintain 271 | clear directions next to the object code saying where to find the 272 | Corresponding Source. Regardless of what server hosts the 273 | Corresponding Source, you remain obligated to ensure that it is 274 | available for as long as needed to satisfy these requirements. 275 | 276 | e) Convey the object code using peer-to-peer transmission, provided 277 | you inform other peers where the object code and Corresponding 278 | Source of the work are being offered to the general public at no 279 | charge under subsection 6d. 280 | 281 | A separable portion of the object code, whose source code is excluded 282 | from the Corresponding Source as a System Library, need not be 283 | included in conveying the object code work. 284 | 285 | A "User Product" is either (1) a "consumer product", which means any 286 | tangible personal property which is normally used for personal, family, 287 | or household purposes, or (2) anything designed or sold for incorporation 288 | into a dwelling. In determining whether a product is a consumer product, 289 | doubtful cases shall be resolved in favor of coverage. For a particular 290 | product received by a particular user, "normally used" refers to a 291 | typical or common use of that class of product, regardless of the status 292 | of the particular user or of the way in which the particular user 293 | actually uses, or expects or is expected to use, the product. A product 294 | is a consumer product regardless of whether the product has substantial 295 | commercial, industrial or non-consumer uses, unless such uses represent 296 | the only significant mode of use of the product. 297 | 298 | "Installation Information" for a User Product means any methods, 299 | procedures, authorization keys, or other information required to install 300 | and execute modified versions of a covered work in that User Product from 301 | a modified version of its Corresponding Source. The information must 302 | suffice to ensure that the continued functioning of the modified object 303 | code is in no case prevented or interfered with solely because 304 | modification has been made. 305 | 306 | If you convey an object code work under this section in, or with, or 307 | specifically for use in, a User Product, and the conveying occurs as 308 | part of a transaction in which the right of possession and use of the 309 | User Product is transferred to the recipient in perpetuity or for a 310 | fixed term (regardless of how the transaction is characterized), the 311 | Corresponding Source conveyed under this section must be accompanied 312 | by the Installation Information. But this requirement does not apply 313 | if neither you nor any third party retains the ability to install 314 | modified object code on the User Product (for example, the work has 315 | been installed in ROM). 316 | 317 | The requirement to provide Installation Information does not include a 318 | requirement to continue to provide support service, warranty, or updates 319 | for a work that has been modified or installed by the recipient, or for 320 | the User Product in which it has been modified or installed. Access to a 321 | network may be denied when the modification itself materially and 322 | adversely affects the operation of the network or violates the rules and 323 | protocols for communication across the network. 324 | 325 | Corresponding Source conveyed, and Installation Information provided, 326 | in accord with this section must be in a format that is publicly 327 | documented (and with an implementation available to the public in 328 | source code form), and must require no special password or key for 329 | unpacking, reading or copying. 330 | 331 | 7. Additional Terms. 332 | 333 | "Additional permissions" are terms that supplement the terms of this 334 | License by making exceptions from one or more of its conditions. 335 | Additional permissions that are applicable to the entire Program shall 336 | be treated as though they were included in this License, to the extent 337 | that they are valid under applicable law. If additional permissions 338 | apply only to part of the Program, that part may be used separately 339 | under those permissions, but the entire Program remains governed by 340 | this License without regard to the additional permissions. 341 | 342 | When you convey a copy of a covered work, you may at your option 343 | remove any additional permissions from that copy, or from any part of 344 | it. (Additional permissions may be written to require their own 345 | removal in certain cases when you modify the work.) You may place 346 | additional permissions on material, added by you to a covered work, 347 | for which you have or can give appropriate copyright permission. 348 | 349 | Notwithstanding any other provision of this License, for material you 350 | add to a covered work, you may (if authorized by the copyright holders of 351 | that material) supplement the terms of this License with terms: 352 | 353 | a) Disclaiming warranty or limiting liability differently from the 354 | terms of sections 15 and 16 of this License; or 355 | 356 | b) Requiring preservation of specified reasonable legal notices or 357 | author attributions in that material or in the Appropriate Legal 358 | Notices displayed by works containing it; or 359 | 360 | c) Prohibiting misrepresentation of the origin of that material, or 361 | requiring that modified versions of such material be marked in 362 | reasonable ways as different from the original version; or 363 | 364 | d) Limiting the use for publicity purposes of names of licensors or 365 | authors of the material; or 366 | 367 | e) Declining to grant rights under trademark law for use of some 368 | trade names, trademarks, or service marks; or 369 | 370 | f) Requiring indemnification of licensors and authors of that 371 | material by anyone who conveys the material (or modified versions of 372 | it) with contractual assumptions of liability to the recipient, for 373 | any liability that these contractual assumptions directly impose on 374 | those licensors and authors. 375 | 376 | All other non-permissive additional terms are considered "further 377 | restrictions" within the meaning of section 10. If the Program as you 378 | received it, or any part of it, contains a notice stating that it is 379 | governed by this License along with a term that is a further 380 | restriction, you may remove that term. If a license document contains 381 | a further restriction but permits relicensing or conveying under this 382 | License, you may add to a covered work material governed by the terms 383 | of that license document, provided that the further restriction does 384 | not survive such relicensing or conveying. 385 | 386 | If you add terms to a covered work in accord with this section, you 387 | must place, in the relevant source files, a statement of the 388 | additional terms that apply to those files, or a notice indicating 389 | where to find the applicable terms. 390 | 391 | Additional terms, permissive or non-permissive, may be stated in the 392 | form of a separately written license, or stated as exceptions; 393 | the above requirements apply either way. 394 | 395 | 8. Termination. 396 | 397 | You may not propagate or modify a covered work except as expressly 398 | provided under this License. Any attempt otherwise to propagate or 399 | modify it is void, and will automatically terminate your rights under 400 | this License (including any patent licenses granted under the third 401 | paragraph of section 11). 402 | 403 | However, if you cease all violation of this License, then your 404 | license from a particular copyright holder is reinstated (a) 405 | provisionally, unless and until the copyright holder explicitly and 406 | finally terminates your license, and (b) permanently, if the copyright 407 | holder fails to notify you of the violation by some reasonable means 408 | prior to 60 days after the cessation. 409 | 410 | Moreover, your license from a particular copyright holder is 411 | reinstated permanently if the copyright holder notifies you of the 412 | violation by some reasonable means, this is the first time you have 413 | received notice of violation of this License (for any work) from that 414 | copyright holder, and you cure the violation prior to 30 days after 415 | your receipt of the notice. 416 | 417 | Termination of your rights under this section does not terminate the 418 | licenses of parties who have received copies or rights from you under 419 | this License. If your rights have been terminated and not permanently 420 | reinstated, you do not qualify to receive new licenses for the same 421 | material under section 10. 422 | 423 | 9. Acceptance Not Required for Having Copies. 424 | 425 | You are not required to accept this License in order to receive or 426 | run a copy of the Program. Ancillary propagation of a covered work 427 | occurring solely as a consequence of using peer-to-peer transmission 428 | to receive a copy likewise does not require acceptance. However, 429 | nothing other than this License grants you permission to propagate or 430 | modify any covered work. These actions infringe copyright if you do 431 | not accept this License. Therefore, by modifying or propagating a 432 | covered work, you indicate your acceptance of this License to do so. 433 | 434 | 10. Automatic Licensing of Downstream Recipients. 435 | 436 | Each time you convey a covered work, the recipient automatically 437 | receives a license from the original licensors, to run, modify and 438 | propagate that work, subject to this License. You are not responsible 439 | for enforcing compliance by third parties with this License. 440 | 441 | An "entity transaction" is a transaction transferring control of an 442 | organization, or substantially all assets of one, or subdividing an 443 | organization, or merging organizations. If propagation of a covered 444 | work results from an entity transaction, each party to that 445 | transaction who receives a copy of the work also receives whatever 446 | licenses to the work the party's predecessor in interest had or could 447 | give under the previous paragraph, plus a right to possession of the 448 | Corresponding Source of the work from the predecessor in interest, if 449 | the predecessor has it or can get it with reasonable efforts. 450 | 451 | You may not impose any further restrictions on the exercise of the 452 | rights granted or affirmed under this License. For example, you may 453 | not impose a license fee, royalty, or other charge for exercise of 454 | rights granted under this License, and you may not initiate litigation 455 | (including a cross-claim or counterclaim in a lawsuit) alleging that 456 | any patent claim is infringed by making, using, selling, offering for 457 | sale, or importing the Program or any portion of it. 458 | 459 | 11. Patents. 460 | 461 | A "contributor" is a copyright holder who authorizes use under this 462 | License of the Program or a work on which the Program is based. The 463 | work thus licensed is called the contributor's "contributor version". 464 | 465 | A contributor's "essential patent claims" are all patent claims 466 | owned or controlled by the contributor, whether already acquired or 467 | hereafter acquired, that would be infringed by some manner, permitted 468 | by this License, of making, using, or selling its contributor version, 469 | but do not include claims that would be infringed only as a 470 | consequence of further modification of the contributor version. For 471 | purposes of this definition, "control" includes the right to grant 472 | patent sublicenses in a manner consistent with the requirements of 473 | this License. 474 | 475 | Each contributor grants you a non-exclusive, worldwide, royalty-free 476 | patent license under the contributor's essential patent claims, to 477 | make, use, sell, offer for sale, import and otherwise run, modify and 478 | propagate the contents of its contributor version. 479 | 480 | In the following three paragraphs, a "patent license" is any express 481 | agreement or commitment, however denominated, not to enforce a patent 482 | (such as an express permission to practice a patent or covenant not to 483 | sue for patent infringement). To "grant" such a patent license to a 484 | party means to make such an agreement or commitment not to enforce a 485 | patent against the party. 486 | 487 | If you convey a covered work, knowingly relying on a patent license, 488 | and the Corresponding Source of the work is not available for anyone 489 | to copy, free of charge and under the terms of this License, through a 490 | publicly available network server or other readily accessible means, 491 | then you must either (1) cause the Corresponding Source to be so 492 | available, or (2) arrange to deprive yourself of the benefit of the 493 | patent license for this particular work, or (3) arrange, in a manner 494 | consistent with the requirements of this License, to extend the patent 495 | license to downstream recipients. "Knowingly relying" means you have 496 | actual knowledge that, but for the patent license, your conveying the 497 | covered work in a country, or your recipient's use of the covered work 498 | in a country, would infringe one or more identifiable patents in that 499 | country that you have reason to believe are valid. 500 | 501 | If, pursuant to or in connection with a single transaction or 502 | arrangement, you convey, or propagate by procuring conveyance of, a 503 | covered work, and grant a patent license to some of the parties 504 | receiving the covered work authorizing them to use, propagate, modify 505 | or convey a specific copy of the covered work, then the patent license 506 | you grant is automatically extended to all recipients of the covered 507 | work and works based on it. 508 | 509 | A patent license is "discriminatory" if it does not include within 510 | the scope of its coverage, prohibits the exercise of, or is 511 | conditioned on the non-exercise of one or more of the rights that are 512 | specifically granted under this License. You may not convey a covered 513 | work if you are a party to an arrangement with a third party that is 514 | in the business of distributing software, under which you make payment 515 | to the third party based on the extent of your activity of conveying 516 | the work, and under which the third party grants, to any of the 517 | parties who would receive the covered work from you, a discriminatory 518 | patent license (a) in connection with copies of the covered work 519 | conveyed by you (or copies made from those copies), or (b) primarily 520 | for and in connection with specific products or compilations that 521 | contain the covered work, unless you entered into that arrangement, 522 | or that patent license was granted, prior to 28 March 2007. 523 | 524 | Nothing in this License shall be construed as excluding or limiting 525 | any implied license or other defenses to infringement that may 526 | otherwise be available to you under applicable patent law. 527 | 528 | 12. No Surrender of Others' Freedom. 529 | 530 | If conditions are imposed on you (whether by court order, agreement or 531 | otherwise) that contradict the conditions of this License, they do not 532 | excuse you from the conditions of this License. If you cannot convey a 533 | covered work so as to satisfy simultaneously your obligations under this 534 | License and any other pertinent obligations, then as a consequence you may 535 | not convey it at all. For example, if you agree to terms that obligate you 536 | to collect a royalty for further conveying from those to whom you convey 537 | the Program, the only way you could satisfy both those terms and this 538 | License would be to refrain entirely from conveying the Program. 539 | 540 | 13. Remote Network Interaction; Use with the GNU General Public License. 541 | 542 | Notwithstanding any other provision of this License, if you modify the 543 | Program, your modified version must prominently offer all users 544 | interacting with it remotely through a computer network (if your version 545 | supports such interaction) an opportunity to receive the Corresponding 546 | Source of your version by providing access to the Corresponding Source 547 | from a network server at no charge, through some standard or customary 548 | means of facilitating copying of software. This Corresponding Source 549 | shall include the Corresponding Source for any work covered by version 3 550 | of the GNU General Public License that is incorporated pursuant to the 551 | following paragraph. 552 | 553 | Notwithstanding any other provision of this License, you have 554 | permission to link or combine any covered work with a work licensed 555 | under version 3 of the GNU General Public License into a single 556 | combined work, and to convey the resulting work. The terms of this 557 | License will continue to apply to the part which is the covered work, 558 | but the work with which it is combined will remain governed by version 559 | 3 of the GNU General Public License. 560 | 561 | 14. Revised Versions of this License. 562 | 563 | The Free Software Foundation may publish revised and/or new versions of 564 | the GNU Affero General Public License from time to time. Such new versions 565 | will be similar in spirit to the present version, but may differ in detail to 566 | address new problems or concerns. 567 | 568 | Each version is given a distinguishing version number. If the 569 | Program specifies that a certain numbered version of the GNU Affero General 570 | Public License "or any later version" applies to it, you have the 571 | option of following the terms and conditions either of that numbered 572 | version or of any later version published by the Free Software 573 | Foundation. If the Program does not specify a version number of the 574 | GNU Affero General Public License, you may choose any version ever published 575 | by the Free Software Foundation. 576 | 577 | If the Program specifies that a proxy can decide which future 578 | versions of the GNU Affero General Public License can be used, that proxy's 579 | public statement of acceptance of a version permanently authorizes you 580 | to choose that version for the Program. 581 | 582 | Later license versions may give you additional or different 583 | permissions. However, no additional obligations are imposed on any 584 | author or copyright holder as a result of your choosing to follow a 585 | later version. 586 | 587 | 15. Disclaimer of Warranty. 588 | 589 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 590 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 591 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 592 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 593 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 594 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 595 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 596 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 597 | 598 | 16. Limitation of Liability. 599 | 600 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 601 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 602 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 603 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 604 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 605 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 606 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 607 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 608 | SUCH DAMAGES. 609 | 610 | 17. Interpretation of Sections 15 and 16. 611 | 612 | If the disclaimer of warranty and limitation of liability provided 613 | above cannot be given local legal effect according to their terms, 614 | reviewing courts shall apply local law that most closely approximates 615 | an absolute waiver of all civil liability in connection with the 616 | Program, unless a warranty or assumption of liability accompanies a 617 | copy of the Program in return for a fee. 618 | 619 | END OF TERMS AND CONDITIONS 620 | 621 | How to Apply These Terms to Your New Programs 622 | 623 | If you develop a new program, and you want it to be of the greatest 624 | possible use to the public, the best way to achieve this is to make it 625 | free software which everyone can redistribute and change under these terms. 626 | 627 | To do so, attach the following notices to the program. It is safest 628 | to attach them to the start of each source file to most effectively 629 | state the exclusion of warranty; and each file should have at least 630 | the "copyright" line and a pointer to where the full notice is found. 631 | 632 | 633 | Copyright (C) 634 | 635 | This program is free software: you can redistribute it and/or modify 636 | it under the terms of the GNU Affero General Public License as published 637 | by the Free Software Foundation, either version 3 of the License, or 638 | (at your option) any later version. 639 | 640 | This program is distributed in the hope that it will be useful, 641 | but WITHOUT ANY WARRANTY; without even the implied warranty of 642 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 643 | GNU Affero General Public License for more details. 644 | 645 | You should have received a copy of the GNU Affero General Public License 646 | along with this program. If not, see . 647 | 648 | Also add information on how to contact you by electronic and paper mail. 649 | 650 | If your software can interact with users remotely through a computer 651 | network, you should also make sure that it provides a way for users to 652 | get its source. For example, if your program is a web application, its 653 | interface could display a "Source" link that leads users to an archive 654 | of the code. There are many ways you could offer source, and different 655 | solutions will be better for different programs; see section 13 for the 656 | specific requirements. 657 | 658 | You should also get your employer (if you work as a programmer) or school, 659 | if any, to sign a "copyright disclaimer" for the program, if necessary. 660 | For more information on this, and how to apply and follow the GNU AGPL, see 661 | . 662 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

Immuni Backend Exposure Reporting Service

2 | 3 |
4 | 5 |
6 | 7 |
8 | 9 | 31 | 32 |
33 |

34 | 35 | 36 | Documentation 37 | 38 | | 39 | 40 | Contributing 41 | 42 |

43 |
44 | 45 | # Table of contents 46 | 47 | - [Context](#context) 48 | - [Installation](#installation) 49 | - [Contributing](#contributing) 50 | - [Contributors](#contributors) 51 | - [Licence](#licence) 52 | - [Authors / Copyright](#authors--copyright) 53 | - [Third-party component licences](#third-party-component-licences) 54 | - [Licence details](#licence-details) 55 | 56 | 57 | # Context 58 | This repository contains the source code of Immuni's Exposure Reporting Service. More detailed information about Immuni can be found in the following documents: 59 | 60 | - [High-Level Description](https://github.com/immuni-app/documentation/blob/master/README.md) 61 | - [Product Description](https://github.com/immuni-app/documentation/blob/master/Product%20Description.md) 62 | - [Technology Description](https://github.com/immuni-app/documentation/blob/master/Technology%20Description.md) 63 | - [Traffic Analysis Mitigation](https://github.com/immuni-app/immuni-documentation/blob/master/Traffic%20Analysis%20Mitigation.md) 64 | 65 | **Please take the time to read and consider the other repositories in full before digging into the source code or opening an Issue. They contain a lot of details that are fundamental to understanding the source code and this repository's documentation.** 66 | 67 | # Installation 68 | 69 | This backend service comes with an out-of-the-box installation, leveraging [Docker](https://www.docker.com/) containers. 70 | Please ensure that Docker is installed on your computer (docker-compose version >= 1.25.5). 71 | 72 | ```bash 73 | git clone --recurse-submodules git@github.com:immuni-app/immuni-backend-exposure-reporting.git 74 | cd immuni-backend-exposure-reporting/docker 75 | docker-compose build \ 76 | --build-arg GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD) \ 77 | --build-arg GIT_SHA=$(git rev-parse --verify HEAD) \ 78 | --build-arg GIT_TAG=$(git tag --points-at HEAD | cat) \ 79 | --build-arg BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ") 80 | ``` 81 | 82 | The backend service can then be launched. 83 | 84 | ```bash 85 | docker-compose up 86 | ``` 87 | 88 | At this point, the service is available at http://0.0.0.0:5000/swagger. 89 | 90 | For more information about how the project is generated and structured, please refer to the [Contributing](#contributing) section below. 91 | 92 | # Contributing 93 | Contributions are most welcome. Before proceeding, please read the [Code of Conduct](./CODE_OF_CONDUCT.md) for guidance on how to approach the community and create a positive environment. Additionally, please read our [CONTRIBUTING](./CONTRIBUTING.md) file, which contains guidance on ensuring a smooth contribution process. 94 | 95 | The Immuni project is composed of different repositories—one for each component or service. Please use this repository for contributions strictly relevant to Immuni's backend services. To propose a feature request, please open an issue in the [Documentation repository](https://github.com/immuni-app/immuni-documentation). This lets everyone involved see it, consider it, and participate in the discussion. Opening an issue or pull request in this repository may slow down the overall process. 96 | 97 | ## Contributors 98 | Here is a list of Immuni's contributors. Thank you to everyone involved for improving Immuni, day by day. 99 | 100 | 101 | 104 | 105 | 106 | # Licence 107 | 108 | ## Authors / Copyright 109 | 110 | Copyright 2020 (c) Presidenza del Consiglio dei Ministri. 111 | 112 | Please check the [AUTHORS](AUTHORS) file for extended reference. 113 | 114 | ## Third-party component licences 115 | 116 | Please see the Technology Description’s [Backend Services Technologies](https://github.com/immuni-app/documentation/blob/master/Technology%20Description.md#backend-services-technologies) section, which also lists the corresponding licences. 117 | 118 | ## Licence details 119 | 120 | The licence for this repository is a [GNU Affero General Public Licence version 3](https://www.gnu.org/licenses/agpl-3.0.html) (SPDX: AGPL-3.0). Please see the [LICENSE](LICENSE) file for full reference. 121 | 122 | -------------------------------------------------------------------------------- /docker/docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: '3.4' 2 | services: 3 | api: 4 | ports: 5 | - "5000:5000" 6 | build: 7 | context: ../ 8 | dockerfile: ./common/Dockerfile 9 | target: api 10 | args: 11 | API_PORT: 5000 12 | SERVICE_DIR: immuni_exposure_reporting 13 | environment: 14 | ENV: development 15 | EXPOSURE_MONGO_URL: "mongodb://mongo:27017" 16 | depends_on: 17 | - mongo 18 | mongo: 19 | image: mongo:4.0.18-xenial 20 | ports: 21 | - "27017:27017" 22 | -------------------------------------------------------------------------------- /entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -eu 3 | 4 | API_HOST=0.0.0.0 5 | API_PORT=${API_PORT:-5000} 6 | API_WORKERS=${API_WORKERS:-3} 7 | API_WORKER_MAX_REQUESTS=${API_WORKER_MAX_REQUESTS:-10000} 8 | 9 | case "$1" in 10 | api) poetry run gunicorn immuni_exposure_reporting.sanic:sanic_app \ 11 | --access-logfile='-' \ 12 | --bind=${API_HOST}:${API_PORT} \ 13 | --logger-class=immuni_common.helpers.logging.CustomGunicornLogger \ 14 | --max-requests=${API_WORKER_MAX_REQUESTS} \ 15 | --workers=${API_WORKERS} \ 16 | --worker-class=immuni_common.uvicorn.ImmuniUvicornWorker ;; 17 | debug) echo "Running in debug mode ..." \ 18 | && tail -f /dev/null ;; # Allow entering the container to inspect the environment. 19 | *) echo "Received unknown command $1 (allowed: api)" 20 | exit 2 ;; 21 | esac 22 | -------------------------------------------------------------------------------- /immuni_exposure_reporting/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2020 Presidenza del Consiglio dei Ministri. 2 | # Please refer to the AUTHORS file for more information. 3 | # This program is free software: you can redistribute it and/or modify 4 | # it under the terms of the GNU Affero General Public License as 5 | # published by the Free Software Foundation, either version 3 of the 6 | # License, or (at your option) any later version. 7 | # This program is distributed in the hope that it will be useful, 8 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | # GNU Affero General Public License for more details. 11 | # You should have received a copy of the GNU Affero General Public License 12 | # along with this program. If not, see . 13 | -------------------------------------------------------------------------------- /immuni_exposure_reporting/apis/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2020 Presidenza del Consiglio dei Ministri. 2 | # Please refer to the AUTHORS file for more information. 3 | # This program is free software: you can redistribute it and/or modify 4 | # it under the terms of the GNU Affero General Public License as 5 | # published by the Free Software Foundation, either version 3 of the 6 | # License, or (at your option) any later version. 7 | # This program is distributed in the hope that it will be useful, 8 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | # GNU Affero General Public License for more details. 11 | # You should have received a copy of the GNU Affero General Public License 12 | # along with this program. If not, see . 13 | -------------------------------------------------------------------------------- /immuni_exposure_reporting/apis/keys.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2020 Presidenza del Consiglio dei Ministri. 2 | # Please refer to the AUTHORS file for more information. 3 | # This program is free software: you can redistribute it and/or modify 4 | # it under the terms of the GNU Affero General Public License as 5 | # published by the Free Software Foundation, either version 3 of the 6 | # License, or (at your option) any later version. 7 | # This program is distributed in the hope that it will be useful, 8 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | # GNU Affero General Public License for more details. 11 | # You should have received a copy of the GNU Affero General Public License 12 | # along with this program. If not, see . 13 | 14 | from datetime import timedelta 15 | from http import HTTPStatus 16 | 17 | from mongoengine import DoesNotExist 18 | from sanic import Blueprint 19 | from sanic.request import Request 20 | from sanic.response import HTTPResponse, raw 21 | from sanic_openapi import doc 22 | 23 | from immuni_common.core.exceptions import ( 24 | BatchNotFoundException, 25 | NoBatchesException, 26 | SchemaValidationException, 27 | ) 28 | from immuni_common.helpers.cache import cache 29 | from immuni_common.helpers.sanic import json_response 30 | from immuni_common.helpers.swagger import doc_exception 31 | from immuni_common.models.mongoengine.batch_file import BatchFile 32 | from immuni_common.models.mongoengine.batch_file_eu import BatchFileEu 33 | from immuni_exposure_reporting.core import config 34 | from immuni_exposure_reporting.helpers.validation import ( 35 | validate_batch_country, 36 | validate_batch_index, 37 | ) 38 | from immuni_exposure_reporting.models.swagger import Index 39 | 40 | bp = Blueprint("keys", url_prefix="keys") 41 | 42 | 43 | @bp.route("/index", version=1, methods=["GET"]) 44 | @doc.summary("Fetch TEK Chunk indexes (caller: Mobile Client).") 45 | @doc.description( 46 | "Return the index of the oldest relevant TEK Chunk (no older than 14 days) and the index of " 47 | "the newest available TEK Chunk. " 48 | "It is up to the Mobile Client not to download the same TEK Chunk more than once." 49 | ) 50 | @doc_exception(NoBatchesException) 51 | @doc.response( 52 | HTTPStatus.OK.value, 53 | Index, 54 | description="The index of the oldest relevant TEK Chunk (no older than 14 days) and the index " 55 | "of the newest available TEK Chunk.", 56 | ) 57 | @cache(max_age=timedelta(minutes=config.MANIFEST_CACHE_TIME_IN_MINUTES)) 58 | async def index(request: Request) -> HTTPResponse: 59 | """ 60 | Return the index of the oldest relevant TEK Chunk (no older than 14 days) and the index of the 61 | newest available TEK Chunk. 62 | :param request: the HTTP request object. 63 | :return: the indexes of the oldest relevant and newest available TEK Chunks. 64 | """ 65 | indexes = BatchFile.get_oldest_and_newest_indexes(days=config.MANIFEST_LENGTH_IN_DAYS) 66 | return json_response(indexes) 67 | 68 | 69 | @bp.route("/", version=1, methods=["GET"]) 70 | @doc.summary("Download TEKs (caller: Mobile Client).") 71 | @doc.description( 72 | "Given a specific TEK Chunk index, the Mobile Client downloads the associated TEK Chunk from " 73 | "the Exposure Reporting Service." 74 | ) 75 | @doc_exception(SchemaValidationException) 76 | @doc_exception(BatchNotFoundException) 77 | @doc.produces(None, content_type="application/zip") 78 | @doc.response( 79 | HTTPStatus.OK.value, 80 | None, 81 | description="The TEK Chunk's zip file associated with the provided index.", 82 | ) 83 | @cache(max_age=timedelta(days=config.SINGLE_BATCH_CACHE_TIME_IN_DAYS)) 84 | async def get_batch(request: Request, batch_index: str) -> HTTPResponse: 85 | """ 86 | Fetch a specific TEK Chunk, serialized as zip file as required by the Mobile Client. 87 | :param request: the HTTP request object. 88 | :param batch_index: the index of the TEK Chunk to fetch. 89 | :return: the TEK Chunk's zip file associated with the provided index. 90 | :raises: BatchNotFoundException if the index is not associated with any TEK Chunk. 91 | """ 92 | try: 93 | batch = BatchFile.from_index(validate_batch_index(batch_index)) 94 | except DoesNotExist as error: 95 | raise BatchNotFoundException() from error 96 | return raw(batch.client_content, content_type="application/zip") 97 | 98 | 99 | @bp.route("/eu//index", version=1, methods=["GET"]) 100 | @doc.summary("Fetch TEK Chunk indexes for the selected country (caller: Mobile Client).") 101 | @doc.description( 102 | "For the requested country, return the index of the oldest relevant TEK Chunk" 103 | "(no older than 14 days) and the index of the newest available TEK Chunk. " 104 | "It is up to the Mobile Client not to download the same TEK Chunk more than once." 105 | ) 106 | @doc_exception(SchemaValidationException) 107 | @doc_exception(NoBatchesException) 108 | @doc.response( 109 | HTTPStatus.OK.value, 110 | Index, 111 | description="The index of the oldest relevant TEK Chunk (no older than 14 days) and the index " 112 | "of the newest available TEK Chunk.", 113 | ) 114 | @cache(max_age=timedelta(minutes=config.MANIFEST_CACHE_TIME_IN_MINUTES)) 115 | async def index_eu(request: Request, batch_country: str) -> HTTPResponse: 116 | """ 117 | For the requested country, return the index of the oldest relevant TEK Chunk 118 | (no older than 14 days) and the index of the newest available TEK Chunk. 119 | :param request: the HTTP request object. 120 | :param batch_country: the country of interest. 121 | :return: the indexes of the oldest relevant and newest available TEK Chunks. 122 | """ 123 | indexes = BatchFileEu.get_oldest_and_newest_indexes( 124 | country=validate_batch_country(batch_country), days=config.MANIFEST_LENGTH_IN_DAYS 125 | ) 126 | return json_response(indexes) 127 | 128 | 129 | @bp.route("/eu//", version=1, methods=["GET"]) 130 | @doc.summary("Download TEKs for the requested country (caller: Mobile Client).") 131 | @doc.description( 132 | "Given a specific TEK Chunk country and index, the Mobile Client downloads the associated " 133 | "TEK Chunk from the Exposure Reporting Service." 134 | ) 135 | @doc_exception(SchemaValidationException) 136 | @doc_exception(BatchNotFoundException) 137 | @doc.produces(None, content_type="application/zip") 138 | @doc.response( 139 | HTTPStatus.OK.value, 140 | None, 141 | description="The TEK Chunk's zip file associated with the provided index.", 142 | ) 143 | @cache(max_age=timedelta(days=config.SINGLE_BATCH_CACHE_TIME_IN_DAYS)) 144 | async def get_batch_eu(request: Request, batch_country: str, batch_index: str) -> HTTPResponse: 145 | """ 146 | Fetch a specific TEK Chunk, serialized as zip file as required by the Mobile Client. 147 | :param request: the HTTP request object. 148 | :param batch_country: the country of interest. 149 | :param batch_index: the index of the TEK Chunk to fetch. 150 | :return: the TEK Chunk's zip file associated with the provided index. 151 | :raises: BatchNotFoundException if the index is not associated with any TEK Chunk. 152 | """ 153 | try: 154 | batch = BatchFileEu.from_index( 155 | country=validate_batch_country(batch_country), index=validate_batch_index(batch_index) 156 | ) 157 | except DoesNotExist as error: 158 | raise BatchNotFoundException() from error 159 | return raw(batch.client_content, content_type="application/zip") 160 | -------------------------------------------------------------------------------- /immuni_exposure_reporting/core/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2020 Presidenza del Consiglio dei Ministri. 2 | # Please refer to the AUTHORS file for more information. 3 | # This program is free software: you can redistribute it and/or modify 4 | # it under the terms of the GNU Affero General Public License as 5 | # published by the Free Software Foundation, either version 3 of the 6 | # License, or (at your option) any later version. 7 | # This program is distributed in the hope that it will be useful, 8 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | # GNU Affero General Public License for more details. 11 | # You should have received a copy of the GNU Affero General Public License 12 | # along with this program. If not, see . 13 | -------------------------------------------------------------------------------- /immuni_exposure_reporting/core/config.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2020 Presidenza del Consiglio dei Ministri. 2 | # Please refer to the AUTHORS file for more information. 3 | # This program is free software: you can redistribute it and/or modify 4 | # it under the terms of the GNU Affero General Public License as 5 | # published by the Free Software Foundation, either version 3 of the 6 | # License, or (at your option) any later version. 7 | # This program is distributed in the hope that it will be useful, 8 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | # GNU Affero General Public License for more details. 11 | # You should have received a copy of the GNU Affero General Public License 12 | # along with this program. If not, see . 13 | 14 | from decouple import config 15 | 16 | EXPOSURE_MONGO_URL = config( 17 | "EXPOSURE_MONGO_URL", default="mongodb://localhost:27017/immuni-exposure-reporting-dev" 18 | ) 19 | 20 | MANIFEST_LENGTH_IN_DAYS = config("MANIFEST_LENGTH_IN_DAYS", cast=int, default=14) 21 | MANIFEST_CACHE_TIME_IN_MINUTES = config("MANIFEST_CACHE_TIME_IN_MINUTES", cast=int, default=30) 22 | SINGLE_BATCH_CACHE_TIME_IN_DAYS = config("SINGLE_BATCH_CACHE_TIME_IN_DAYS", cast=int, default=15) 23 | 24 | APP_BUNDLE_ID = config("APP_BUNDLE_ID", default="it.ministerodellasalute.immuni") 25 | ANDROID_PACKAGE = config("ANDROID_PACKAGE", default="org.immuni.android") 26 | 27 | EXPORT_BIN_HEADER = config("EXPORT_BIN_HEADER", default="EK Export v1") 28 | -------------------------------------------------------------------------------- /immuni_exposure_reporting/core/managers.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2020 Presidenza del Consiglio dei Ministri. 2 | # Please refer to the AUTHORS file for more information. 3 | # This program is free software: you can redistribute it and/or modify 4 | # it under the terms of the GNU Affero General Public License as 5 | # published by the Free Software Foundation, either version 3 of the 6 | # License, or (at your option) any later version. 7 | # This program is distributed in the hope that it will be useful, 8 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | # GNU Affero General Public License for more details. 11 | # You should have received a copy of the GNU Affero General Public License 12 | # along with this program. If not, see . 13 | 14 | from typing import Optional 15 | 16 | from mongoengine import connect 17 | from pymongo import MongoClient 18 | 19 | from immuni_common.core.exceptions import ImmuniException 20 | from immuni_common.core.managers import BaseManagers 21 | from immuni_exposure_reporting.core import config 22 | 23 | 24 | class Managers(BaseManagers): 25 | """ 26 | Singleton objects containing API clients used somewhere in the application. 27 | """ 28 | 29 | _exposure_mongo: Optional[MongoClient] = None 30 | 31 | @property 32 | def exposure_mongo(self) -> MongoClient: 33 | """ 34 | Return the MongoDB manager to handle TEKs. 35 | :return: the MongoDB manager to handle TEKs. 36 | :raise: ImmuniException if the manager is not initialized. 37 | """ 38 | if self._exposure_mongo is None: 39 | raise ImmuniException("Cannot use the MongoDB manager before initializing it.") 40 | return self._exposure_mongo 41 | 42 | async def initialize(self) -> None: 43 | """ 44 | Initialize managers on demand. 45 | """ 46 | await super().initialize() 47 | self._exposure_mongo = connect(host=config.EXPOSURE_MONGO_URL) 48 | 49 | async def teardown(self) -> None: 50 | """ 51 | Perform teardown actions (e.g., close open connections.) 52 | """ 53 | await super().teardown() 54 | if self._exposure_mongo is not None: 55 | self._exposure_mongo.close() 56 | 57 | 58 | managers = Managers() 59 | -------------------------------------------------------------------------------- /immuni_exposure_reporting/helpers/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2020 Presidenza del Consiglio dei Ministri. 2 | # Please refer to the AUTHORS file for more information. 3 | # This program is free software: you can redistribute it and/or modify 4 | # it under the terms of the GNU Affero General Public License as 5 | # published by the Free Software Foundation, either version 3 of the 6 | # License, or (at your option) any later version. 7 | # This program is distributed in the hope that it will be useful, 8 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | # GNU Affero General Public License for more details. 11 | # You should have received a copy of the GNU Affero General Public License 12 | # along with this program. If not, see . 13 | -------------------------------------------------------------------------------- /immuni_exposure_reporting/helpers/validation.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2020 Presidenza del Consiglio dei Ministri. 2 | # Please refer to the AUTHORS file for more information. 3 | # This program is free software: you can redistribute it and/or modify 4 | # it under the terms of the GNU Affero General Public License as 5 | # published by the Free Software Foundation, either version 3 of the 6 | # License, or (at your option) any later version. 7 | # This program is distributed in the hope that it will be useful, 8 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | # GNU Affero General Public License for more details. 11 | # You should have received a copy of the GNU Affero General Public License 12 | # along with this program. If not, see . 13 | 14 | import re 15 | import sys 16 | 17 | from immuni_common.core.exceptions import SchemaValidationException 18 | from immuni_common.models.marshmallow.fields import VALID_COUNTRY_REGEX 19 | 20 | 21 | def validate_batch_index(batch_index: str) -> int: 22 | """ 23 | Validate the given batch index. 24 | :param batch_index: the batch index to validate. 25 | :return: the batch index, if valid. 26 | :raises: SchemaValidationException if the given batch index is invalid. 27 | """ 28 | try: 29 | index = int(batch_index) 30 | if index < 1 or index > sys.maxsize: 31 | raise ValueError() 32 | except ValueError as error: 33 | raise SchemaValidationException() from error 34 | return index 35 | 36 | 37 | def validate_batch_country(batch_country: str) -> str: 38 | """ 39 | Validate the given batch country. 40 | :param batch_country: the batch country to validate. 41 | :return: the batch country, if valid. 42 | :raises: SchemaValidationException if the given batch country is invalid. 43 | """ 44 | try: 45 | regex = re.compile(VALID_COUNTRY_REGEX) 46 | match = regex.match(batch_country) 47 | if not match: 48 | raise ValueError() 49 | except ValueError as error: 50 | raise SchemaValidationException() from error 51 | return batch_country 52 | -------------------------------------------------------------------------------- /immuni_exposure_reporting/models/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2020 Presidenza del Consiglio dei Ministri. 2 | # Please refer to the AUTHORS file for more information. 3 | # This program is free software: you can redistribute it and/or modify 4 | # it under the terms of the GNU Affero General Public License as 5 | # published by the Free Software Foundation, either version 3 of the 6 | # License, or (at your option) any later version. 7 | # This program is distributed in the hope that it will be useful, 8 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | # GNU Affero General Public License for more details. 11 | # You should have received a copy of the GNU Affero General Public License 12 | # along with this program. If not, see . 13 | -------------------------------------------------------------------------------- /immuni_exposure_reporting/models/swagger.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2020 Presidenza del Consiglio dei Ministri. 2 | # Please refer to the AUTHORS file for more information. 3 | # This program is free software: you can redistribute it and/or modify 4 | # it under the terms of the GNU Affero General Public License as 5 | # published by the Free Software Foundation, either version 3 of the 6 | # License, or (at your option) any later version. 7 | # This program is distributed in the hope that it will be useful, 8 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | # GNU Affero General Public License for more details. 11 | # You should have received a copy of the GNU Affero General Public License 12 | # along with this program. If not, see . 13 | 14 | from sanic_openapi import doc 15 | 16 | 17 | class Index: 18 | """ 19 | Swagger documentation of a successful keys/index endpoint response. 20 | """ 21 | 22 | oldest = doc.String("The index of the oldest relevant TEK Chunk (no older than 14 days).") 23 | newest = doc.String("The index of the newest available TEK Chunk.") 24 | -------------------------------------------------------------------------------- /immuni_exposure_reporting/sanic.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2020 Presidenza del Consiglio dei Ministri. 2 | # Please refer to the AUTHORS file for more information. 3 | # This program is free software: you can redistribute it and/or modify 4 | # it under the terms of the GNU Affero General Public License as 5 | # published by the Free Software Foundation, either version 3 of the 6 | # License, or (at your option) any later version. 7 | # This program is distributed in the hope that it will be useful, 8 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | # GNU Affero General Public License for more details. 11 | # You should have received a copy of the GNU Affero General Public License 12 | # along with this program. If not, see . 13 | 14 | from immuni_common.sanic import create_app, run_app 15 | from immuni_exposure_reporting.apis import keys 16 | from immuni_exposure_reporting.core.managers import managers 17 | 18 | sanic_app = create_app( 19 | api_title="Exposure Reporting Service", 20 | api_description="The Exposure Reporting Service makes the TEK Chunks created by the Exposure " 21 | "Ingestion Service available to the Mobile Client. Only TEK Chunks for the last 14 days are " 22 | "made available." 23 | "

" 24 | "To avoid downloading the same TEKs multiple times, the Mobile Clients fetch the indexes of " 25 | "the TEK Chunks available to download first. " 26 | "Then, they only actually download TEK Chunks with indexes for which TEK Chunks have not been " 27 | "downloaded before.", 28 | blueprints=(keys.bp,), 29 | managers=managers, 30 | ) 31 | 32 | if __name__ == "__main__": # pragma: no cover 33 | run_app(sanic_app) 34 | -------------------------------------------------------------------------------- /poetry.lock: -------------------------------------------------------------------------------- 1 | [[package]] 2 | name = "aiofiles" 3 | version = "0.6.0" 4 | description = "File support for asyncio." 5 | category = "main" 6 | optional = false 7 | python-versions = "*" 8 | 9 | [[package]] 10 | name = "aiohttp" 11 | version = "3.7.2" 12 | description = "Async http client/server framework (asyncio)" 13 | category = "dev" 14 | optional = false 15 | python-versions = ">=3.6" 16 | 17 | [package.dependencies] 18 | async-timeout = ">=3.0,<4.0" 19 | attrs = ">=17.3.0" 20 | chardet = ">=2.0,<4.0" 21 | multidict = ">=4.5,<7.0" 22 | typing-extensions = ">=3.6.5" 23 | yarl = ">=1.0,<2.0" 24 | 25 | [package.extras] 26 | speedups = ["aiodns", "brotlipy", "cchardet"] 27 | 28 | [[package]] 29 | name = "aioredis" 30 | version = "1.3.1" 31 | description = "asyncio (PEP 3156) Redis support" 32 | category = "dev" 33 | optional = false 34 | python-versions = "*" 35 | 36 | [package.dependencies] 37 | async-timeout = "*" 38 | hiredis = "*" 39 | 40 | [[package]] 41 | name = "appdirs" 42 | version = "1.4.4" 43 | description = "A small Python module for determining appropriate platform-specific dirs, e.g. a \"user data dir\"." 44 | category = "dev" 45 | optional = false 46 | python-versions = "*" 47 | 48 | [[package]] 49 | name = "astroid" 50 | version = "2.4.2" 51 | description = "An abstract syntax tree for Python with inference support." 52 | category = "dev" 53 | optional = false 54 | python-versions = ">=3.5" 55 | 56 | [package.dependencies] 57 | lazy-object-proxy = ">=1.4.0,<1.5.0" 58 | six = ">=1.12,<2.0" 59 | wrapt = ">=1.11,<2.0" 60 | 61 | [[package]] 62 | name = "async-generator" 63 | version = "1.10" 64 | description = "Async generators and context managers for Python 3.5+" 65 | category = "dev" 66 | optional = false 67 | python-versions = ">=3.5" 68 | 69 | [[package]] 70 | name = "async-timeout" 71 | version = "3.0.1" 72 | description = "Timeout context manager for asyncio programs" 73 | category = "dev" 74 | optional = false 75 | python-versions = ">=3.5.3" 76 | 77 | [[package]] 78 | name = "atomicwrites" 79 | version = "1.4.0" 80 | description = "Atomic file writes." 81 | category = "dev" 82 | optional = false 83 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" 84 | 85 | [[package]] 86 | name = "attrs" 87 | version = "20.2.0" 88 | description = "Classes Without Boilerplate" 89 | category = "dev" 90 | optional = false 91 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" 92 | 93 | [package.extras] 94 | dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "zope.interface", "sphinx", "sphinx-rtd-theme", "pre-commit"] 95 | docs = ["sphinx", "sphinx-rtd-theme", "zope.interface"] 96 | tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "zope.interface"] 97 | tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six"] 98 | 99 | [[package]] 100 | name = "bandit" 101 | version = "1.6.2" 102 | description = "Security oriented static analyser for python code." 103 | category = "dev" 104 | optional = false 105 | python-versions = "*" 106 | 107 | [package.dependencies] 108 | colorama = {version = ">=0.3.9", markers = "platform_system == \"Windows\""} 109 | GitPython = ">=1.0.1" 110 | PyYAML = ">=3.13" 111 | six = ">=1.10.0" 112 | stevedore = ">=1.20.0" 113 | 114 | [[package]] 115 | name = "black" 116 | version = "19.10b0" 117 | description = "The uncompromising code formatter." 118 | category = "dev" 119 | optional = false 120 | python-versions = ">=3.6" 121 | 122 | [package.dependencies] 123 | appdirs = "*" 124 | attrs = ">=18.1.0" 125 | click = ">=6.5" 126 | pathspec = ">=0.6,<1" 127 | regex = "*" 128 | toml = ">=0.9.4" 129 | typed-ast = ">=1.4.0" 130 | 131 | [package.extras] 132 | d = ["aiohttp (>=3.3.2)", "aiohttp-cors"] 133 | 134 | [[package]] 135 | name = "certifi" 136 | version = "2020.6.20" 137 | description = "Python package for providing Mozilla's CA Bundle." 138 | category = "main" 139 | optional = false 140 | python-versions = "*" 141 | 142 | [[package]] 143 | name = "chardet" 144 | version = "3.0.4" 145 | description = "Universal encoding detector for Python 2 and 3" 146 | category = "main" 147 | optional = false 148 | python-versions = "*" 149 | 150 | [[package]] 151 | name = "click" 152 | version = "7.1.2" 153 | description = "Composable command line interface toolkit" 154 | category = "main" 155 | optional = false 156 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" 157 | 158 | [[package]] 159 | name = "colorama" 160 | version = "0.4.4" 161 | description = "Cross-platform colored terminal text." 162 | category = "dev" 163 | optional = false 164 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" 165 | 166 | [[package]] 167 | name = "coverage" 168 | version = "5.3" 169 | description = "Code coverage measurement for Python" 170 | category = "dev" 171 | optional = false 172 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4" 173 | 174 | [package.extras] 175 | toml = ["toml"] 176 | 177 | [[package]] 178 | name = "dnspython" 179 | version = "1.16.0" 180 | description = "DNS toolkit" 181 | category = "main" 182 | optional = false 183 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" 184 | 185 | [package.extras] 186 | DNSSEC = ["pycryptodome", "ecdsa (>=0.13)"] 187 | IDNA = ["idna (>=2.1)"] 188 | 189 | [[package]] 190 | name = "flake8" 191 | version = "3.8.1" 192 | description = "the modular source code checker: pep8 pyflakes and co" 193 | category = "dev" 194 | optional = false 195 | python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,>=2.7" 196 | 197 | [package.dependencies] 198 | mccabe = ">=0.6.0,<0.7.0" 199 | pycodestyle = ">=2.6.0a1,<2.7.0" 200 | pyflakes = ">=2.2.0,<2.3.0" 201 | 202 | [[package]] 203 | name = "freezegun" 204 | version = "0.3.15" 205 | description = "Let your Python tests travel through time" 206 | category = "dev" 207 | optional = false 208 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" 209 | 210 | [package.dependencies] 211 | python-dateutil = ">=1.0,<2.0 || >2.0" 212 | six = "*" 213 | 214 | [[package]] 215 | name = "gitdb" 216 | version = "4.0.5" 217 | description = "Git Object Database" 218 | category = "dev" 219 | optional = false 220 | python-versions = ">=3.4" 221 | 222 | [package.dependencies] 223 | smmap = ">=3.0.1,<4" 224 | 225 | [[package]] 226 | name = "gitpython" 227 | version = "3.1.11" 228 | description = "Python Git Library" 229 | category = "dev" 230 | optional = false 231 | python-versions = ">=3.4" 232 | 233 | [package.dependencies] 234 | gitdb = ">=4.0.1,<5" 235 | 236 | [[package]] 237 | name = "gunicorn" 238 | version = "20.0.4" 239 | description = "WSGI HTTP Server for UNIX" 240 | category = "main" 241 | optional = false 242 | python-versions = ">=3.4" 243 | 244 | [package.extras] 245 | eventlet = ["eventlet (>=0.9.7)"] 246 | gevent = ["gevent (>=0.13)"] 247 | setproctitle = ["setproctitle"] 248 | tornado = ["tornado (>=0.2)"] 249 | 250 | [[package]] 251 | name = "h11" 252 | version = "0.8.1" 253 | description = "A pure-Python, bring-your-own-I/O implementation of HTTP/1.1" 254 | category = "main" 255 | optional = false 256 | python-versions = "*" 257 | 258 | [[package]] 259 | name = "h2" 260 | version = "3.2.0" 261 | description = "HTTP/2 State-Machine based protocol implementation" 262 | category = "main" 263 | optional = false 264 | python-versions = "*" 265 | 266 | [package.dependencies] 267 | hpack = ">=3.0,<4" 268 | hyperframe = ">=5.2.0,<6" 269 | 270 | [[package]] 271 | name = "hiredis" 272 | version = "1.1.0" 273 | description = "Python wrapper for hiredis" 274 | category = "dev" 275 | optional = false 276 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" 277 | 278 | [[package]] 279 | name = "hpack" 280 | version = "3.0.0" 281 | description = "Pure-Python HPACK header compression" 282 | category = "main" 283 | optional = false 284 | python-versions = "*" 285 | 286 | [[package]] 287 | name = "httpcore" 288 | version = "0.3.0" 289 | description = "..." 290 | category = "main" 291 | optional = false 292 | python-versions = ">=3.6" 293 | 294 | [package.dependencies] 295 | certifi = "*" 296 | chardet = ">=3.0.0,<4.0.0" 297 | h11 = ">=0.8.0,<0.9.0" 298 | h2 = ">=3.0.0,<4.0.0" 299 | idna = ">=2.0.0,<3.0.0" 300 | rfc3986 = ">=1.0.0,<2.0.0" 301 | 302 | [[package]] 303 | name = "httptools" 304 | version = "0.1.1" 305 | description = "A collection of framework independent HTTP protocol utils." 306 | category = "main" 307 | optional = false 308 | python-versions = "*" 309 | 310 | [package.extras] 311 | test = ["Cython (==0.29.14)"] 312 | 313 | [[package]] 314 | name = "hyperframe" 315 | version = "5.2.0" 316 | description = "HTTP/2 framing layer for Python" 317 | category = "main" 318 | optional = false 319 | python-versions = "*" 320 | 321 | [[package]] 322 | name = "idna" 323 | version = "2.10" 324 | description = "Internationalized Domain Names in Applications (IDNA)" 325 | category = "main" 326 | optional = false 327 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" 328 | 329 | [[package]] 330 | name = "immuni-common" 331 | version = "1.0.0" 332 | description = "" 333 | category = "main" 334 | optional = false 335 | python-versions = "^3.8" 336 | develop = true 337 | 338 | [package.dependencies] 339 | dnspython = "<2.0.0" 340 | gunicorn = "==20.0.4" 341 | marshmallow = "==3.5.2" 342 | mongoengine = "==0.20.0" 343 | prometheus_client = "==0.7.1" 344 | python-decouple = "==3.3" 345 | python-json-logger = "==0.1.11" 346 | sanic = "==19.9.0" 347 | sanic-openapi = "==0.6.0" 348 | uvicorn = "==0.12.2" 349 | 350 | [package.extras] 351 | aioredis = ["aioredis (==1.3.1)"] 352 | celery = ["celery[redis] (==4.4.2)", "croniter (==0.3.31)"] 353 | 354 | [package.source] 355 | type = "directory" 356 | url = "common" 357 | 358 | [[package]] 359 | name = "immuni-common-dev" 360 | version = "1.0.0" 361 | description = "dev-dependencies for immuni repositories" 362 | category = "dev" 363 | optional = false 364 | python-versions = "^3.8" 365 | develop = true 366 | 367 | [package.dependencies] 368 | aioredis = "^1.3.1" 369 | bandit = "^1.6.2" 370 | black = "^19.10b0" 371 | flake8 = "==3.8.1" 372 | freezegun = "^0.3.15" 373 | isort = "^4.3.21" 374 | mongoengine = "^0.20.0" 375 | mypy = "^0.770" 376 | pylint = "^2.5.0" 377 | pylint-mongoengine = "^0.4.0" 378 | pytest = "^5.4.1" 379 | pytest-cov = "^2.8.1" 380 | pytest-sanic = "^1.6.1" 381 | 382 | [package.source] 383 | type = "directory" 384 | url = "common/dev" 385 | 386 | [[package]] 387 | name = "isort" 388 | version = "4.3.21" 389 | description = "A Python utility / library to sort Python imports." 390 | category = "dev" 391 | optional = false 392 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" 393 | 394 | [package.extras] 395 | pipfile = ["pipreqs", "requirementslib"] 396 | pyproject = ["toml"] 397 | requirements = ["pipreqs", "pip-api"] 398 | xdg_home = ["appdirs (>=1.4.0)"] 399 | 400 | [[package]] 401 | name = "lazy-object-proxy" 402 | version = "1.4.3" 403 | description = "A fast and thorough lazy object proxy." 404 | category = "dev" 405 | optional = false 406 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" 407 | 408 | [[package]] 409 | name = "marshmallow" 410 | version = "3.5.2" 411 | description = "A lightweight library for converting complex datatypes to and from native Python datatypes." 412 | category = "main" 413 | optional = false 414 | python-versions = ">=3.5" 415 | 416 | [package.extras] 417 | dev = ["pytest", "pytz", "simplejson", "mypy (==0.770)", "flake8 (==3.7.9)", "flake8-bugbear (==20.1.4)", "pre-commit (>=1.20,<3.0)", "tox"] 418 | docs = ["sphinx (==3.0.3)", "sphinx-issues (==1.2.0)", "alabaster (==0.7.12)", "sphinx-version-warning (==1.1.2)"] 419 | lint = ["mypy (==0.770)", "flake8 (==3.7.9)", "flake8-bugbear (==20.1.4)", "pre-commit (>=1.20,<3.0)"] 420 | tests = ["pytest", "pytz", "simplejson"] 421 | 422 | [[package]] 423 | name = "mccabe" 424 | version = "0.6.1" 425 | description = "McCabe checker, plugin for flake8" 426 | category = "dev" 427 | optional = false 428 | python-versions = "*" 429 | 430 | [[package]] 431 | name = "mongoengine" 432 | version = "0.20.0" 433 | description = "MongoEngine is a Python Object-Document Mapper for working with MongoDB." 434 | category = "main" 435 | optional = false 436 | python-versions = ">=3.5" 437 | 438 | [package.dependencies] 439 | pymongo = ">=3.4,<4.0" 440 | 441 | [[package]] 442 | name = "more-itertools" 443 | version = "8.6.0" 444 | description = "More routines for operating on iterables, beyond itertools" 445 | category = "dev" 446 | optional = false 447 | python-versions = ">=3.5" 448 | 449 | [[package]] 450 | name = "multidict" 451 | version = "4.7.6" 452 | description = "multidict implementation" 453 | category = "main" 454 | optional = false 455 | python-versions = ">=3.5" 456 | 457 | [[package]] 458 | name = "mypy" 459 | version = "0.770" 460 | description = "Optional static typing for Python" 461 | category = "dev" 462 | optional = false 463 | python-versions = ">=3.5" 464 | 465 | [package.dependencies] 466 | mypy-extensions = ">=0.4.3,<0.5.0" 467 | typed-ast = ">=1.4.0,<1.5.0" 468 | typing-extensions = ">=3.7.4" 469 | 470 | [package.extras] 471 | dmypy = ["psutil (>=4.0)"] 472 | 473 | [[package]] 474 | name = "mypy-extensions" 475 | version = "0.4.3" 476 | description = "Experimental type system extensions for programs checked with the mypy typechecker." 477 | category = "dev" 478 | optional = false 479 | python-versions = "*" 480 | 481 | [[package]] 482 | name = "packaging" 483 | version = "20.4" 484 | description = "Core utilities for Python packages" 485 | category = "dev" 486 | optional = false 487 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" 488 | 489 | [package.dependencies] 490 | pyparsing = ">=2.0.2" 491 | six = "*" 492 | 493 | [[package]] 494 | name = "pathspec" 495 | version = "0.8.0" 496 | description = "Utility library for gitignore style pattern matching of file paths." 497 | category = "dev" 498 | optional = false 499 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" 500 | 501 | [[package]] 502 | name = "pbr" 503 | version = "5.5.1" 504 | description = "Python Build Reasonableness" 505 | category = "dev" 506 | optional = false 507 | python-versions = ">=2.6" 508 | 509 | [[package]] 510 | name = "pluggy" 511 | version = "0.13.1" 512 | description = "plugin and hook calling mechanisms for python" 513 | category = "dev" 514 | optional = false 515 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" 516 | 517 | [package.extras] 518 | dev = ["pre-commit", "tox"] 519 | 520 | [[package]] 521 | name = "prometheus-client" 522 | version = "0.7.1" 523 | description = "Python client for the Prometheus monitoring system." 524 | category = "main" 525 | optional = false 526 | python-versions = "*" 527 | 528 | [package.extras] 529 | twisted = ["twisted"] 530 | 531 | [[package]] 532 | name = "py" 533 | version = "1.9.0" 534 | description = "library with cross-python path, ini-parsing, io, code, log facilities" 535 | category = "dev" 536 | optional = false 537 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" 538 | 539 | [[package]] 540 | name = "pycodestyle" 541 | version = "2.6.0" 542 | description = "Python style guide checker" 543 | category = "dev" 544 | optional = false 545 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" 546 | 547 | [[package]] 548 | name = "pyflakes" 549 | version = "2.2.0" 550 | description = "passive checker of Python programs" 551 | category = "dev" 552 | optional = false 553 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" 554 | 555 | [[package]] 556 | name = "pylint" 557 | version = "2.6.0" 558 | description = "python code static checker" 559 | category = "dev" 560 | optional = false 561 | python-versions = ">=3.5.*" 562 | 563 | [package.dependencies] 564 | astroid = ">=2.4.0,<=2.5" 565 | colorama = {version = "*", markers = "sys_platform == \"win32\""} 566 | isort = ">=4.2.5,<6" 567 | mccabe = ">=0.6,<0.7" 568 | toml = ">=0.7.1" 569 | 570 | [[package]] 571 | name = "pylint-mongoengine" 572 | version = "0.4.0" 573 | description = "A Pylint plugin to help it understand MongoEngine" 574 | category = "dev" 575 | optional = false 576 | python-versions = "*" 577 | 578 | [package.dependencies] 579 | pylint = ">=2.0" 580 | pylint-plugin-utils = ">=0.5" 581 | 582 | [[package]] 583 | name = "pylint-plugin-utils" 584 | version = "0.6" 585 | description = "Utilities and helpers for writing Pylint plugins" 586 | category = "dev" 587 | optional = false 588 | python-versions = "*" 589 | 590 | [package.dependencies] 591 | pylint = ">=1.7" 592 | 593 | [[package]] 594 | name = "pymongo" 595 | version = "3.11.0" 596 | description = "Python driver for MongoDB " 597 | category = "main" 598 | optional = false 599 | python-versions = ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*" 600 | 601 | [package.extras] 602 | aws = ["pymongo-auth-aws (<2.0.0)"] 603 | encryption = ["pymongocrypt (<2.0.0)"] 604 | gssapi = ["pykerberos"] 605 | ocsp = ["pyopenssl (>=17.2.0)", "requests (<3.0.0)", "service-identity (>=18.1.0)"] 606 | snappy = ["python-snappy"] 607 | srv = ["dnspython (>=1.16.0,<1.17.0)"] 608 | tls = ["ipaddress"] 609 | zstd = ["zstandard"] 610 | 611 | [[package]] 612 | name = "pyparsing" 613 | version = "2.4.7" 614 | description = "Python parsing module" 615 | category = "dev" 616 | optional = false 617 | python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*" 618 | 619 | [[package]] 620 | name = "pytest" 621 | version = "5.4.3" 622 | description = "pytest: simple powerful testing with Python" 623 | category = "dev" 624 | optional = false 625 | python-versions = ">=3.5" 626 | 627 | [package.dependencies] 628 | atomicwrites = {version = ">=1.0", markers = "sys_platform == \"win32\""} 629 | attrs = ">=17.4.0" 630 | colorama = {version = "*", markers = "sys_platform == \"win32\""} 631 | more-itertools = ">=4.0.0" 632 | packaging = "*" 633 | pluggy = ">=0.12,<1.0" 634 | py = ">=1.5.0" 635 | wcwidth = "*" 636 | 637 | [package.extras] 638 | checkqa-mypy = ["mypy (==v0.761)"] 639 | testing = ["argcomplete", "hypothesis (>=3.56)", "mock", "nose", "requests", "xmlschema"] 640 | 641 | [[package]] 642 | name = "pytest-cov" 643 | version = "2.10.1" 644 | description = "Pytest plugin for measuring coverage." 645 | category = "dev" 646 | optional = false 647 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" 648 | 649 | [package.dependencies] 650 | coverage = ">=4.4" 651 | pytest = ">=4.6" 652 | 653 | [package.extras] 654 | testing = ["fields", "hunter", "process-tests (==2.0.2)", "six", "pytest-xdist", "virtualenv"] 655 | 656 | [[package]] 657 | name = "pytest-sanic" 658 | version = "1.6.2" 659 | description = "a pytest plugin for Sanic" 660 | category = "dev" 661 | optional = false 662 | python-versions = ">=3.6,<4.0" 663 | 664 | [package.dependencies] 665 | aiohttp = ">=3.6.2,<4.0.0" 666 | async_generator = ">=1.10,<2.0" 667 | pytest = ">=5.2" 668 | 669 | [[package]] 670 | name = "python-dateutil" 671 | version = "2.8.1" 672 | description = "Extensions to the standard Python datetime module" 673 | category = "dev" 674 | optional = false 675 | python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7" 676 | 677 | [package.dependencies] 678 | six = ">=1.5" 679 | 680 | [[package]] 681 | name = "python-decouple" 682 | version = "3.3" 683 | description = "Strict separation of settings from code." 684 | category = "main" 685 | optional = false 686 | python-versions = "*" 687 | 688 | [[package]] 689 | name = "python-json-logger" 690 | version = "0.1.11" 691 | description = "A python library adding a json log formatter" 692 | category = "main" 693 | optional = false 694 | python-versions = ">=2.7" 695 | 696 | [[package]] 697 | name = "pyyaml" 698 | version = "5.3.1" 699 | description = "YAML parser and emitter for Python" 700 | category = "dev" 701 | optional = false 702 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" 703 | 704 | [[package]] 705 | name = "regex" 706 | version = "2020.10.28" 707 | description = "Alternative regular expression module, to replace re." 708 | category = "dev" 709 | optional = false 710 | python-versions = "*" 711 | 712 | [[package]] 713 | name = "requests" 714 | version = "2.24.0" 715 | description = "Python HTTP for Humans." 716 | category = "main" 717 | optional = false 718 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" 719 | 720 | [package.dependencies] 721 | certifi = ">=2017.4.17" 722 | chardet = ">=3.0.2,<4" 723 | idna = ">=2.5,<3" 724 | urllib3 = ">=1.21.1,<1.25.0 || >1.25.0,<1.25.1 || >1.25.1,<1.26" 725 | 726 | [package.extras] 727 | security = ["pyOpenSSL (>=0.14)", "cryptography (>=1.3.4)"] 728 | socks = ["PySocks (>=1.5.6,!=1.5.7)", "win-inet-pton"] 729 | 730 | [[package]] 731 | name = "requests-async" 732 | version = "0.5.0" 733 | description = "async-await support for `requests`." 734 | category = "main" 735 | optional = false 736 | python-versions = ">=3.6" 737 | 738 | [package.dependencies] 739 | httpcore = ">=0.3.0,<0.4.0" 740 | requests = ">=2.0.0,<3.0.0" 741 | 742 | [[package]] 743 | name = "rfc3986" 744 | version = "1.4.0" 745 | description = "Validating URI References per RFC 3986" 746 | category = "main" 747 | optional = false 748 | python-versions = "*" 749 | 750 | [package.extras] 751 | idna2008 = ["idna"] 752 | 753 | [[package]] 754 | name = "sanic" 755 | version = "19.9.0" 756 | description = "A web server and web framework that's written to go fast. Build fast. Run fast." 757 | category = "main" 758 | optional = false 759 | python-versions = "*" 760 | 761 | [package.dependencies] 762 | aiofiles = ">=0.3.0" 763 | httptools = ">=0.0.10" 764 | multidict = ">=4.0,<5.0" 765 | requests-async = "0.5.0" 766 | ujson = {version = ">=1.35", markers = "sys_platform != \"win32\" and implementation_name == \"cpython\""} 767 | uvloop = {version = ">=0.5.3", markers = "sys_platform != \"win32\" and implementation_name == \"cpython\""} 768 | websockets = ">=7.0,<9.0" 769 | 770 | [package.extras] 771 | all = ["pytest (==5.2.1)", "multidict (>=4.0,<5.0)", "gunicorn", "pytest-cov", "httpcore (==0.3.0)", "beautifulsoup4", "pytest-sanic", "pytest-sugar", "pytest-benchmark", "aiofiles", "tox", "black", "flake8", "bandit", "towncrier", "sphinx (>=2.1.2)", "sphinx-rtd-theme", "recommonmark (>=0.5.0)", "docutils", "pygments", "uvloop (>=0.5.3)", "ujson (>=1.35)"] 772 | dev = ["pytest (==5.2.1)", "multidict (>=4.0,<5.0)", "gunicorn", "pytest-cov", "httpcore (==0.3.0)", "beautifulsoup4", "pytest-sanic", "pytest-sugar", "pytest-benchmark", "aiofiles", "tox", "black", "flake8", "bandit", "towncrier", "uvloop (>=0.5.3)", "ujson (>=1.35)"] 773 | docs = ["sphinx (>=2.1.2)", "sphinx-rtd-theme", "recommonmark (>=0.5.0)", "docutils", "pygments"] 774 | test = ["pytest (==5.2.1)", "multidict (>=4.0,<5.0)", "gunicorn", "pytest-cov", "httpcore (==0.3.0)", "beautifulsoup4", "pytest-sanic", "pytest-sugar", "pytest-benchmark", "uvloop (>=0.5.3)", "ujson (>=1.35)"] 775 | 776 | [[package]] 777 | name = "sanic-openapi" 778 | version = "0.6.0" 779 | description = "Easily document your Sanic API with a UI." 780 | category = "main" 781 | optional = false 782 | python-versions = "*" 783 | 784 | [package.dependencies] 785 | sanic = ">=18.12.0" 786 | 787 | [package.extras] 788 | dev = ["black (==19.3b0)", "flake8 (==3.7.7)", "isort (==4.3.19)", "coverage (==4.5.3)", "pytest (==4.6.2)", "pytest-cov (==2.7.1)", "pytest-html (==1.20.0)", "pytest-runner (==5.1)", "tox (==3.12.1)", "recommonmark (==0.5.0)", "sphinx (==2.1.2)", "sphinx-rtd-theme-0.4.3"] 789 | doc = ["recommonmark (==0.5.0)", "sphinx (==2.1.2)", "sphinx-rtd-theme-0.4.3"] 790 | test = ["coverage (==4.5.3)", "pytest (==4.6.2)", "pytest-cov (==2.7.1)", "pytest-html (==1.20.0)", "pytest-runner (==5.1)", "tox (==3.12.1)"] 791 | 792 | [[package]] 793 | name = "six" 794 | version = "1.15.0" 795 | description = "Python 2 and 3 compatibility utilities" 796 | category = "dev" 797 | optional = false 798 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" 799 | 800 | [[package]] 801 | name = "smmap" 802 | version = "3.0.4" 803 | description = "A pure Python implementation of a sliding window memory map manager" 804 | category = "dev" 805 | optional = false 806 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" 807 | 808 | [[package]] 809 | name = "stevedore" 810 | version = "3.2.2" 811 | description = "Manage dynamic plugins for Python applications" 812 | category = "dev" 813 | optional = false 814 | python-versions = ">=3.6" 815 | 816 | [package.dependencies] 817 | pbr = ">=2.0.0,<2.1.0 || >2.1.0" 818 | 819 | [[package]] 820 | name = "toml" 821 | version = "0.10.2" 822 | description = "Python Library for Tom's Obvious, Minimal Language" 823 | category = "dev" 824 | optional = false 825 | python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*" 826 | 827 | [[package]] 828 | name = "typed-ast" 829 | version = "1.4.1" 830 | description = "a fork of Python 2 and 3 ast modules with type comment support" 831 | category = "dev" 832 | optional = false 833 | python-versions = "*" 834 | 835 | [[package]] 836 | name = "typing-extensions" 837 | version = "3.7.4.3" 838 | description = "Backported and Experimental Type Hints for Python 3.5+" 839 | category = "dev" 840 | optional = false 841 | python-versions = "*" 842 | 843 | [[package]] 844 | name = "ujson" 845 | version = "4.0.1" 846 | description = "Ultra fast JSON encoder and decoder for Python" 847 | category = "main" 848 | optional = false 849 | python-versions = ">=3.6" 850 | 851 | [[package]] 852 | name = "urllib3" 853 | version = "1.25.11" 854 | description = "HTTP library with thread-safe connection pooling, file post, and more." 855 | category = "main" 856 | optional = false 857 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4" 858 | 859 | [package.extras] 860 | brotli = ["brotlipy (>=0.6.0)"] 861 | secure = ["pyOpenSSL (>=0.14)", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "certifi", "ipaddress"] 862 | socks = ["PySocks (>=1.5.6,!=1.5.7,<2.0)"] 863 | 864 | [[package]] 865 | name = "uvicorn" 866 | version = "0.12.2" 867 | description = "The lightning-fast ASGI server." 868 | category = "main" 869 | optional = false 870 | python-versions = "*" 871 | 872 | [package.dependencies] 873 | click = ">=7.0.0,<8.0.0" 874 | h11 = ">=0.8" 875 | 876 | [package.extras] 877 | standard = ["websockets (>=8.0.0,<9.0.0)", "watchgod (>=0.6,<0.7)", "python-dotenv (>=0.13)", "PyYAML (>=5.1)", "httptools (>=0.1.0,<0.2.0)", "uvloop (>=0.14.0)", "colorama (>=0.4)"] 878 | 879 | [[package]] 880 | name = "uvloop" 881 | version = "0.14.0" 882 | description = "Fast implementation of asyncio event loop on top of libuv" 883 | category = "main" 884 | optional = false 885 | python-versions = "*" 886 | 887 | [[package]] 888 | name = "wcwidth" 889 | version = "0.2.5" 890 | description = "Measures the displayed width of unicode strings in a terminal" 891 | category = "dev" 892 | optional = false 893 | python-versions = "*" 894 | 895 | [[package]] 896 | name = "websockets" 897 | version = "8.1" 898 | description = "An implementation of the WebSocket Protocol (RFC 6455 & 7692)" 899 | category = "main" 900 | optional = false 901 | python-versions = ">=3.6.1" 902 | 903 | [[package]] 904 | name = "wrapt" 905 | version = "1.12.1" 906 | description = "Module for decorators, wrappers and monkey patching." 907 | category = "dev" 908 | optional = false 909 | python-versions = "*" 910 | 911 | [[package]] 912 | name = "yarl" 913 | version = "1.6.2" 914 | description = "Yet another URL library" 915 | category = "dev" 916 | optional = false 917 | python-versions = ">=3.6" 918 | 919 | [package.dependencies] 920 | idna = ">=2.0" 921 | multidict = ">=4.0" 922 | 923 | [metadata] 924 | lock-version = "1.1" 925 | python-versions = "^3.8" 926 | content-hash = "49a3b02ada856c5cb71e4ced59c26b8ca940066751deaf3a6e4c7b69e9b801c6" 927 | 928 | [metadata.files] 929 | aiofiles = [ 930 | {file = "aiofiles-0.6.0-py3-none-any.whl", hash = "sha256:bd3019af67f83b739f8e4053c6c0512a7f545b9a8d91aaeab55e6e0f9d123c27"}, 931 | {file = "aiofiles-0.6.0.tar.gz", hash = "sha256:e0281b157d3d5d59d803e3f4557dcc9a3dff28a4dd4829a9ff478adae50ca092"}, 932 | ] 933 | aiohttp = [ 934 | {file = "aiohttp-3.7.2-cp36-cp36m-macosx_10_14_x86_64.whl", hash = "sha256:0989ff15834a4503056d103077ec3652f9ea5699835e1ceaee46b91cf59830bf"}, 935 | {file = "aiohttp-3.7.2-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:8fbeeb2296bb9fe16071a674eadade7391be785ae0049610e64b60ead6abcdd7"}, 936 | {file = "aiohttp-3.7.2-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:48104c883099c0e614c5c38f98c1d174a2c68f52f58b2a6e5a07b59df78262ab"}, 937 | {file = "aiohttp-3.7.2-cp36-cp36m-manylinux2014_i686.whl", hash = "sha256:c9a415f4f2764ab6c7d63ee6b86f02a46b4df9bc11b0de7ffef206908b7bf0b4"}, 938 | {file = "aiohttp-3.7.2-cp36-cp36m-manylinux2014_ppc64le.whl", hash = "sha256:7e26712871ebaf55497a60f55483dc5e74326d1fb0bfceab86ebaeaa3a266733"}, 939 | {file = "aiohttp-3.7.2-cp36-cp36m-manylinux2014_s390x.whl", hash = "sha256:8319a55de469d5af3517dfe1f6a77f248f6668c5a552396635ef900f058882ef"}, 940 | {file = "aiohttp-3.7.2-cp36-cp36m-manylinux2014_x86_64.whl", hash = "sha256:2aea79734ac5ceeac1ec22b4af4efb4efd6a5ca3d73d77ec74ed782cf318f238"}, 941 | {file = "aiohttp-3.7.2-cp36-cp36m-win_amd64.whl", hash = "sha256:be9fa3fe94fc95e9bf84e84117a577c892906dd3cb0a95a7ae21e12a84777567"}, 942 | {file = "aiohttp-3.7.2-cp37-cp37m-macosx_10_14_x86_64.whl", hash = "sha256:f04dcbf6af1868048a9b4754b1684c669252aa2419aa67266efbcaaead42ced7"}, 943 | {file = "aiohttp-3.7.2-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:2e886611b100c8c93b753b457e645c5e4b8008ec443434d2a480e5a2bb3e6514"}, 944 | {file = "aiohttp-3.7.2-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:cdbb65c361ff790c424365a83a496fc8dd1983689a5fb7c6852a9a3ff1710c61"}, 945 | {file = "aiohttp-3.7.2-cp37-cp37m-manylinux2014_i686.whl", hash = "sha256:8a8addd41320637c1445fea0bae1fd9fe4888acc2cd79217ee33e5d1c83cfe01"}, 946 | {file = "aiohttp-3.7.2-cp37-cp37m-manylinux2014_ppc64le.whl", hash = "sha256:b822bf7b764283b5015e3c49b7bb93f37fc03545f4abe26383771c6b1c813436"}, 947 | {file = "aiohttp-3.7.2-cp37-cp37m-manylinux2014_s390x.whl", hash = "sha256:ad5c3559e3cd64f746df43fa498038c91aa14f5d7615941ea5b106e435f3b892"}, 948 | {file = "aiohttp-3.7.2-cp37-cp37m-manylinux2014_x86_64.whl", hash = "sha256:835bd35e14e4f36414e47c195e6645449a0a1c3fd5eeae4b7f22cb4c5e4f503a"}, 949 | {file = "aiohttp-3.7.2-cp37-cp37m-win_amd64.whl", hash = "sha256:11e087c316e933f1f52f3d4a09ce13f15ad966fc43df47f44ca4e8067b6a2e0d"}, 950 | {file = "aiohttp-3.7.2-cp38-cp38-macosx_10_14_x86_64.whl", hash = "sha256:f8c583c31c6e790dc003d9d574e3ed2c5b337947722965096c4d684e4f183570"}, 951 | {file = "aiohttp-3.7.2-cp38-cp38-manylinux1_i686.whl", hash = "sha256:b84cef790cb93cec82a468b7d2447bf16e3056d2237b652e80f57d653b61da88"}, 952 | {file = "aiohttp-3.7.2-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:4afd8002d9238e5e93acf1a8baa38b3ddf1f7f0ebef174374131ff0c6c2d7973"}, 953 | {file = "aiohttp-3.7.2-cp38-cp38-manylinux2014_i686.whl", hash = "sha256:a1f1cc11c9856bfa7f1ca55002c39070bde2a97ce48ef631468e99e2ac8e3fe6"}, 954 | {file = "aiohttp-3.7.2-cp38-cp38-manylinux2014_ppc64le.whl", hash = "sha256:7f1aeb72f14b9254296cdefa029c00d3c4550a26e1059084f2ee10d22086c2d0"}, 955 | {file = "aiohttp-3.7.2-cp38-cp38-manylinux2014_s390x.whl", hash = "sha256:67f8564c534d75c1d613186939cee45a124d7d37e7aece83b17d18af665b0d7a"}, 956 | {file = "aiohttp-3.7.2-cp38-cp38-manylinux2014_x86_64.whl", hash = "sha256:184ead67248274f0e20b0cd6bb5f25209b2fad56e5373101cc0137c32c825c87"}, 957 | {file = "aiohttp-3.7.2-cp38-cp38-win_amd64.whl", hash = "sha256:6e0d1231a626d07b23f6fe904caa44efb249da4222d8a16ab039fb2348722292"}, 958 | {file = "aiohttp-3.7.2-cp39-cp39-macosx_10_14_x86_64.whl", hash = "sha256:476b1f8216e59a3c2ffb71b8d7e1da60304da19f6000d422bacc371abb0fc43d"}, 959 | {file = "aiohttp-3.7.2-cp39-cp39-manylinux1_i686.whl", hash = "sha256:89c1aa729953b5ac6ca3c82dcbd83e7cdecfa5cf9792c78c154a642e6e29303d"}, 960 | {file = "aiohttp-3.7.2-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:c53f1d2bd48f5f407b534732f5b3c6b800a58e70b53808637848d8a9ee127fe7"}, 961 | {file = "aiohttp-3.7.2-cp39-cp39-manylinux2014_i686.whl", hash = "sha256:06efdb01ab71ec20786b592d510d1d354fbe0b2e4449ee47067b9ca65d45a006"}, 962 | {file = "aiohttp-3.7.2-cp39-cp39-manylinux2014_ppc64le.whl", hash = "sha256:027be45c4b37e21be81d07ae5242361d73eebad1562c033f80032f955f34df82"}, 963 | {file = "aiohttp-3.7.2-cp39-cp39-manylinux2014_s390x.whl", hash = "sha256:1c36b7ef47cfbc150314c2204cd73613d96d6d0982d41c7679b7cdcf43c0e979"}, 964 | {file = "aiohttp-3.7.2-cp39-cp39-manylinux2014_x86_64.whl", hash = "sha256:c588a0f824dc7158be9eec1ff465d1c868ad69a4dc518cd098cc11e4f7da09d9"}, 965 | {file = "aiohttp-3.7.2-cp39-cp39-win_amd64.whl", hash = "sha256:547b196a7177511da4f475fc81d0bb88a51a8d535c7444bbf2338b6dc82cb996"}, 966 | {file = "aiohttp-3.7.2.tar.gz", hash = "sha256:c6da1af59841e6d43255d386a2c4bfb59c0a3b262bdb24325cc969d211be6070"}, 967 | ] 968 | aioredis = [ 969 | {file = "aioredis-1.3.1-py3-none-any.whl", hash = "sha256:b61808d7e97b7cd5a92ed574937a079c9387fdadd22bfbfa7ad2fd319ecc26e3"}, 970 | {file = "aioredis-1.3.1.tar.gz", hash = "sha256:15f8af30b044c771aee6787e5ec24694c048184c7b9e54c3b60c750a4b93273a"}, 971 | ] 972 | appdirs = [ 973 | {file = "appdirs-1.4.4-py2.py3-none-any.whl", hash = "sha256:a841dacd6b99318a741b166adb07e19ee71a274450e68237b4650ca1055ab128"}, 974 | {file = "appdirs-1.4.4.tar.gz", hash = "sha256:7d5d0167b2b1ba821647616af46a749d1c653740dd0d2415100fe26e27afdf41"}, 975 | ] 976 | astroid = [ 977 | {file = "astroid-2.4.2-py3-none-any.whl", hash = "sha256:bc58d83eb610252fd8de6363e39d4f1d0619c894b0ed24603b881c02e64c7386"}, 978 | {file = "astroid-2.4.2.tar.gz", hash = "sha256:2f4078c2a41bf377eea06d71c9d2ba4eb8f6b1af2135bec27bbbb7d8f12bb703"}, 979 | ] 980 | async-generator = [ 981 | {file = "async_generator-1.10-py3-none-any.whl", hash = "sha256:01c7bf666359b4967d2cda0000cc2e4af16a0ae098cbffcb8472fb9e8ad6585b"}, 982 | {file = "async_generator-1.10.tar.gz", hash = "sha256:6ebb3d106c12920aaae42ccb6f787ef5eefdcdd166ea3d628fa8476abe712144"}, 983 | ] 984 | async-timeout = [ 985 | {file = "async-timeout-3.0.1.tar.gz", hash = "sha256:0c3c816a028d47f659d6ff5c745cb2acf1f966da1fe5c19c77a70282b25f4c5f"}, 986 | {file = "async_timeout-3.0.1-py3-none-any.whl", hash = "sha256:4291ca197d287d274d0b6cb5d6f8f8f82d434ed288f962539ff18cc9012f9ea3"}, 987 | ] 988 | atomicwrites = [ 989 | {file = "atomicwrites-1.4.0-py2.py3-none-any.whl", hash = "sha256:6d1784dea7c0c8d4a5172b6c620f40b6e4cbfdf96d783691f2e1302a7b88e197"}, 990 | {file = "atomicwrites-1.4.0.tar.gz", hash = "sha256:ae70396ad1a434f9c7046fd2dd196fc04b12f9e91ffb859164193be8b6168a7a"}, 991 | ] 992 | attrs = [ 993 | {file = "attrs-20.2.0-py2.py3-none-any.whl", hash = "sha256:fce7fc47dfc976152e82d53ff92fa0407700c21acd20886a13777a0d20e655dc"}, 994 | {file = "attrs-20.2.0.tar.gz", hash = "sha256:26b54ddbbb9ee1d34d5d3668dd37d6cf74990ab23c828c2888dccdceee395594"}, 995 | ] 996 | bandit = [ 997 | {file = "bandit-1.6.2-py2.py3-none-any.whl", hash = "sha256:336620e220cf2d3115877685e264477ff9d9abaeb0afe3dc7264f55fa17a3952"}, 998 | {file = "bandit-1.6.2.tar.gz", hash = "sha256:41e75315853507aa145d62a78a2a6c5e3240fe14ee7c601459d0df9418196065"}, 999 | ] 1000 | black = [ 1001 | {file = "black-19.10b0-py36-none-any.whl", hash = "sha256:1b30e59be925fafc1ee4565e5e08abef6b03fe455102883820fe5ee2e4734e0b"}, 1002 | {file = "black-19.10b0.tar.gz", hash = "sha256:c2edb73a08e9e0e6f65a0e6af18b059b8b1cdd5bef997d7a0b181df93dc81539"}, 1003 | ] 1004 | certifi = [ 1005 | {file = "certifi-2020.6.20-py2.py3-none-any.whl", hash = "sha256:8fc0819f1f30ba15bdb34cceffb9ef04d99f420f68eb75d901e9560b8749fc41"}, 1006 | {file = "certifi-2020.6.20.tar.gz", hash = "sha256:5930595817496dd21bb8dc35dad090f1c2cd0adfaf21204bf6732ca5d8ee34d3"}, 1007 | ] 1008 | chardet = [ 1009 | {file = "chardet-3.0.4-py2.py3-none-any.whl", hash = "sha256:fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691"}, 1010 | {file = "chardet-3.0.4.tar.gz", hash = "sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae"}, 1011 | ] 1012 | click = [ 1013 | {file = "click-7.1.2-py2.py3-none-any.whl", hash = "sha256:dacca89f4bfadd5de3d7489b7c8a566eee0d3676333fbb50030263894c38c0dc"}, 1014 | {file = "click-7.1.2.tar.gz", hash = "sha256:d2b5255c7c6349bc1bd1e59e08cd12acbbd63ce649f2588755783aa94dfb6b1a"}, 1015 | ] 1016 | colorama = [ 1017 | {file = "colorama-0.4.4-py2.py3-none-any.whl", hash = "sha256:9f47eda37229f68eee03b24b9748937c7dc3868f906e8ba69fbcbdd3bc5dc3e2"}, 1018 | {file = "colorama-0.4.4.tar.gz", hash = "sha256:5941b2b48a20143d2267e95b1c2a7603ce057ee39fd88e7329b0c292aa16869b"}, 1019 | ] 1020 | coverage = [ 1021 | {file = "coverage-5.3-cp27-cp27m-macosx_10_13_intel.whl", hash = "sha256:bd3166bb3b111e76a4f8e2980fa1addf2920a4ca9b2b8ca36a3bc3dedc618270"}, 1022 | {file = "coverage-5.3-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:9342dd70a1e151684727c9c91ea003b2fb33523bf19385d4554f7897ca0141d4"}, 1023 | {file = "coverage-5.3-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:63808c30b41f3bbf65e29f7280bf793c79f54fb807057de7e5238ffc7cc4d7b9"}, 1024 | {file = "coverage-5.3-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:4d6a42744139a7fa5b46a264874a781e8694bb32f1d76d8137b68138686f1729"}, 1025 | {file = "coverage-5.3-cp27-cp27m-win32.whl", hash = "sha256:86e9f8cd4b0cdd57b4ae71a9c186717daa4c5a99f3238a8723f416256e0b064d"}, 1026 | {file = "coverage-5.3-cp27-cp27m-win_amd64.whl", hash = "sha256:7858847f2d84bf6e64c7f66498e851c54de8ea06a6f96a32a1d192d846734418"}, 1027 | {file = "coverage-5.3-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:530cc8aaf11cc2ac7430f3614b04645662ef20c348dce4167c22d99bec3480e9"}, 1028 | {file = "coverage-5.3-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:381ead10b9b9af5f64646cd27107fb27b614ee7040bb1226f9c07ba96625cbb5"}, 1029 | {file = "coverage-5.3-cp35-cp35m-macosx_10_13_x86_64.whl", hash = "sha256:71b69bd716698fa62cd97137d6f2fdf49f534decb23a2c6fc80813e8b7be6822"}, 1030 | {file = "coverage-5.3-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:1d44bb3a652fed01f1f2c10d5477956116e9b391320c94d36c6bf13b088a1097"}, 1031 | {file = "coverage-5.3-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:1c6703094c81fa55b816f5ae542c6ffc625fec769f22b053adb42ad712d086c9"}, 1032 | {file = "coverage-5.3-cp35-cp35m-win32.whl", hash = "sha256:cedb2f9e1f990918ea061f28a0f0077a07702e3819602d3507e2ff98c8d20636"}, 1033 | {file = "coverage-5.3-cp35-cp35m-win_amd64.whl", hash = "sha256:7f43286f13d91a34fadf61ae252a51a130223c52bfefb50310d5b2deb062cf0f"}, 1034 | {file = "coverage-5.3-cp36-cp36m-macosx_10_13_x86_64.whl", hash = "sha256:c851b35fc078389bc16b915a0a7c1d5923e12e2c5aeec58c52f4aa8085ac8237"}, 1035 | {file = "coverage-5.3-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:aac1ba0a253e17889550ddb1b60a2063f7474155465577caa2a3b131224cfd54"}, 1036 | {file = "coverage-5.3-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:2b31f46bf7b31e6aa690d4c7a3d51bb262438c6dcb0d528adde446531d0d3bb7"}, 1037 | {file = "coverage-5.3-cp36-cp36m-win32.whl", hash = "sha256:c5f17ad25d2c1286436761b462e22b5020d83316f8e8fcb5deb2b3151f8f1d3a"}, 1038 | {file = "coverage-5.3-cp36-cp36m-win_amd64.whl", hash = "sha256:aef72eae10b5e3116bac6957de1df4d75909fc76d1499a53fb6387434b6bcd8d"}, 1039 | {file = "coverage-5.3-cp37-cp37m-macosx_10_13_x86_64.whl", hash = "sha256:e8caf961e1b1a945db76f1b5fa9c91498d15f545ac0ababbe575cfab185d3bd8"}, 1040 | {file = "coverage-5.3-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:29a6272fec10623fcbe158fdf9abc7a5fa032048ac1d8631f14b50fbfc10d17f"}, 1041 | {file = "coverage-5.3-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:2d43af2be93ffbad25dd959899b5b809618a496926146ce98ee0b23683f8c51c"}, 1042 | {file = "coverage-5.3-cp37-cp37m-win32.whl", hash = "sha256:c3888a051226e676e383de03bf49eb633cd39fc829516e5334e69b8d81aae751"}, 1043 | {file = "coverage-5.3-cp37-cp37m-win_amd64.whl", hash = "sha256:9669179786254a2e7e57f0ecf224e978471491d660aaca833f845b72a2df3709"}, 1044 | {file = "coverage-5.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:0203acd33d2298e19b57451ebb0bed0ab0c602e5cf5a818591b4918b1f97d516"}, 1045 | {file = "coverage-5.3-cp38-cp38-manylinux1_i686.whl", hash = "sha256:582ddfbe712025448206a5bc45855d16c2e491c2dd102ee9a2841418ac1c629f"}, 1046 | {file = "coverage-5.3-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:0f313707cdecd5cd3e217fc68c78a960b616604b559e9ea60cc16795c4304259"}, 1047 | {file = "coverage-5.3-cp38-cp38-win32.whl", hash = "sha256:78e93cc3571fd928a39c0b26767c986188a4118edc67bc0695bc7a284da22e82"}, 1048 | {file = "coverage-5.3-cp38-cp38-win_amd64.whl", hash = "sha256:8f264ba2701b8c9f815b272ad568d555ef98dfe1576802ab3149c3629a9f2221"}, 1049 | {file = "coverage-5.3-cp39-cp39-macosx_10_13_x86_64.whl", hash = "sha256:50691e744714856f03a86df3e2bff847c2acede4c191f9a1da38f088df342978"}, 1050 | {file = "coverage-5.3-cp39-cp39-manylinux1_i686.whl", hash = "sha256:9361de40701666b034c59ad9e317bae95c973b9ff92513dd0eced11c6adf2e21"}, 1051 | {file = "coverage-5.3-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:c1b78fb9700fc961f53386ad2fd86d87091e06ede5d118b8a50dea285a071c24"}, 1052 | {file = "coverage-5.3-cp39-cp39-win32.whl", hash = "sha256:cb7df71de0af56000115eafd000b867d1261f786b5eebd88a0ca6360cccfaca7"}, 1053 | {file = "coverage-5.3-cp39-cp39-win_amd64.whl", hash = "sha256:47a11bdbd8ada9b7ee628596f9d97fbd3851bd9999d398e9436bd67376dbece7"}, 1054 | {file = "coverage-5.3.tar.gz", hash = "sha256:280baa8ec489c4f542f8940f9c4c2181f0306a8ee1a54eceba071a449fb870a0"}, 1055 | ] 1056 | dnspython = [ 1057 | {file = "dnspython-1.16.0-py2.py3-none-any.whl", hash = "sha256:f69c21288a962f4da86e56c4905b49d11aba7938d3d740e80d9e366ee4f1632d"}, 1058 | {file = "dnspython-1.16.0.zip", hash = "sha256:36c5e8e38d4369a08b6780b7f27d790a292b2b08eea01607865bf0936c558e01"}, 1059 | ] 1060 | flake8 = [ 1061 | {file = "flake8-3.8.1-py2.py3-none-any.whl", hash = "sha256:6c1193b0c3f853ef763969238f6c81e9e63ace9d024518edc020d5f1d6d93195"}, 1062 | {file = "flake8-3.8.1.tar.gz", hash = "sha256:ea6623797bf9a52f4c9577d780da0bb17d65f870213f7b5bcc9fca82540c31d5"}, 1063 | ] 1064 | freezegun = [ 1065 | {file = "freezegun-0.3.15-py2.py3-none-any.whl", hash = "sha256:82c757a05b7c7ca3e176bfebd7d6779fd9139c7cb4ef969c38a28d74deef89b2"}, 1066 | {file = "freezegun-0.3.15.tar.gz", hash = "sha256:e2062f2c7f95cc276a834c22f1a17179467176b624cc6f936e8bc3be5535ad1b"}, 1067 | ] 1068 | gitdb = [ 1069 | {file = "gitdb-4.0.5-py3-none-any.whl", hash = "sha256:91f36bfb1ab7949b3b40e23736db18231bf7593edada2ba5c3a174a7b23657ac"}, 1070 | {file = "gitdb-4.0.5.tar.gz", hash = "sha256:c9e1f2d0db7ddb9a704c2a0217be31214e91a4fe1dea1efad19ae42ba0c285c9"}, 1071 | ] 1072 | gitpython = [ 1073 | {file = "GitPython-3.1.11-py3-none-any.whl", hash = "sha256:6eea89b655917b500437e9668e4a12eabdcf00229a0df1762aabd692ef9b746b"}, 1074 | {file = "GitPython-3.1.11.tar.gz", hash = "sha256:befa4d101f91bad1b632df4308ec64555db684c360bd7d2130b4807d49ce86b8"}, 1075 | ] 1076 | gunicorn = [ 1077 | {file = "gunicorn-20.0.4-py2.py3-none-any.whl", hash = "sha256:cd4a810dd51bf497552cf3f863b575dabd73d6ad6a91075b65936b151cbf4f9c"}, 1078 | {file = "gunicorn-20.0.4.tar.gz", hash = "sha256:1904bb2b8a43658807108d59c3f3d56c2b6121a701161de0ddf9ad140073c626"}, 1079 | ] 1080 | h11 = [ 1081 | {file = "h11-0.8.1-py2.py3-none-any.whl", hash = "sha256:f2b1ca39bfed357d1f19ac732913d5f9faa54a5062eca7d2ec3a916cfb7ae4c7"}, 1082 | {file = "h11-0.8.1.tar.gz", hash = "sha256:acca6a44cb52a32ab442b1779adf0875c443c689e9e028f8d831a3769f9c5208"}, 1083 | ] 1084 | h2 = [ 1085 | {file = "h2-3.2.0-py2.py3-none-any.whl", hash = "sha256:61e0f6601fa709f35cdb730863b4e5ec7ad449792add80d1410d4174ed139af5"}, 1086 | {file = "h2-3.2.0.tar.gz", hash = "sha256:875f41ebd6f2c44781259005b157faed1a5031df3ae5aa7bcb4628a6c0782f14"}, 1087 | ] 1088 | hiredis = [ 1089 | {file = "hiredis-1.1.0-cp27-cp27m-macosx_10_6_intel.whl", hash = "sha256:289b31885b4996ce04cadfd5fc03d034dce8e2a8234479f7c9e23b9e245db06b"}, 1090 | {file = "hiredis-1.1.0-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:7b0f63f10a166583ab744a58baad04e0f52cfea1ac27bfa1b0c21a48d1003c23"}, 1091 | {file = "hiredis-1.1.0-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:6996883a8a6ff9117cbb3d6f5b0dcbbae6fb9e31e1a3e4e2f95e0214d9a1c655"}, 1092 | {file = "hiredis-1.1.0-cp27-cp27m-manylinux2010_i686.whl", hash = "sha256:b33aea449e7f46738811fbc6f0b3177c6777a572207412bbbf6f525ffed001ae"}, 1093 | {file = "hiredis-1.1.0-cp27-cp27m-manylinux2010_x86_64.whl", hash = "sha256:8daecd778c1da45b8bd54fd41ffcd471a86beed3d8e57a43acf7a8d63bba4058"}, 1094 | {file = "hiredis-1.1.0-cp27-cp27m-win32.whl", hash = "sha256:e82d6b930e02e80e5109b678c663a9ed210680ded81c1abaf54635d88d1da298"}, 1095 | {file = "hiredis-1.1.0-cp27-cp27m-win_amd64.whl", hash = "sha256:d2c0caffa47606d6d7c8af94ba42547bd2a441f06c74fd90a1ffe328524a6c64"}, 1096 | {file = "hiredis-1.1.0-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:47bcf3c5e6c1e87ceb86cdda2ee983fa0fe56a999e6185099b3c93a223f2fa9b"}, 1097 | {file = "hiredis-1.1.0-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:dcb2db95e629962db5a355047fb8aefb012df6c8ae608930d391619dbd96fd86"}, 1098 | {file = "hiredis-1.1.0-cp27-cp27mu-manylinux2010_i686.whl", hash = "sha256:7332d5c3e35154cd234fd79573736ddcf7a0ade7a986db35b6196b9171493e75"}, 1099 | {file = "hiredis-1.1.0-cp27-cp27mu-manylinux2010_x86_64.whl", hash = "sha256:6c96f64a54f030366657a54bb90b3093afc9c16c8e0dfa29fc0d6dbe169103a5"}, 1100 | {file = "hiredis-1.1.0-cp35-cp35m-macosx_10_6_intel.whl", hash = "sha256:b44f9421c4505c548435244d74037618f452844c5d3c67719d8a55e2613549da"}, 1101 | {file = "hiredis-1.1.0-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:abfb15a6a7822f0fae681785cb38860e7a2cb1616a708d53df557b3d76c5bfd4"}, 1102 | {file = "hiredis-1.1.0-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:89ebf69cb19a33d625db72d2ac589d26e936b8f7628531269accf4a3196e7872"}, 1103 | {file = "hiredis-1.1.0-cp35-cp35m-manylinux2010_i686.whl", hash = "sha256:5b1451727f02e7acbdf6aae4e06d75f66ee82966ff9114550381c3271a90f56c"}, 1104 | {file = "hiredis-1.1.0-cp35-cp35m-manylinux2010_x86_64.whl", hash = "sha256:7885b6f32c4a898e825bb7f56f36a02781ac4a951c63e4169f0afcf9c8c30dfb"}, 1105 | {file = "hiredis-1.1.0-cp35-cp35m-win32.whl", hash = "sha256:a04901757cb0fb0f5602ac11dda48f5510f94372144d06c2563ba56c480b467c"}, 1106 | {file = "hiredis-1.1.0-cp35-cp35m-win_amd64.whl", hash = "sha256:3bb9b63d319402cead8bbd9dd55dca3b667d2997e9a0d8a1f9b6cc274db4baee"}, 1107 | {file = "hiredis-1.1.0-cp36-cp36m-macosx_10_6_intel.whl", hash = "sha256:e0eeb9c112fec2031927a1745788a181d0eecbacbed941fc5c4f7bc3f7b273bf"}, 1108 | {file = "hiredis-1.1.0-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:18402d9e54fb278cb9a8c638df6f1550aca36a009d47ecf5aa263a38600f35b0"}, 1109 | {file = "hiredis-1.1.0-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:cdfd501c7ac5b198c15df800a3a34c38345f5182e5f80770caf362bccca65628"}, 1110 | {file = "hiredis-1.1.0-cp36-cp36m-manylinux2010_i686.whl", hash = "sha256:43b8ed3dbfd9171e44c554cb4acf4ee4505caa84c5e341858b50ea27dd2b6e12"}, 1111 | {file = "hiredis-1.1.0-cp36-cp36m-manylinux2010_x86_64.whl", hash = "sha256:c2851deeabd96d3f6283e9c6b26e0bfed4de2dc6fb15edf913e78b79fc5909ed"}, 1112 | {file = "hiredis-1.1.0-cp36-cp36m-win32.whl", hash = "sha256:955ba8ea73cf3ed8bd2f963b4cb9f8f0dcb27becd2f4b3dd536fd24c45533454"}, 1113 | {file = "hiredis-1.1.0-cp36-cp36m-win_amd64.whl", hash = "sha256:5263db1e2e1e8ae30500cdd75a979ff99dcc184201e6b4b820d0de74834d2323"}, 1114 | {file = "hiredis-1.1.0-cp37-cp37m-macosx_10_6_intel.whl", hash = "sha256:e154891263306200260d7f3051982774d7b9ef35af3509d5adbbe539afd2610c"}, 1115 | {file = "hiredis-1.1.0-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:964f18a59f5a64c0170f684c417f4fe3e695a536612e13074c4dd5d1c6d7c882"}, 1116 | {file = "hiredis-1.1.0-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:23344e3c2177baf6975fbfa361ed92eb7d36d08f454636e5054b3faa7c2aff8a"}, 1117 | {file = "hiredis-1.1.0-cp37-cp37m-manylinux2010_i686.whl", hash = "sha256:b27f082f47d23cffc4cf1388b84fdc45c4ef6015f906cd7e0d988d9e35d36349"}, 1118 | {file = "hiredis-1.1.0-cp37-cp37m-manylinux2010_x86_64.whl", hash = "sha256:aa0af2deb166a5e26e0d554b824605e660039b161e37ed4f01b8d04beec184f3"}, 1119 | {file = "hiredis-1.1.0-cp37-cp37m-win32.whl", hash = "sha256:819f95d4eba3f9e484dd115ab7ab72845cf766b84286a00d4ecf76d33f1edca1"}, 1120 | {file = "hiredis-1.1.0-cp37-cp37m-win_amd64.whl", hash = "sha256:2c1c570ae7bf1bab304f29427e2475fe1856814312c4a1cf1cd0ee133f07a3c6"}, 1121 | {file = "hiredis-1.1.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:9e9c9078a7ce07e6fce366bd818be89365a35d2e4b163268f0ca9ba7e13bb2f6"}, 1122 | {file = "hiredis-1.1.0-cp38-cp38-manylinux1_i686.whl", hash = "sha256:2c227c0ed371771ffda256034427320870e8ea2e4fd0c0a618c766e7c49aad73"}, 1123 | {file = "hiredis-1.1.0-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:0a909bf501459062aa1552be1461456518f367379fdc9fdb1f2ca5e4a1fdd7c0"}, 1124 | {file = "hiredis-1.1.0-cp38-cp38-manylinux2010_i686.whl", hash = "sha256:1e4cbbc3858ec7e680006e5ca590d89a5e083235988f26a004acf7244389ac01"}, 1125 | {file = "hiredis-1.1.0-cp38-cp38-manylinux2010_x86_64.whl", hash = "sha256:a7bf1492429f18d205f3a818da3ff1f242f60aa59006e53dee00b4ef592a3363"}, 1126 | {file = "hiredis-1.1.0-cp38-cp38-win32.whl", hash = "sha256:bcc371151d1512201d0214c36c0c150b1dc64f19c2b1a8c9cb1d7c7c15ebd93f"}, 1127 | {file = "hiredis-1.1.0-cp38-cp38-win_amd64.whl", hash = "sha256:e64be68255234bb489a574c4f2f8df7029c98c81ec4d160d6cd836e7f0679390"}, 1128 | {file = "hiredis-1.1.0-pp27-pypy_73-manylinux1_x86_64.whl", hash = "sha256:8968eeaa4d37a38f8ca1f9dbe53526b69628edc9c42229a5b2f56d98bb828c1f"}, 1129 | {file = "hiredis-1.1.0-pp27-pypy_73-manylinux2010_x86_64.whl", hash = "sha256:b253fe4df2afea4dfa6b1fa8c5fef212aff8bcaaeb4207e81eed05cb5e4a7919"}, 1130 | {file = "hiredis-1.1.0-pp27-pypy_73-win32.whl", hash = "sha256:969843fbdfbf56cdb71da6f0bdf50f9985b8b8aeb630102945306cf10a9c6af2"}, 1131 | {file = "hiredis-1.1.0-pp36-pypy36_pp73-manylinux1_x86_64.whl", hash = "sha256:e2e023a42dcbab8ed31f97c2bcdb980b7fbe0ada34037d87ba9d799664b58ded"}, 1132 | {file = "hiredis-1.1.0-pp36-pypy36_pp73-manylinux2010_x86_64.whl", hash = "sha256:06a039208f83744a702279b894c8cf24c14fd63c59cd917dcde168b79eef0680"}, 1133 | {file = "hiredis-1.1.0-pp36-pypy36_pp73-win32.whl", hash = "sha256:3ef2183de67b59930d2db8b8e8d4d58e00a50fcc5e92f4f678f6eed7a1c72d55"}, 1134 | {file = "hiredis-1.1.0.tar.gz", hash = "sha256:996021ef33e0f50b97ff2d6b5f422a0fe5577de21a8873b58a779a5ddd1c3132"}, 1135 | ] 1136 | hpack = [ 1137 | {file = "hpack-3.0.0-py2.py3-none-any.whl", hash = "sha256:0edd79eda27a53ba5be2dfabf3b15780928a0dff6eb0c60a3d6767720e970c89"}, 1138 | {file = "hpack-3.0.0.tar.gz", hash = "sha256:8eec9c1f4bfae3408a3f30500261f7e6a65912dc138526ea054f9ad98892e9d2"}, 1139 | ] 1140 | httpcore = [ 1141 | {file = "httpcore-0.3.0.tar.gz", hash = "sha256:96f910b528d47b683242ec207050c7bbaa99cd1b9a07f78ea80cf61e55556b58"}, 1142 | ] 1143 | httptools = [ 1144 | {file = "httptools-0.1.1-cp35-cp35m-macosx_10_13_x86_64.whl", hash = "sha256:a2719e1d7a84bb131c4f1e0cb79705034b48de6ae486eb5297a139d6a3296dce"}, 1145 | {file = "httptools-0.1.1-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:fa3cd71e31436911a44620473e873a256851e1f53dee56669dae403ba41756a4"}, 1146 | {file = "httptools-0.1.1-cp36-cp36m-macosx_10_13_x86_64.whl", hash = "sha256:86c6acd66765a934e8730bf0e9dfaac6fdcf2a4334212bd4a0a1c78f16475ca6"}, 1147 | {file = "httptools-0.1.1-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:bc3114b9edbca5a1eb7ae7db698c669eb53eb8afbbebdde116c174925260849c"}, 1148 | {file = "httptools-0.1.1-cp36-cp36m-win_amd64.whl", hash = "sha256:ac0aa11e99454b6a66989aa2d44bca41d4e0f968e395a0a8f164b401fefe359a"}, 1149 | {file = "httptools-0.1.1-cp37-cp37m-macosx_10_13_x86_64.whl", hash = "sha256:96da81e1992be8ac2fd5597bf0283d832287e20cb3cfde8996d2b00356d4e17f"}, 1150 | {file = "httptools-0.1.1-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:56b6393c6ac7abe632f2294da53f30d279130a92e8ae39d8d14ee2e1b05ad1f2"}, 1151 | {file = "httptools-0.1.1-cp37-cp37m-win_amd64.whl", hash = "sha256:96eb359252aeed57ea5c7b3d79839aaa0382c9d3149f7d24dd7172b1bcecb009"}, 1152 | {file = "httptools-0.1.1-cp38-cp38-macosx_10_13_x86_64.whl", hash = "sha256:fea04e126014169384dee76a153d4573d90d0cbd1d12185da089f73c78390437"}, 1153 | {file = "httptools-0.1.1-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:3592e854424ec94bd17dc3e0c96a64e459ec4147e6d53c0a42d0ebcef9cb9c5d"}, 1154 | {file = "httptools-0.1.1-cp38-cp38-win_amd64.whl", hash = "sha256:0a4b1b2012b28e68306575ad14ad5e9120b34fccd02a81eb08838d7e3bbb48be"}, 1155 | {file = "httptools-0.1.1.tar.gz", hash = "sha256:41b573cf33f64a8f8f3400d0a7faf48e1888582b6f6e02b82b9bd4f0bf7497ce"}, 1156 | ] 1157 | hyperframe = [ 1158 | {file = "hyperframe-5.2.0-py2.py3-none-any.whl", hash = "sha256:5187962cb16dcc078f23cb5a4b110098d546c3f41ff2d4038a9896893bbd0b40"}, 1159 | {file = "hyperframe-5.2.0.tar.gz", hash = "sha256:a9f5c17f2cc3c719b917c4f33ed1c61bd1f8dfac4b1bd23b7c80b3400971b41f"}, 1160 | ] 1161 | idna = [ 1162 | {file = "idna-2.10-py2.py3-none-any.whl", hash = "sha256:b97d804b1e9b523befed77c48dacec60e6dcb0b5391d57af6a65a312a90648c0"}, 1163 | {file = "idna-2.10.tar.gz", hash = "sha256:b307872f855b18632ce0c21c5e45be78c0ea7ae4c15c828c20788b26921eb3f6"}, 1164 | ] 1165 | immuni-common = [] 1166 | immuni-common-dev = [] 1167 | isort = [ 1168 | {file = "isort-4.3.21-py2.py3-none-any.whl", hash = "sha256:6e811fcb295968434526407adb8796944f1988c5b65e8139058f2014cbe100fd"}, 1169 | {file = "isort-4.3.21.tar.gz", hash = "sha256:54da7e92468955c4fceacd0c86bd0ec997b0e1ee80d97f67c35a78b719dccab1"}, 1170 | ] 1171 | lazy-object-proxy = [ 1172 | {file = "lazy-object-proxy-1.4.3.tar.gz", hash = "sha256:f3900e8a5de27447acbf900b4750b0ddfd7ec1ea7fbaf11dfa911141bc522af0"}, 1173 | {file = "lazy_object_proxy-1.4.3-cp27-cp27m-macosx_10_13_x86_64.whl", hash = "sha256:a2238e9d1bb71a56cd710611a1614d1194dc10a175c1e08d75e1a7bcc250d442"}, 1174 | {file = "lazy_object_proxy-1.4.3-cp27-cp27m-win32.whl", hash = "sha256:efa1909120ce98bbb3777e8b6f92237f5d5c8ea6758efea36a473e1d38f7d3e4"}, 1175 | {file = "lazy_object_proxy-1.4.3-cp27-cp27m-win_amd64.whl", hash = "sha256:4677f594e474c91da97f489fea5b7daa17b5517190899cf213697e48d3902f5a"}, 1176 | {file = "lazy_object_proxy-1.4.3-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:0c4b206227a8097f05c4dbdd323c50edf81f15db3b8dc064d08c62d37e1a504d"}, 1177 | {file = "lazy_object_proxy-1.4.3-cp34-cp34m-manylinux1_x86_64.whl", hash = "sha256:d945239a5639b3ff35b70a88c5f2f491913eb94871780ebfabb2568bd58afc5a"}, 1178 | {file = "lazy_object_proxy-1.4.3-cp34-cp34m-win32.whl", hash = "sha256:9651375199045a358eb6741df3e02a651e0330be090b3bc79f6d0de31a80ec3e"}, 1179 | {file = "lazy_object_proxy-1.4.3-cp34-cp34m-win_amd64.whl", hash = "sha256:eba7011090323c1dadf18b3b689845fd96a61ba0a1dfbd7f24b921398affc357"}, 1180 | {file = "lazy_object_proxy-1.4.3-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:48dab84ebd4831077b150572aec802f303117c8cc5c871e182447281ebf3ac50"}, 1181 | {file = "lazy_object_proxy-1.4.3-cp35-cp35m-win32.whl", hash = "sha256:ca0a928a3ddbc5725be2dd1cf895ec0a254798915fb3a36af0964a0a4149e3db"}, 1182 | {file = "lazy_object_proxy-1.4.3-cp35-cp35m-win_amd64.whl", hash = "sha256:194d092e6f246b906e8f70884e620e459fc54db3259e60cf69a4d66c3fda3449"}, 1183 | {file = "lazy_object_proxy-1.4.3-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:97bb5884f6f1cdce0099f86b907aa41c970c3c672ac8b9c8352789e103cf3156"}, 1184 | {file = "lazy_object_proxy-1.4.3-cp36-cp36m-win32.whl", hash = "sha256:cb2c7c57005a6804ab66f106ceb8482da55f5314b7fcb06551db1edae4ad1531"}, 1185 | {file = "lazy_object_proxy-1.4.3-cp36-cp36m-win_amd64.whl", hash = "sha256:8d859b89baf8ef7f8bc6b00aa20316483d67f0b1cbf422f5b4dc56701c8f2ffb"}, 1186 | {file = "lazy_object_proxy-1.4.3-cp37-cp37m-macosx_10_13_x86_64.whl", hash = "sha256:1be7e4c9f96948003609aa6c974ae59830a6baecc5376c25c92d7d697e684c08"}, 1187 | {file = "lazy_object_proxy-1.4.3-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:d74bb8693bf9cf75ac3b47a54d716bbb1a92648d5f781fc799347cfc95952383"}, 1188 | {file = "lazy_object_proxy-1.4.3-cp37-cp37m-win32.whl", hash = "sha256:9b15f3f4c0f35727d3a0fba4b770b3c4ebbb1fa907dbcc046a1d2799f3edd142"}, 1189 | {file = "lazy_object_proxy-1.4.3-cp37-cp37m-win_amd64.whl", hash = "sha256:9254f4358b9b541e3441b007a0ea0764b9d056afdeafc1a5569eee1cc6c1b9ea"}, 1190 | {file = "lazy_object_proxy-1.4.3-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:a6ae12d08c0bf9909ce12385803a543bfe99b95fe01e752536a60af2b7797c62"}, 1191 | {file = "lazy_object_proxy-1.4.3-cp38-cp38-win32.whl", hash = "sha256:5541cada25cd173702dbd99f8e22434105456314462326f06dba3e180f203dfd"}, 1192 | {file = "lazy_object_proxy-1.4.3-cp38-cp38-win_amd64.whl", hash = "sha256:59f79fef100b09564bc2df42ea2d8d21a64fdcda64979c0fa3db7bdaabaf6239"}, 1193 | ] 1194 | marshmallow = [ 1195 | {file = "marshmallow-3.5.2-py2.py3-none-any.whl", hash = "sha256:f12203bf8d94c410ab4b8d66edfde4f8a364892bde1f6747179765559f93d62a"}, 1196 | {file = "marshmallow-3.5.2.tar.gz", hash = "sha256:56663fa1d5385c14c6a1236badd166d6dee987a5f64d2b6cc099dadf96eb4f09"}, 1197 | ] 1198 | mccabe = [ 1199 | {file = "mccabe-0.6.1-py2.py3-none-any.whl", hash = "sha256:ab8a6258860da4b6677da4bd2fe5dc2c659cff31b3ee4f7f5d64e79735b80d42"}, 1200 | {file = "mccabe-0.6.1.tar.gz", hash = "sha256:dd8d182285a0fe56bace7f45b5e7d1a6ebcbf524e8f3bd87eb0f125271b8831f"}, 1201 | ] 1202 | mongoengine = [ 1203 | {file = "mongoengine-0.20.0-py3-none-any.whl", hash = "sha256:6e127f45f71c2bc5e72461ec297a0c20f04c3ee0bf6dd869e336226e325db6ef"}, 1204 | {file = "mongoengine-0.20.0.tar.gz", hash = "sha256:db9e5d587e5d74e52851e0e4a53fd744725bfa9918ae6070139f5ba9c62c6edf"}, 1205 | ] 1206 | more-itertools = [ 1207 | {file = "more-itertools-8.6.0.tar.gz", hash = "sha256:b3a9005928e5bed54076e6e549c792b306fddfe72b2d1d22dd63d42d5d3899cf"}, 1208 | {file = "more_itertools-8.6.0-py3-none-any.whl", hash = "sha256:8e1a2a43b2f2727425f2b5839587ae37093f19153dc26c0927d1048ff6557330"}, 1209 | ] 1210 | multidict = [ 1211 | {file = "multidict-4.7.6-cp35-cp35m-macosx_10_14_x86_64.whl", hash = "sha256:275ca32383bc5d1894b6975bb4ca6a7ff16ab76fa622967625baeebcf8079000"}, 1212 | {file = "multidict-4.7.6-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:1ece5a3369835c20ed57adadc663400b5525904e53bae59ec854a5d36b39b21a"}, 1213 | {file = "multidict-4.7.6-cp35-cp35m-win32.whl", hash = "sha256:5141c13374e6b25fe6bf092052ab55c0c03d21bd66c94a0e3ae371d3e4d865a5"}, 1214 | {file = "multidict-4.7.6-cp35-cp35m-win_amd64.whl", hash = "sha256:9456e90649005ad40558f4cf51dbb842e32807df75146c6d940b6f5abb4a78f3"}, 1215 | {file = "multidict-4.7.6-cp36-cp36m-macosx_10_14_x86_64.whl", hash = "sha256:e0d072ae0f2a179c375f67e3da300b47e1a83293c554450b29c900e50afaae87"}, 1216 | {file = "multidict-4.7.6-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:3750f2205b800aac4bb03b5ae48025a64e474d2c6cc79547988ba1d4122a09e2"}, 1217 | {file = "multidict-4.7.6-cp36-cp36m-win32.whl", hash = "sha256:f07acae137b71af3bb548bd8da720956a3bc9f9a0b87733e0899226a2317aeb7"}, 1218 | {file = "multidict-4.7.6-cp36-cp36m-win_amd64.whl", hash = "sha256:6513728873f4326999429a8b00fc7ceddb2509b01d5fd3f3be7881a257b8d463"}, 1219 | {file = "multidict-4.7.6-cp37-cp37m-macosx_10_14_x86_64.whl", hash = "sha256:feed85993dbdb1dbc29102f50bca65bdc68f2c0c8d352468c25b54874f23c39d"}, 1220 | {file = "multidict-4.7.6-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:fcfbb44c59af3f8ea984de67ec7c306f618a3ec771c2843804069917a8f2e255"}, 1221 | {file = "multidict-4.7.6-cp37-cp37m-win32.whl", hash = "sha256:4538273208e7294b2659b1602490f4ed3ab1c8cf9dbdd817e0e9db8e64be2507"}, 1222 | {file = "multidict-4.7.6-cp37-cp37m-win_amd64.whl", hash = "sha256:d14842362ed4cf63751648e7672f7174c9818459d169231d03c56e84daf90b7c"}, 1223 | {file = "multidict-4.7.6-cp38-cp38-macosx_10_14_x86_64.whl", hash = "sha256:c026fe9a05130e44157b98fea3ab12969e5b60691a276150db9eda71710cd10b"}, 1224 | {file = "multidict-4.7.6-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:51a4d210404ac61d32dada00a50ea7ba412e6ea945bbe992e4d7a595276d2ec7"}, 1225 | {file = "multidict-4.7.6-cp38-cp38-win32.whl", hash = "sha256:5cf311a0f5ef80fe73e4f4c0f0998ec08f954a6ec72b746f3c179e37de1d210d"}, 1226 | {file = "multidict-4.7.6-cp38-cp38-win_amd64.whl", hash = "sha256:7388d2ef3c55a8ba80da62ecfafa06a1c097c18032a501ffd4cabbc52d7f2b19"}, 1227 | {file = "multidict-4.7.6.tar.gz", hash = "sha256:fbb77a75e529021e7c4a8d4e823d88ef4d23674a202be4f5addffc72cbb91430"}, 1228 | ] 1229 | mypy = [ 1230 | {file = "mypy-0.770-cp35-cp35m-macosx_10_6_x86_64.whl", hash = "sha256:a34b577cdf6313bf24755f7a0e3f3c326d5c1f4fe7422d1d06498eb25ad0c600"}, 1231 | {file = "mypy-0.770-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:86c857510a9b7c3104cf4cde1568f4921762c8f9842e987bc03ed4f160925754"}, 1232 | {file = "mypy-0.770-cp35-cp35m-win_amd64.whl", hash = "sha256:a8ffcd53cb5dfc131850851cc09f1c44689c2812d0beb954d8138d4f5fc17f65"}, 1233 | {file = "mypy-0.770-cp36-cp36m-macosx_10_6_x86_64.whl", hash = "sha256:7687f6455ec3ed7649d1ae574136835a4272b65b3ddcf01ab8704ac65616c5ce"}, 1234 | {file = "mypy-0.770-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:3beff56b453b6ef94ecb2996bea101a08f1f8a9771d3cbf4988a61e4d9973761"}, 1235 | {file = "mypy-0.770-cp36-cp36m-win_amd64.whl", hash = "sha256:15b948e1302682e3682f11f50208b726a246ab4e6c1b39f9264a8796bb416aa2"}, 1236 | {file = "mypy-0.770-cp37-cp37m-macosx_10_6_x86_64.whl", hash = "sha256:b90928f2d9eb2f33162405f32dde9f6dcead63a0971ca8a1b50eb4ca3e35ceb8"}, 1237 | {file = "mypy-0.770-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:c56ffe22faa2e51054c5f7a3bc70a370939c2ed4de308c690e7949230c995913"}, 1238 | {file = "mypy-0.770-cp37-cp37m-win_amd64.whl", hash = "sha256:8dfb69fbf9f3aeed18afffb15e319ca7f8da9642336348ddd6cab2713ddcf8f9"}, 1239 | {file = "mypy-0.770-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:219a3116ecd015f8dca7b5d2c366c973509dfb9a8fc97ef044a36e3da66144a1"}, 1240 | {file = "mypy-0.770-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:7ec45a70d40ede1ec7ad7f95b3c94c9cf4c186a32f6bacb1795b60abd2f9ef27"}, 1241 | {file = "mypy-0.770-cp38-cp38-win_amd64.whl", hash = "sha256:f91c7ae919bbc3f96cd5e5b2e786b2b108343d1d7972ea130f7de27fdd547cf3"}, 1242 | {file = "mypy-0.770-py3-none-any.whl", hash = "sha256:3b1fc683fb204c6b4403a1ef23f0b1fac8e4477091585e0c8c54cbdf7d7bb164"}, 1243 | {file = "mypy-0.770.tar.gz", hash = "sha256:8a627507ef9b307b46a1fea9513d5c98680ba09591253082b4c48697ba05a4ae"}, 1244 | ] 1245 | mypy-extensions = [ 1246 | {file = "mypy_extensions-0.4.3-py2.py3-none-any.whl", hash = "sha256:090fedd75945a69ae91ce1303b5824f428daf5a028d2f6ab8a299250a846f15d"}, 1247 | {file = "mypy_extensions-0.4.3.tar.gz", hash = "sha256:2d82818f5bb3e369420cb3c4060a7970edba416647068eb4c5343488a6c604a8"}, 1248 | ] 1249 | packaging = [ 1250 | {file = "packaging-20.4-py2.py3-none-any.whl", hash = "sha256:998416ba6962ae7fbd6596850b80e17859a5753ba17c32284f67bfff33784181"}, 1251 | {file = "packaging-20.4.tar.gz", hash = "sha256:4357f74f47b9c12db93624a82154e9b120fa8293699949152b22065d556079f8"}, 1252 | ] 1253 | pathspec = [ 1254 | {file = "pathspec-0.8.0-py2.py3-none-any.whl", hash = "sha256:7d91249d21749788d07a2d0f94147accd8f845507400749ea19c1ec9054a12b0"}, 1255 | {file = "pathspec-0.8.0.tar.gz", hash = "sha256:da45173eb3a6f2a5a487efba21f050af2b41948be6ab52b6a1e3ff22bb8b7061"}, 1256 | ] 1257 | pbr = [ 1258 | {file = "pbr-5.5.1-py2.py3-none-any.whl", hash = "sha256:b236cde0ac9a6aedd5e3c34517b423cd4fd97ef723849da6b0d2231142d89c00"}, 1259 | {file = "pbr-5.5.1.tar.gz", hash = "sha256:5fad80b613c402d5b7df7bd84812548b2a61e9977387a80a5fc5c396492b13c9"}, 1260 | ] 1261 | pluggy = [ 1262 | {file = "pluggy-0.13.1-py2.py3-none-any.whl", hash = "sha256:966c145cd83c96502c3c3868f50408687b38434af77734af1e9ca461a4081d2d"}, 1263 | {file = "pluggy-0.13.1.tar.gz", hash = "sha256:15b2acde666561e1298d71b523007ed7364de07029219b604cf808bfa1c765b0"}, 1264 | ] 1265 | prometheus-client = [ 1266 | {file = "prometheus_client-0.7.1.tar.gz", hash = "sha256:71cd24a2b3eb335cb800c7159f423df1bd4dcd5171b234be15e3f31ec9f622da"}, 1267 | ] 1268 | py = [ 1269 | {file = "py-1.9.0-py2.py3-none-any.whl", hash = "sha256:366389d1db726cd2fcfc79732e75410e5fe4d31db13692115529d34069a043c2"}, 1270 | {file = "py-1.9.0.tar.gz", hash = "sha256:9ca6883ce56b4e8da7e79ac18787889fa5206c79dcc67fb065376cd2fe03f342"}, 1271 | ] 1272 | pycodestyle = [ 1273 | {file = "pycodestyle-2.6.0-py2.py3-none-any.whl", hash = "sha256:2295e7b2f6b5bd100585ebcb1f616591b652db8a741695b3d8f5d28bdc934367"}, 1274 | {file = "pycodestyle-2.6.0.tar.gz", hash = "sha256:c58a7d2815e0e8d7972bf1803331fb0152f867bd89adf8a01dfd55085434192e"}, 1275 | ] 1276 | pyflakes = [ 1277 | {file = "pyflakes-2.2.0-py2.py3-none-any.whl", hash = "sha256:0d94e0e05a19e57a99444b6ddcf9a6eb2e5c68d3ca1e98e90707af8152c90a92"}, 1278 | {file = "pyflakes-2.2.0.tar.gz", hash = "sha256:35b2d75ee967ea93b55750aa9edbbf72813e06a66ba54438df2cfac9e3c27fc8"}, 1279 | ] 1280 | pylint = [ 1281 | {file = "pylint-2.6.0-py3-none-any.whl", hash = "sha256:bfe68f020f8a0fece830a22dd4d5dddb4ecc6137db04face4c3420a46a52239f"}, 1282 | {file = "pylint-2.6.0.tar.gz", hash = "sha256:bb4a908c9dadbc3aac18860550e870f58e1a02c9f2c204fdf5693d73be061210"}, 1283 | ] 1284 | pylint-mongoengine = [ 1285 | {file = "pylint-mongoengine-0.4.0.tar.gz", hash = "sha256:328577c30460ddfe3ef4b95f98f2855b5503063c02b77efcf7f36676f20a1176"}, 1286 | ] 1287 | pylint-plugin-utils = [ 1288 | {file = "pylint-plugin-utils-0.6.tar.gz", hash = "sha256:57625dcca20140f43731311cd8fd879318bf45a8b0fd17020717a8781714a25a"}, 1289 | {file = "pylint_plugin_utils-0.6-py3-none-any.whl", hash = "sha256:2f30510e1c46edf268d3a195b2849bd98a1b9433229bb2ba63b8d776e1fc4d0a"}, 1290 | ] 1291 | pymongo = [ 1292 | {file = "pymongo-3.11.0-cp27-cp27m-macosx_10_15_x86_64.whl", hash = "sha256:7a4a6f5b818988a3917ec4baa91d1143242bdfece8d38305020463955961266a"}, 1293 | {file = "pymongo-3.11.0-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:c4869141e20769b65d2d72686e7a7eb141ce9f3168106bed3e7dcced54eb2422"}, 1294 | {file = "pymongo-3.11.0-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:ef76535776c0708a85258f6dc51d36a2df12633c735f6d197ed7dfcaa7449b99"}, 1295 | {file = "pymongo-3.11.0-cp27-cp27m-win32.whl", hash = "sha256:d226e0d4b9192d95079a9a29c04dd81816b1ce8903b8c174a39224fe978547cb"}, 1296 | {file = "pymongo-3.11.0-cp27-cp27m-win_amd64.whl", hash = "sha256:68220b81850de8e966d4667d5c325a96c6ac0d6adb3d18935d6e3d325d441f48"}, 1297 | {file = "pymongo-3.11.0-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:f6efca006a81e1197b925a7d7b16b8f61980697bb6746587aad8842865233218"}, 1298 | {file = "pymongo-3.11.0-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:7307024b18266b302f4265da84bb1effb5d18999ef35b30d17592959568d5c0a"}, 1299 | {file = "pymongo-3.11.0-cp34-cp34m-macosx_10_6_intel.whl", hash = "sha256:8ea13d0348b4c96b437d944d7068d59ed4a6c98aaa6c40d8537a2981313f1c66"}, 1300 | {file = "pymongo-3.11.0-cp34-cp34m-manylinux1_i686.whl", hash = "sha256:6a15e2bee5c4188369a87ed6f02de804651152634a46cca91966a11c8abd2550"}, 1301 | {file = "pymongo-3.11.0-cp34-cp34m-manylinux1_x86_64.whl", hash = "sha256:d64c98277ea80e4484f1332ab107e8dfd173a7dcf1bdbf10a9cccc97aaab145f"}, 1302 | {file = "pymongo-3.11.0-cp34-cp34m-win32.whl", hash = "sha256:83c5a3ecd96a9f3f11cfe6dfcbcec7323265340eb24cc996acaecea129865a3a"}, 1303 | {file = "pymongo-3.11.0-cp34-cp34m-win_amd64.whl", hash = "sha256:890b0f1e18dbd898aeb0ab9eae1ab159c6bcbe87f0abb065b0044581d8614062"}, 1304 | {file = "pymongo-3.11.0-cp35-cp35m-macosx_10_6_intel.whl", hash = "sha256:9fc17fdac8f1973850d42e51e8ba6149d93b1993ed6768a24f352f926dd3d587"}, 1305 | {file = "pymongo-3.11.0-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:421aa1b92c291c429668bd8d8d8ec2bd00f183483a756928e3afbf2b6f941f00"}, 1306 | {file = "pymongo-3.11.0-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:a2787319dc69854acdfd6452e6a8ba8f929aeb20843c7f090e04159fc18e6245"}, 1307 | {file = "pymongo-3.11.0-cp35-cp35m-manylinux2014_aarch64.whl", hash = "sha256:455f4deb00158d5ec8b1d3092df6abb681b225774ab8a59b3510293b4c8530e3"}, 1308 | {file = "pymongo-3.11.0-cp35-cp35m-manylinux2014_i686.whl", hash = "sha256:25e617daf47d8dfd4e152c880cd0741cbdb48e51f54b8de9ddbfe74ecd87dd16"}, 1309 | {file = "pymongo-3.11.0-cp35-cp35m-manylinux2014_ppc64le.whl", hash = "sha256:7122ffe597b531fb065d3314e704a6fe152b81820ca5f38543e70ffcc95ecfd4"}, 1310 | {file = "pymongo-3.11.0-cp35-cp35m-manylinux2014_s390x.whl", hash = "sha256:d0565481dc196986c484a7fb13214fc6402201f7fb55c65fd215b3324962fe6c"}, 1311 | {file = "pymongo-3.11.0-cp35-cp35m-manylinux2014_x86_64.whl", hash = "sha256:4437300eb3a5e9cc1a73b07d22c77302f872f339caca97e9bf8cf45eca8fa0d2"}, 1312 | {file = "pymongo-3.11.0-cp35-cp35m-win32.whl", hash = "sha256:d38b35f6eef4237b1d0d8e845fc1546dad85c55eba447e28c211da8c7ef9697c"}, 1313 | {file = "pymongo-3.11.0-cp35-cp35m-win_amd64.whl", hash = "sha256:137e6fa718c7eff270dbd2fc4b90d94b1a69c9e9eb3f3de9e850a7fd33c822dc"}, 1314 | {file = "pymongo-3.11.0-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:c0d660a186e36c526366edf8a64391874fe53cf8b7039224137aee0163c046df"}, 1315 | {file = "pymongo-3.11.0-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:d1b3366329c45a474b3bbc9b9c95d4c686e03f35da7fd12bc144626d1f2a7c04"}, 1316 | {file = "pymongo-3.11.0-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:b7c522292407fa04d8195032493aac937e253ad9ae524aab43b9d9d242571f03"}, 1317 | {file = "pymongo-3.11.0-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:9755c726aa6788f076114dfdc03b92b03ff8860316cca00902cce88bcdb5fedd"}, 1318 | {file = "pymongo-3.11.0-cp36-cp36m-manylinux2014_i686.whl", hash = "sha256:50531caa7b4be1c4ed5e2d5793a4e51cc9bd62a919a6fd3299ef7c902e206eab"}, 1319 | {file = "pymongo-3.11.0-cp36-cp36m-manylinux2014_ppc64le.whl", hash = "sha256:cc4057f692ac35bbe82a0a908d42ce3a281c9e913290fac37d7fa3bd01307dfb"}, 1320 | {file = "pymongo-3.11.0-cp36-cp36m-manylinux2014_s390x.whl", hash = "sha256:213c445fe7e654621c6309e874627c35354b46ef3ee807f5a1927dc4b30e1a67"}, 1321 | {file = "pymongo-3.11.0-cp36-cp36m-manylinux2014_x86_64.whl", hash = "sha256:4ae23fbbe9eadf61279a26eba866bbf161a6f7e2ffad14a42cf20e9cb8e94166"}, 1322 | {file = "pymongo-3.11.0-cp36-cp36m-win32.whl", hash = "sha256:8deda1f7b4c03242f2a8037706d9584e703f3d8c74d6d9cac5833db36fe16c42"}, 1323 | {file = "pymongo-3.11.0-cp36-cp36m-win_amd64.whl", hash = "sha256:e8c446882cbb3774cd78c738c9f58220606b702b7c1655f1423357dc51674054"}, 1324 | {file = "pymongo-3.11.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:d9de8427a5601799784eb0e7fa1b031aa64086ce04de29df775a8ca37eedac41"}, 1325 | {file = "pymongo-3.11.0-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:3d9bb1ba935a90ec4809a8031efd988bdb13cdba05d9e9a3e9bf151bf759ecde"}, 1326 | {file = "pymongo-3.11.0-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:96782ebb3c9e91e174c333208b272ea144ed2a684413afb1038e3b3342230d72"}, 1327 | {file = "pymongo-3.11.0-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:50127b13b38e8e586d5e97d342689405edbd74ad0bd891d97ee126a8c7b6e45f"}, 1328 | {file = "pymongo-3.11.0-cp37-cp37m-manylinux2014_i686.whl", hash = "sha256:bd312794f51e37dcf77f013d40650fe4fbb211dd55ef2863839c37480bd44369"}, 1329 | {file = "pymongo-3.11.0-cp37-cp37m-manylinux2014_ppc64le.whl", hash = "sha256:4797c0080f41eba90404335e5ded3aa66731d303293a675ff097ce4ea3025bb9"}, 1330 | {file = "pymongo-3.11.0-cp37-cp37m-manylinux2014_s390x.whl", hash = "sha256:1f865b1d1c191d785106f54df9abdc7d2f45a946b45fd1ea0a641b4f982a2a77"}, 1331 | {file = "pymongo-3.11.0-cp37-cp37m-manylinux2014_x86_64.whl", hash = "sha256:cccf1e7806f12300e3a3b48f219e111000c2538483e85c869c35c1ae591e6ce9"}, 1332 | {file = "pymongo-3.11.0-cp37-cp37m-win32.whl", hash = "sha256:05fcc6f9c60e6efe5219fbb5a30258adb3d3e5cbd317068f3d73c09727f2abb6"}, 1333 | {file = "pymongo-3.11.0-cp37-cp37m-win_amd64.whl", hash = "sha256:9dbab90c348c512e03f146e93a5e2610acec76df391043ecd46b6b775d5397e6"}, 1334 | {file = "pymongo-3.11.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:689142dc0c150e9cb7c012d84cac2c346d40beb891323afb6caf18ec4caafae0"}, 1335 | {file = "pymongo-3.11.0-cp38-cp38-manylinux1_i686.whl", hash = "sha256:4b32744901ee9990aa8cd488ec85634f443526def1e5190a407dc107148249d7"}, 1336 | {file = "pymongo-3.11.0-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:e6a15cf8f887d9f578dd49c6fb3a99d53e1d922fdd67a245a67488d77bf56eb2"}, 1337 | {file = "pymongo-3.11.0-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:e8d188ee39bd0ffe76603da887706e4e7b471f613625899ddf1e27867dc6a0d3"}, 1338 | {file = "pymongo-3.11.0-cp38-cp38-manylinux2014_i686.whl", hash = "sha256:9ee0eef254e340cc11c379f797af3977992a7f2c176f1a658740c94bf677e13c"}, 1339 | {file = "pymongo-3.11.0-cp38-cp38-manylinux2014_ppc64le.whl", hash = "sha256:91e96bf85b7c07c827d339a386e8a3cf2e90ef098c42595227f729922d0851df"}, 1340 | {file = "pymongo-3.11.0-cp38-cp38-manylinux2014_s390x.whl", hash = "sha256:ce208f80f398522e49d9db789065c8ad2cd37b21bd6b23d30053474b7416af11"}, 1341 | {file = "pymongo-3.11.0-cp38-cp38-manylinux2014_x86_64.whl", hash = "sha256:475a34a0745c456ceffaec4ce86b7e0983478f1b6140890dff7b161e7bcd895b"}, 1342 | {file = "pymongo-3.11.0-cp38-cp38-win32.whl", hash = "sha256:40696a9a53faa7d85aaa6fd7bef1cae08f7882640bad08c350fb59dee7ad069b"}, 1343 | {file = "pymongo-3.11.0-cp38-cp38-win_amd64.whl", hash = "sha256:03dc64a9aa7a5d405aea5c56db95835f6a2fa31b3502c5af1760e0e99210be30"}, 1344 | {file = "pymongo-3.11.0-py2.7-macosx-10.15-x86_64.egg", hash = "sha256:63a5387e496a98170ffe638b435c0832c0f2011a6f4ff7a2880f17669fff8c03"}, 1345 | {file = "pymongo-3.11.0.tar.gz", hash = "sha256:076a7f2f7c251635cf6116ac8e45eefac77758ee5a77ab7bd2f63999e957613b"}, 1346 | ] 1347 | pyparsing = [ 1348 | {file = "pyparsing-2.4.7-py2.py3-none-any.whl", hash = "sha256:ef9d7589ef3c200abe66653d3f1ab1033c3c419ae9b9bdb1240a85b024efc88b"}, 1349 | {file = "pyparsing-2.4.7.tar.gz", hash = "sha256:c203ec8783bf771a155b207279b9bccb8dea02d8f0c9e5f8ead507bc3246ecc1"}, 1350 | ] 1351 | pytest = [ 1352 | {file = "pytest-5.4.3-py3-none-any.whl", hash = "sha256:5c0db86b698e8f170ba4582a492248919255fcd4c79b1ee64ace34301fb589a1"}, 1353 | {file = "pytest-5.4.3.tar.gz", hash = "sha256:7979331bfcba207414f5e1263b5a0f8f521d0f457318836a7355531ed1a4c7d8"}, 1354 | ] 1355 | pytest-cov = [ 1356 | {file = "pytest-cov-2.10.1.tar.gz", hash = "sha256:47bd0ce14056fdd79f93e1713f88fad7bdcc583dcd7783da86ef2f085a0bb88e"}, 1357 | {file = "pytest_cov-2.10.1-py2.py3-none-any.whl", hash = "sha256:45ec2d5182f89a81fc3eb29e3d1ed3113b9e9a873bcddb2a71faaab066110191"}, 1358 | ] 1359 | pytest-sanic = [ 1360 | {file = "pytest-sanic-1.6.2.tar.gz", hash = "sha256:6428ed8cc2e6cfa05b92689a8589149aacdc1f0640fcf9673211aa733e6a5209"}, 1361 | {file = "pytest_sanic-1.6.2-py3-none-any.whl", hash = "sha256:982fa2ca879130fda9066b6051c7d232bf433dcc1bbac324e17ee49a8f7a92b1"}, 1362 | ] 1363 | python-dateutil = [ 1364 | {file = "python-dateutil-2.8.1.tar.gz", hash = "sha256:73ebfe9dbf22e832286dafa60473e4cd239f8592f699aa5adaf10050e6e1823c"}, 1365 | {file = "python_dateutil-2.8.1-py2.py3-none-any.whl", hash = "sha256:75bb3f31ea686f1197762692a9ee6a7550b59fc6ca3a1f4b5d7e32fb98e2da2a"}, 1366 | ] 1367 | python-decouple = [ 1368 | {file = "python-decouple-3.3.tar.gz", hash = "sha256:55c546b85b0c47a15a47a4312d451a437f7344a9be3e001660bccd93b637de95"}, 1369 | ] 1370 | python-json-logger = [ 1371 | {file = "python-json-logger-0.1.11.tar.gz", hash = "sha256:b7a31162f2a01965a5efb94453ce69230ed208468b0bbc7fdfc56e6d8df2e281"}, 1372 | ] 1373 | pyyaml = [ 1374 | {file = "PyYAML-5.3.1-cp27-cp27m-win32.whl", hash = "sha256:74809a57b329d6cc0fdccee6318f44b9b8649961fa73144a98735b0aaf029f1f"}, 1375 | {file = "PyYAML-5.3.1-cp27-cp27m-win_amd64.whl", hash = "sha256:240097ff019d7c70a4922b6869d8a86407758333f02203e0fc6ff79c5dcede76"}, 1376 | {file = "PyYAML-5.3.1-cp35-cp35m-win32.whl", hash = "sha256:4f4b913ca1a7319b33cfb1369e91e50354d6f07a135f3b901aca02aa95940bd2"}, 1377 | {file = "PyYAML-5.3.1-cp35-cp35m-win_amd64.whl", hash = "sha256:cc8955cfbfc7a115fa81d85284ee61147059a753344bc51098f3ccd69b0d7e0c"}, 1378 | {file = "PyYAML-5.3.1-cp36-cp36m-win32.whl", hash = "sha256:7739fc0fa8205b3ee8808aea45e968bc90082c10aef6ea95e855e10abf4a37b2"}, 1379 | {file = "PyYAML-5.3.1-cp36-cp36m-win_amd64.whl", hash = "sha256:69f00dca373f240f842b2931fb2c7e14ddbacd1397d57157a9b005a6a9942648"}, 1380 | {file = "PyYAML-5.3.1-cp37-cp37m-win32.whl", hash = "sha256:d13155f591e6fcc1ec3b30685d50bf0711574e2c0dfffd7644babf8b5102ca1a"}, 1381 | {file = "PyYAML-5.3.1-cp37-cp37m-win_amd64.whl", hash = "sha256:73f099454b799e05e5ab51423c7bcf361c58d3206fa7b0d555426b1f4d9a3eaf"}, 1382 | {file = "PyYAML-5.3.1-cp38-cp38-win32.whl", hash = "sha256:06a0d7ba600ce0b2d2fe2e78453a470b5a6e000a985dd4a4e54e436cc36b0e97"}, 1383 | {file = "PyYAML-5.3.1-cp38-cp38-win_amd64.whl", hash = "sha256:95f71d2af0ff4227885f7a6605c37fd53d3a106fcab511b8860ecca9fcf400ee"}, 1384 | {file = "PyYAML-5.3.1.tar.gz", hash = "sha256:b8eac752c5e14d3eca0e6dd9199cd627518cb5ec06add0de9d32baeee6fe645d"}, 1385 | ] 1386 | regex = [ 1387 | {file = "regex-2020.10.28-cp27-cp27m-win32.whl", hash = "sha256:4b5a9bcb56cc146c3932c648603b24514447eafa6ce9295234767bf92f69b504"}, 1388 | {file = "regex-2020.10.28-cp27-cp27m-win_amd64.whl", hash = "sha256:c13d311a4c4a8d671f5860317eb5f09591fbe8259676b86a85769423b544451e"}, 1389 | {file = "regex-2020.10.28-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:c8a2b7ccff330ae4c460aff36626f911f918555660cc28163417cb84ffb25789"}, 1390 | {file = "regex-2020.10.28-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:4afa350f162551cf402bfa3cd8302165c8e03e689c897d185f16a167328cc6dd"}, 1391 | {file = "regex-2020.10.28-cp36-cp36m-manylinux2010_i686.whl", hash = "sha256:b88fa3b8a3469f22b4f13d045d9bd3eda797aa4e406fde0a2644bc92bbdd4bdd"}, 1392 | {file = "regex-2020.10.28-cp36-cp36m-manylinux2010_x86_64.whl", hash = "sha256:f43109822df2d3faac7aad79613f5f02e4eab0fc8ad7932d2e70e2a83bd49c26"}, 1393 | {file = "regex-2020.10.28-cp36-cp36m-win32.whl", hash = "sha256:8092a5a06ad9a7a247f2a76ace121183dc4e1a84c259cf9c2ce3bbb69fac3582"}, 1394 | {file = "regex-2020.10.28-cp36-cp36m-win_amd64.whl", hash = "sha256:49461446b783945597c4076aea3f49aee4b4ce922bd241e4fcf62a3e7c61794c"}, 1395 | {file = "regex-2020.10.28-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:8ca9dca965bd86ea3631b975d63b0693566d3cc347e55786d5514988b6f5b84c"}, 1396 | {file = "regex-2020.10.28-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:ea37320877d56a7f0a1e6a625d892cf963aa7f570013499f5b8d5ab8402b5625"}, 1397 | {file = "regex-2020.10.28-cp37-cp37m-manylinux2010_i686.whl", hash = "sha256:3a5f08039eee9ea195a89e180c5762bfb55258bfb9abb61a20d3abee3b37fd12"}, 1398 | {file = "regex-2020.10.28-cp37-cp37m-manylinux2010_x86_64.whl", hash = "sha256:cb905f3d2e290a8b8f1579d3984f2cfa7c3a29cc7cba608540ceeed18513f520"}, 1399 | {file = "regex-2020.10.28-cp37-cp37m-win32.whl", hash = "sha256:a62162be05edf64f819925ea88d09d18b09bebf20971b363ce0c24e8b4aa14c0"}, 1400 | {file = "regex-2020.10.28-cp37-cp37m-win_amd64.whl", hash = "sha256:03855ee22980c3e4863dc84c42d6d2901133362db5daf4c36b710dd895d78f0a"}, 1401 | {file = "regex-2020.10.28-cp38-cp38-manylinux1_i686.whl", hash = "sha256:625116aca6c4b57c56ea3d70369cacc4d62fead4930f8329d242e4fe7a58ce4b"}, 1402 | {file = "regex-2020.10.28-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:2dc522e25e57e88b4980d2bdd334825dbf6fa55f28a922fc3bfa60cc09e5ef53"}, 1403 | {file = "regex-2020.10.28-cp38-cp38-manylinux2010_i686.whl", hash = "sha256:119e0355dbdd4cf593b17f2fc5dbd4aec2b8899d0057e4957ba92f941f704bf5"}, 1404 | {file = "regex-2020.10.28-cp38-cp38-manylinux2010_x86_64.whl", hash = "sha256:cfcf28ed4ce9ced47b9b9670a4f0d3d3c0e4d4779ad4dadb1ad468b097f808aa"}, 1405 | {file = "regex-2020.10.28-cp38-cp38-win32.whl", hash = "sha256:06b52815d4ad38d6524666e0d50fe9173533c9cc145a5779b89733284e6f688f"}, 1406 | {file = "regex-2020.10.28-cp38-cp38-win_amd64.whl", hash = "sha256:c3466a84fce42c2016113101018a9981804097bacbab029c2d5b4fcb224b89de"}, 1407 | {file = "regex-2020.10.28-cp39-cp39-manylinux1_i686.whl", hash = "sha256:c2c6c56ee97485a127555c9595c069201b5161de9d05495fbe2132b5ac104786"}, 1408 | {file = "regex-2020.10.28-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:1ec66700a10e3c75f1f92cbde36cca0d3aaee4c73dfa26699495a3a30b09093c"}, 1409 | {file = "regex-2020.10.28-cp39-cp39-manylinux2010_i686.whl", hash = "sha256:11116d424734fe356d8777f89d625f0df783251ada95d6261b4c36ad27a394bb"}, 1410 | {file = "regex-2020.10.28-cp39-cp39-manylinux2010_x86_64.whl", hash = "sha256:f1fce1e4929157b2afeb4bb7069204d4370bab9f4fc03ca1fbec8bd601f8c87d"}, 1411 | {file = "regex-2020.10.28-cp39-cp39-win32.whl", hash = "sha256:832339223b9ce56b7b15168e691ae654d345ac1635eeb367ade9ecfe0e66bee0"}, 1412 | {file = "regex-2020.10.28-cp39-cp39-win_amd64.whl", hash = "sha256:654c1635f2313d0843028487db2191530bca45af61ca85d0b16555c399625b0e"}, 1413 | {file = "regex-2020.10.28.tar.gz", hash = "sha256:dd3e6547ecf842a29cf25123fbf8d2461c53c8d37aa20d87ecee130c89b7079b"}, 1414 | ] 1415 | requests = [ 1416 | {file = "requests-2.24.0-py2.py3-none-any.whl", hash = "sha256:fe75cc94a9443b9246fc7049224f75604b113c36acb93f87b80ed42c44cbb898"}, 1417 | {file = "requests-2.24.0.tar.gz", hash = "sha256:b3559a131db72c33ee969480840fff4bb6dd111de7dd27c8ee1f820f4f00231b"}, 1418 | ] 1419 | requests-async = [ 1420 | {file = "requests-async-0.5.0.tar.gz", hash = "sha256:8731420451383196ecf2fd96082bfc8ae5103ada90aba185888499d7784dde6f"}, 1421 | ] 1422 | rfc3986 = [ 1423 | {file = "rfc3986-1.4.0-py2.py3-none-any.whl", hash = "sha256:af9147e9aceda37c91a05f4deb128d4b4b49d6b199775fd2d2927768abdc8f50"}, 1424 | {file = "rfc3986-1.4.0.tar.gz", hash = "sha256:112398da31a3344dc25dbf477d8df6cb34f9278a94fee2625d89e4514be8bb9d"}, 1425 | ] 1426 | sanic = [ 1427 | {file = "sanic-19.9.0-py3-none-any.whl", hash = "sha256:fdde669f97d5c7a8223b3ab671b9a2c9fe73dd3461195f9fb3951e87a312164d"}, 1428 | {file = "sanic-19.9.0.tar.gz", hash = "sha256:5e975a288d862a57db64349798b0180f2d6a4546ffd34dcd533cdda05467f06c"}, 1429 | ] 1430 | sanic-openapi = [ 1431 | {file = "sanic-openapi-0.6.0.tar.gz", hash = "sha256:5f231835d2138873198d258fdb4f6d198235e53e7ad375ba5d070e7a368c49d0"}, 1432 | ] 1433 | six = [ 1434 | {file = "six-1.15.0-py2.py3-none-any.whl", hash = "sha256:8b74bedcbbbaca38ff6d7491d76f2b06b3592611af620f8426e82dddb04a5ced"}, 1435 | {file = "six-1.15.0.tar.gz", hash = "sha256:30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259"}, 1436 | ] 1437 | smmap = [ 1438 | {file = "smmap-3.0.4-py2.py3-none-any.whl", hash = "sha256:54c44c197c819d5ef1991799a7e30b662d1e520f2ac75c9efbeb54a742214cf4"}, 1439 | {file = "smmap-3.0.4.tar.gz", hash = "sha256:9c98bbd1f9786d22f14b3d4126894d56befb835ec90cef151af566c7e19b5d24"}, 1440 | ] 1441 | stevedore = [ 1442 | {file = "stevedore-3.2.2-py3-none-any.whl", hash = "sha256:5e1ab03eaae06ef6ce23859402de785f08d97780ed774948ef16c4652c41bc62"}, 1443 | {file = "stevedore-3.2.2.tar.gz", hash = "sha256:f845868b3a3a77a2489d226568abe7328b5c2d4f6a011cc759dfa99144a521f0"}, 1444 | ] 1445 | toml = [ 1446 | {file = "toml-0.10.2-py2.py3-none-any.whl", hash = "sha256:806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b"}, 1447 | {file = "toml-0.10.2.tar.gz", hash = "sha256:b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f"}, 1448 | ] 1449 | typed-ast = [ 1450 | {file = "typed_ast-1.4.1-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:73d785a950fc82dd2a25897d525d003f6378d1cb23ab305578394694202a58c3"}, 1451 | {file = "typed_ast-1.4.1-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:aaee9905aee35ba5905cfb3c62f3e83b3bec7b39413f0a7f19be4e547ea01ebb"}, 1452 | {file = "typed_ast-1.4.1-cp35-cp35m-win32.whl", hash = "sha256:0c2c07682d61a629b68433afb159376e24e5b2fd4641d35424e462169c0a7919"}, 1453 | {file = "typed_ast-1.4.1-cp35-cp35m-win_amd64.whl", hash = "sha256:4083861b0aa07990b619bd7ddc365eb7fa4b817e99cf5f8d9cf21a42780f6e01"}, 1454 | {file = "typed_ast-1.4.1-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:269151951236b0f9a6f04015a9004084a5ab0d5f19b57de779f908621e7d8b75"}, 1455 | {file = "typed_ast-1.4.1-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:24995c843eb0ad11a4527b026b4dde3da70e1f2d8806c99b7b4a7cf491612652"}, 1456 | {file = "typed_ast-1.4.1-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:fe460b922ec15dd205595c9b5b99e2f056fd98ae8f9f56b888e7a17dc2b757e7"}, 1457 | {file = "typed_ast-1.4.1-cp36-cp36m-win32.whl", hash = "sha256:4e3e5da80ccbebfff202a67bf900d081906c358ccc3d5e3c8aea42fdfdfd51c1"}, 1458 | {file = "typed_ast-1.4.1-cp36-cp36m-win_amd64.whl", hash = "sha256:249862707802d40f7f29f6e1aad8d84b5aa9e44552d2cc17384b209f091276aa"}, 1459 | {file = "typed_ast-1.4.1-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:8ce678dbaf790dbdb3eba24056d5364fb45944f33553dd5869b7580cdbb83614"}, 1460 | {file = "typed_ast-1.4.1-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:c9e348e02e4d2b4a8b2eedb48210430658df6951fa484e59de33ff773fbd4b41"}, 1461 | {file = "typed_ast-1.4.1-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:bcd3b13b56ea479b3650b82cabd6b5343a625b0ced5429e4ccad28a8973f301b"}, 1462 | {file = "typed_ast-1.4.1-cp37-cp37m-win32.whl", hash = "sha256:d5d33e9e7af3b34a40dc05f498939f0ebf187f07c385fd58d591c533ad8562fe"}, 1463 | {file = "typed_ast-1.4.1-cp37-cp37m-win_amd64.whl", hash = "sha256:0666aa36131496aed8f7be0410ff974562ab7eeac11ef351def9ea6fa28f6355"}, 1464 | {file = "typed_ast-1.4.1-cp38-cp38-macosx_10_15_x86_64.whl", hash = "sha256:d205b1b46085271b4e15f670058ce182bd1199e56b317bf2ec004b6a44f911f6"}, 1465 | {file = "typed_ast-1.4.1-cp38-cp38-manylinux1_i686.whl", hash = "sha256:6daac9731f172c2a22ade6ed0c00197ee7cc1221aa84cfdf9c31defeb059a907"}, 1466 | {file = "typed_ast-1.4.1-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:498b0f36cc7054c1fead3d7fc59d2150f4d5c6c56ba7fb150c013fbc683a8d2d"}, 1467 | {file = "typed_ast-1.4.1-cp38-cp38-win32.whl", hash = "sha256:715ff2f2df46121071622063fc7543d9b1fd19ebfc4f5c8895af64a77a8c852c"}, 1468 | {file = "typed_ast-1.4.1-cp38-cp38-win_amd64.whl", hash = "sha256:fc0fea399acb12edbf8a628ba8d2312f583bdbdb3335635db062fa98cf71fca4"}, 1469 | {file = "typed_ast-1.4.1-cp39-cp39-macosx_10_15_x86_64.whl", hash = "sha256:d43943ef777f9a1c42bf4e552ba23ac77a6351de620aa9acf64ad54933ad4d34"}, 1470 | {file = "typed_ast-1.4.1.tar.gz", hash = "sha256:8c8aaad94455178e3187ab22c8b01a3837f8ee50e09cf31f1ba129eb293ec30b"}, 1471 | ] 1472 | typing-extensions = [ 1473 | {file = "typing_extensions-3.7.4.3-py2-none-any.whl", hash = "sha256:dafc7639cde7f1b6e1acc0f457842a83e722ccca8eef5270af2d74792619a89f"}, 1474 | {file = "typing_extensions-3.7.4.3-py3-none-any.whl", hash = "sha256:7cb407020f00f7bfc3cb3e7881628838e69d8f3fcab2f64742a5e76b2f841918"}, 1475 | {file = "typing_extensions-3.7.4.3.tar.gz", hash = "sha256:99d4073b617d30288f569d3f13d2bd7548c3a7e4c8de87db09a9d29bb3a4a60c"}, 1476 | ] 1477 | ujson = [ 1478 | {file = "ujson-4.0.1-cp36-cp36m-macosx_10_14_x86_64.whl", hash = "sha256:5fe1536465b1c86e32a47113abd3178001b7c2dcd61f95f336fe2febf4661e74"}, 1479 | {file = "ujson-4.0.1-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:0f412c3f59b1ab0f40018235224ca0cf29232d0201ff5085618565a8a9c810ed"}, 1480 | {file = "ujson-4.0.1-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:4f12b0b4e235b35d49f15227b0a827e614c52dda903c58a8f5523936c233dfc7"}, 1481 | {file = "ujson-4.0.1-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:7a1545ac2476db4cc1f0f236603ccbb50991fc1bba480cda1bc06348cc2a2bf0"}, 1482 | {file = "ujson-4.0.1-cp36-cp36m-win_amd64.whl", hash = "sha256:078808c385036cba73cad96f498310c61e9b5ae5ac9ea01e7c3996ece544b556"}, 1483 | {file = "ujson-4.0.1-cp37-cp37m-macosx_10_14_x86_64.whl", hash = "sha256:4fe8c6112b732cba5a722f7cbe22f18d405f6f44415794a5b46473a477635233"}, 1484 | {file = "ujson-4.0.1-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:71703a269f074ff65b9d7746662e4b3e76a4af443e532218af1e8ce15d9b1e7b"}, 1485 | {file = "ujson-4.0.1-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:b87379a3f8046d6d111762d81f3384bf38ab24b1535c841fe867a4a097d84523"}, 1486 | {file = "ujson-4.0.1-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:a79bca47eafb31c74b38e68623bc9b2bb930cb48fab1af31c8f2cb68cf473421"}, 1487 | {file = "ujson-4.0.1-cp37-cp37m-win_amd64.whl", hash = "sha256:e7ab24942b2d57920d75b817b8eead293026db003247e26f99506bdad86c61b4"}, 1488 | {file = "ujson-4.0.1-cp38-cp38-macosx_10_14_x86_64.whl", hash = "sha256:51480048373cf97a6b97fcd70c3586ca0a31f27e22ab680fb14c1f22bedbf743"}, 1489 | {file = "ujson-4.0.1-cp38-cp38-manylinux1_i686.whl", hash = "sha256:c604024bd853b5df6be7d933e934da8dd139e6159564db7c55b92a9937678093"}, 1490 | {file = "ujson-4.0.1-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:568bb3e7f035006147af4ce3a9ced7d126c92e1a8607c7b2266007b1c1162c53"}, 1491 | {file = "ujson-4.0.1-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:bd4c77aee3ffb920e2dbc21a9e0c7945a400557ce671cfd57dbd569f5ebc619d"}, 1492 | {file = "ujson-4.0.1-cp38-cp38-win_amd64.whl", hash = "sha256:c354c1617b0a4378b6279d0cd511b769500cf3fa7c42e8e004cbbbb6b4c2a875"}, 1493 | {file = "ujson-4.0.1-cp39-cp39-macosx_10_14_x86_64.whl", hash = "sha256:a5200a68f1dcf3ce275e1cefbcfa3914b70c2b5e2f71c2e31556aa1f7244c845"}, 1494 | {file = "ujson-4.0.1-cp39-cp39-manylinux1_i686.whl", hash = "sha256:a618af22407baeadb3f046f81e7a5ee5e9f8b0b716d2b564f92276a54d26a823"}, 1495 | {file = "ujson-4.0.1-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:0a2e1b211714eb1ec0772a013ec9967f8f95f21c84e8f46382e9f8a32ae781fe"}, 1496 | {file = "ujson-4.0.1-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:2b2d9264ac76aeb11f590f7a1ccff0689ba1313adacbb6d38d3b15f21a392897"}, 1497 | {file = "ujson-4.0.1-cp39-cp39-win_amd64.whl", hash = "sha256:f8a60928737a9a47e692fcd661ef2b5d75ba22c7c930025bd95e338f2a6e15bc"}, 1498 | {file = "ujson-4.0.1.tar.gz", hash = "sha256:26cf6241b36ff5ce4539ae687b6b02673109c5e3efc96148806a7873eaa229d3"}, 1499 | ] 1500 | urllib3 = [ 1501 | {file = "urllib3-1.25.11-py2.py3-none-any.whl", hash = "sha256:f5321fbe4bf3fefa0efd0bfe7fb14e90909eb62a48ccda331726b4319897dd5e"}, 1502 | {file = "urllib3-1.25.11.tar.gz", hash = "sha256:8d7eaa5a82a1cac232164990f04874c594c9453ec55eef02eab885aa02fc17a2"}, 1503 | ] 1504 | uvicorn = [ 1505 | {file = "uvicorn-0.12.2-py3-none-any.whl", hash = "sha256:e5dbed4a8a44c7b04376021021d63798d6a7bcfae9c654a0b153577b93854fba"}, 1506 | {file = "uvicorn-0.12.2.tar.gz", hash = "sha256:8ff7495c74b8286a341526ff9efa3988ebab9a4b2f561c7438c3cb420992d7dd"}, 1507 | ] 1508 | uvloop = [ 1509 | {file = "uvloop-0.14.0-cp35-cp35m-macosx_10_11_x86_64.whl", hash = "sha256:08b109f0213af392150e2fe6f81d33261bb5ce968a288eb698aad4f46eb711bd"}, 1510 | {file = "uvloop-0.14.0-cp35-cp35m-manylinux2010_x86_64.whl", hash = "sha256:4544dcf77d74f3a84f03dd6278174575c44c67d7165d4c42c71db3fdc3860726"}, 1511 | {file = "uvloop-0.14.0-cp36-cp36m-macosx_10_11_x86_64.whl", hash = "sha256:b4f591aa4b3fa7f32fb51e2ee9fea1b495eb75b0b3c8d0ca52514ad675ae63f7"}, 1512 | {file = "uvloop-0.14.0-cp36-cp36m-manylinux2010_x86_64.whl", hash = "sha256:f07909cd9fc08c52d294b1570bba92186181ca01fe3dc9ffba68955273dd7362"}, 1513 | {file = "uvloop-0.14.0-cp37-cp37m-macosx_10_11_x86_64.whl", hash = "sha256:afd5513c0ae414ec71d24f6f123614a80f3d27ca655a4fcf6cabe50994cc1891"}, 1514 | {file = "uvloop-0.14.0-cp37-cp37m-manylinux2010_x86_64.whl", hash = "sha256:e7514d7a48c063226b7d06617cbb12a14278d4323a065a8d46a7962686ce2e95"}, 1515 | {file = "uvloop-0.14.0-cp38-cp38-macosx_10_11_x86_64.whl", hash = "sha256:bcac356d62edd330080aed082e78d4b580ff260a677508718f88016333e2c9c5"}, 1516 | {file = "uvloop-0.14.0-cp38-cp38-manylinux2010_x86_64.whl", hash = "sha256:4315d2ec3ca393dd5bc0b0089d23101276778c304d42faff5dc4579cb6caef09"}, 1517 | {file = "uvloop-0.14.0.tar.gz", hash = "sha256:123ac9c0c7dd71464f58f1b4ee0bbd81285d96cdda8bc3519281b8973e3a461e"}, 1518 | ] 1519 | wcwidth = [ 1520 | {file = "wcwidth-0.2.5-py2.py3-none-any.whl", hash = "sha256:beb4802a9cebb9144e99086eff703a642a13d6a0052920003a230f3294bbe784"}, 1521 | {file = "wcwidth-0.2.5.tar.gz", hash = "sha256:c4d647b99872929fdb7bdcaa4fbe7f01413ed3d98077df798530e5b04f116c83"}, 1522 | ] 1523 | websockets = [ 1524 | {file = "websockets-8.1-cp36-cp36m-macosx_10_6_intel.whl", hash = "sha256:3762791ab8b38948f0c4d281c8b2ddfa99b7e510e46bd8dfa942a5fff621068c"}, 1525 | {file = "websockets-8.1-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:3db87421956f1b0779a7564915875ba774295cc86e81bc671631379371af1170"}, 1526 | {file = "websockets-8.1-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:4f9f7d28ce1d8f1295717c2c25b732c2bc0645db3215cf757551c392177d7cb8"}, 1527 | {file = "websockets-8.1-cp36-cp36m-manylinux2010_i686.whl", hash = "sha256:295359a2cc78736737dd88c343cd0747546b2174b5e1adc223824bcaf3e164cb"}, 1528 | {file = "websockets-8.1-cp36-cp36m-manylinux2010_x86_64.whl", hash = "sha256:1d3f1bf059d04a4e0eb4985a887d49195e15ebabc42364f4eb564b1d065793f5"}, 1529 | {file = "websockets-8.1-cp36-cp36m-win32.whl", hash = "sha256:2db62a9142e88535038a6bcfea70ef9447696ea77891aebb730a333a51ed559a"}, 1530 | {file = "websockets-8.1-cp36-cp36m-win_amd64.whl", hash = "sha256:0e4fb4de42701340bd2353bb2eee45314651caa6ccee80dbd5f5d5978888fed5"}, 1531 | {file = "websockets-8.1-cp37-cp37m-macosx_10_6_intel.whl", hash = "sha256:9b248ba3dd8a03b1a10b19efe7d4f7fa41d158fdaa95e2cf65af5a7b95a4f989"}, 1532 | {file = "websockets-8.1-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:ce85b06a10fc65e6143518b96d3dca27b081a740bae261c2fb20375801a9d56d"}, 1533 | {file = "websockets-8.1-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:965889d9f0e2a75edd81a07592d0ced54daa5b0785f57dc429c378edbcffe779"}, 1534 | {file = "websockets-8.1-cp37-cp37m-manylinux2010_i686.whl", hash = "sha256:751a556205d8245ff94aeef23546a1113b1dd4f6e4d102ded66c39b99c2ce6c8"}, 1535 | {file = "websockets-8.1-cp37-cp37m-manylinux2010_x86_64.whl", hash = "sha256:3ef56fcc7b1ff90de46ccd5a687bbd13a3180132268c4254fc0fa44ecf4fc422"}, 1536 | {file = "websockets-8.1-cp37-cp37m-win32.whl", hash = "sha256:7ff46d441db78241f4c6c27b3868c9ae71473fe03341340d2dfdbe8d79310acc"}, 1537 | {file = "websockets-8.1-cp37-cp37m-win_amd64.whl", hash = "sha256:20891f0dddade307ffddf593c733a3fdb6b83e6f9eef85908113e628fa5a8308"}, 1538 | {file = "websockets-8.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:c1ec8db4fac31850286b7cd3b9c0e1b944204668b8eb721674916d4e28744092"}, 1539 | {file = "websockets-8.1-cp38-cp38-manylinux1_i686.whl", hash = "sha256:5c01fd846263a75bc8a2b9542606927cfad57e7282965d96b93c387622487485"}, 1540 | {file = "websockets-8.1-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:9bef37ee224e104a413f0780e29adb3e514a5b698aabe0d969a6ba426b8435d1"}, 1541 | {file = "websockets-8.1-cp38-cp38-manylinux2010_i686.whl", hash = "sha256:d705f8aeecdf3262379644e4b55107a3b55860eb812b673b28d0fbc347a60c55"}, 1542 | {file = "websockets-8.1-cp38-cp38-manylinux2010_x86_64.whl", hash = "sha256:c8a116feafdb1f84607cb3b14aa1418424ae71fee131642fc568d21423b51824"}, 1543 | {file = "websockets-8.1-cp38-cp38-win32.whl", hash = "sha256:e898a0863421650f0bebac8ba40840fc02258ef4714cb7e1fd76b6a6354bda36"}, 1544 | {file = "websockets-8.1-cp38-cp38-win_amd64.whl", hash = "sha256:f8a7bff6e8664afc4e6c28b983845c5bc14965030e3fb98789734d416af77c4b"}, 1545 | {file = "websockets-8.1.tar.gz", hash = "sha256:5c65d2da8c6bce0fca2528f69f44b2f977e06954c8512a952222cea50dad430f"}, 1546 | ] 1547 | wrapt = [ 1548 | {file = "wrapt-1.12.1.tar.gz", hash = "sha256:b62ffa81fb85f4332a4f609cab4ac40709470da05643a082ec1eb88e6d9b97d7"}, 1549 | ] 1550 | yarl = [ 1551 | {file = "yarl-1.6.2-cp36-cp36m-macosx_10_14_x86_64.whl", hash = "sha256:d77f6c9133d2aabb290a7846aaa74ec14d7b5ab35b01591fac5a70c4a8c959a2"}, 1552 | {file = "yarl-1.6.2-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:311effab3b3828ab34f0e661bb57ff422f67d5c33056298bda4c12195251f8dd"}, 1553 | {file = "yarl-1.6.2-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:f835015a825980b65356e9520979a1564c56efea7da7d4b68a14d4a07a3a7336"}, 1554 | {file = "yarl-1.6.2-cp36-cp36m-manylinux2014_i686.whl", hash = "sha256:59f78b5da34ddcffb663b772f7619e296518712e022e57fc5d9f921818e2ab7c"}, 1555 | {file = "yarl-1.6.2-cp36-cp36m-manylinux2014_ppc64le.whl", hash = "sha256:3526cb5905907f0e42bee7ef57ae4a5f02bc27dcac27859269e2bba0caa4c2b6"}, 1556 | {file = "yarl-1.6.2-cp36-cp36m-manylinux2014_s390x.whl", hash = "sha256:e77bf79ad1ccae672eab22453838382fe9029fc27c8029e84913855512a587d8"}, 1557 | {file = "yarl-1.6.2-cp36-cp36m-manylinux2014_x86_64.whl", hash = "sha256:b3dd1052afd436ba737e61f5d3bed1f43a7f9a33fc58fbe4226eb919a7006019"}, 1558 | {file = "yarl-1.6.2-cp36-cp36m-win_amd64.whl", hash = "sha256:6f29115b0c330da25a04f48612d75333bca04521181a666ca0b8761005a99150"}, 1559 | {file = "yarl-1.6.2-cp37-cp37m-macosx_10_14_x86_64.whl", hash = "sha256:f3031c78edf10315abe232254e6a36b65afe65fded41ee54ed7976d0b2cdf0da"}, 1560 | {file = "yarl-1.6.2-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:4bed5cd7c8e69551eb19df15295ba90e62b9a6a1149c76eb4a9bab194402a156"}, 1561 | {file = "yarl-1.6.2-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:39b1e586f34b1d2512c9b39aa3cf24c870c972d525e36edc9ee19065db4737bb"}, 1562 | {file = "yarl-1.6.2-cp37-cp37m-manylinux2014_i686.whl", hash = "sha256:03b7a44384ad60be1b7be93c2a24dc74895f8d767ea0bce15b2f6fc7695a3843"}, 1563 | {file = "yarl-1.6.2-cp37-cp37m-manylinux2014_ppc64le.whl", hash = "sha256:a1fd575dd058e10ad4c35065e7c3007cc74d142f622b14e168d8a273a2fa8713"}, 1564 | {file = "yarl-1.6.2-cp37-cp37m-manylinux2014_s390x.whl", hash = "sha256:9b48d31f8d881713fd461abfe7acbb4dcfeb47cec3056aa83f2fbcd2244577f7"}, 1565 | {file = "yarl-1.6.2-cp37-cp37m-manylinux2014_x86_64.whl", hash = "sha256:1c05ae3d5ea4287470046a2c2754f0a4c171b84ea72c8a691f776eb1753dfb91"}, 1566 | {file = "yarl-1.6.2-cp37-cp37m-win_amd64.whl", hash = "sha256:f4f27ff3dd80bc7c402def211a47291ea123d59a23f59fe18fc0e81e3e71f385"}, 1567 | {file = "yarl-1.6.2-cp38-cp38-macosx_10_14_x86_64.whl", hash = "sha256:73d4e1e1ef5e52d526c92f07d16329e1678612c6a81dd8101fdcae11a72de15c"}, 1568 | {file = "yarl-1.6.2-cp38-cp38-manylinux1_i686.whl", hash = "sha256:db643ce2b58a4bd11a82348225c53c76ecdd82bb37cf4c085e6df1b676f4038c"}, 1569 | {file = "yarl-1.6.2-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:d25d3311794e6c71b608d7c47651c8f65eea5ab15358a27f29330b3475e8f8e5"}, 1570 | {file = "yarl-1.6.2-cp38-cp38-manylinux2014_i686.whl", hash = "sha256:51c6d3cf7a1f1fbe134bb92f33b7affd94d6de24cd64b466eb12de52120fb8c6"}, 1571 | {file = "yarl-1.6.2-cp38-cp38-manylinux2014_ppc64le.whl", hash = "sha256:cd623170c729a865037828e3f99f8ebdb22a467177a539680dfc5670b74c84e2"}, 1572 | {file = "yarl-1.6.2-cp38-cp38-manylinux2014_s390x.whl", hash = "sha256:c056e86bff5a0b566e0d9fab4f67e83b12ae9cbcd250d334cbe2005bbe8c96f2"}, 1573 | {file = "yarl-1.6.2-cp38-cp38-manylinux2014_x86_64.whl", hash = "sha256:f4c007156732866aa4507d619fe6f8f2748caabed4f66b276ccd97c82572620c"}, 1574 | {file = "yarl-1.6.2-cp38-cp38-win_amd64.whl", hash = "sha256:2bb2e21cf062dfbe985c3cd4618bae9f25271efcad9e7be1277861247eee9839"}, 1575 | {file = "yarl-1.6.2-cp39-cp39-macosx_10_14_x86_64.whl", hash = "sha256:b99c25ed5c355b35d1e6dae87ac7297a4844a57dc5766b173b88b6163a36eb0d"}, 1576 | {file = "yarl-1.6.2-cp39-cp39-manylinux1_i686.whl", hash = "sha256:2467baf8233f7c64048df37e11879c553943ffe7f373e689711ec2807ea13805"}, 1577 | {file = "yarl-1.6.2-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:e3a0c43a26dfed955b2a06fdc4d51d2c51bc2200aff8ce8faf14e676ea8c8862"}, 1578 | {file = "yarl-1.6.2-cp39-cp39-manylinux2014_i686.whl", hash = "sha256:f2f0174cb15435957d3b751093f89aede77df59a499ab7516bbb633b77ead13a"}, 1579 | {file = "yarl-1.6.2-cp39-cp39-manylinux2014_ppc64le.whl", hash = "sha256:d695439c201ed340745250f9eb4dfe8d32bf1e680c16477107b8f3ce4bff4fdb"}, 1580 | {file = "yarl-1.6.2-cp39-cp39-manylinux2014_s390x.whl", hash = "sha256:f57744fc61e118b5d114ae8077d8eb9df4d2d2c11e2af194e21f0c11ed9dcf6c"}, 1581 | {file = "yarl-1.6.2-cp39-cp39-manylinux2014_x86_64.whl", hash = "sha256:d894a2442d2cd20a3b0b0dce5a353d316c57d25a2b445e03f7eac90eee27b8af"}, 1582 | {file = "yarl-1.6.2-cp39-cp39-win_amd64.whl", hash = "sha256:076157404db9db4bb3fa9db22db319bbb36d075eeab19ba018ce20ae0cacf037"}, 1583 | {file = "yarl-1.6.2.tar.gz", hash = "sha256:c45b49b59a5724869899798e1bbd447ac486215269511d3b76b4c235a1b766b6"}, 1584 | ] 1585 | -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- 1 | [tool.poetry] 2 | name = "immuni-exposure-reporting" 3 | version = "1.0.0" 4 | description = """ 5 | The Exposure Reporting Service makes the TEK Chunks created by the Exposure Ingestion Service 6 | available to the Mobile Client. Only TEK Chunks for the last 14 days are made available. 7 | """ 8 | authors = [] 9 | 10 | [tool.poetry.dependencies] 11 | immuni-common = { "path" = "common", develop = true } 12 | python = "^3.8" 13 | 14 | [tool.poetry.dev-dependencies] 15 | immuni-common-dev = { "path" = "common/dev", develop = true } 16 | 17 | [tool.poetry.scripts] 18 | checks = "common.scripts:checks" 19 | 20 | [build-system] 21 | requires = ["poetry>=0.12", "setuptools"] 22 | build-backend = "poetry.masonry.api" 23 | 24 | -------------------------------------------------------------------------------- /pytest.ini: -------------------------------------------------------------------------------- 1 | [pytest] 2 | filterwarnings = 3 | ignore::DeprecationWarning:(aiohttp.connector|aioredis.stream|mongoengine.queryset).* 4 | ignore::DeprecationWarning:(sanic.request|sanic.server).* 5 | ignore::pytest.PytestCollectionWarning 6 | junit_family=xunit1 7 | -------------------------------------------------------------------------------- /sonar-project.properties: -------------------------------------------------------------------------------- 1 | sonar.sources=immuni_exposure_reporting 2 | -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2020 Presidenza del Consiglio dei Ministri. 2 | # Please refer to the AUTHORS file for more information. 3 | # This program is free software: you can redistribute it and/or modify 4 | # it under the terms of the GNU Affero General Public License as 5 | # published by the Free Software Foundation, either version 3 of the 6 | # License, or (at your option) any later version. 7 | # This program is distributed in the hope that it will be useful, 8 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | # GNU Affero General Public License for more details. 11 | # You should have received a copy of the GNU Affero General Public License 12 | # along with this program. If not, see . 13 | -------------------------------------------------------------------------------- /tests/conftest.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2020 Presidenza del Consiglio dei Ministri. 2 | # Please refer to the AUTHORS file for more information. 3 | # This program is free software: you can redistribute it and/or modify 4 | # it under the terms of the GNU Affero General Public License as 5 | # published by the Free Software Foundation, either version 3 of the 6 | # License, or (at your option) any later version. 7 | # This program is distributed in the hope that it will be useful, 8 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | # GNU Affero General Public License for more details. 11 | # You should have received a copy of the GNU Affero General Public License 12 | # along with this program. If not, see . 13 | 14 | from immuni_common.helpers.tests import check_environment, check_mongo_url 15 | from immuni_exposure_reporting.core import config 16 | 17 | # noinspection PyUnresolvedReferences 18 | from tests.fixtures.batch_file import * # noqa isort:skip 19 | 20 | # noinspection PyUnresolvedReferences 21 | from tests.fixtures.batch_file_eu import * # noqa isort:skip 22 | 23 | # noinspection PyUnresolvedReferences 24 | from tests.fixtures.core import * # noqa isort:skip 25 | 26 | # noinspection PyUnresolvedReferences 27 | from immuni_common.helpers.tests import monitoring_setup # noqa isort:skip 28 | 29 | check_environment() 30 | check_mongo_url(config.EXPOSURE_MONGO_URL, "EXPOSURE_MONGO_URL") 31 | -------------------------------------------------------------------------------- /tests/fixtures/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2020 Presidenza del Consiglio dei Ministri. 2 | # Please refer to the AUTHORS file for more information. 3 | # This program is free software: you can redistribute it and/or modify 4 | # it under the terms of the GNU Affero General Public License as 5 | # published by the Free Software Foundation, either version 3 of the 6 | # License, or (at your option) any later version. 7 | # This program is distributed in the hope that it will be useful, 8 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | # GNU Affero General Public License for more details. 11 | # You should have received a copy of the GNU Affero General Public License 12 | # along with this program. If not, see . 13 | -------------------------------------------------------------------------------- /tests/fixtures/batch_file.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2020 Presidenza del Consiglio dei Ministri. 2 | # Please refer to the AUTHORS file for more information. 3 | # This program is free software: you can redistribute it and/or modify 4 | # it under the terms of the GNU Affero General Public License as 5 | # published by the Free Software Foundation, either version 3 of the 6 | # License, or (at your option) any later version. 7 | # This program is distributed in the hope that it will be useful, 8 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | # GNU Affero General Public License for more details. 11 | # You should have received a copy of the GNU Affero General Public License 12 | # along with this program. If not, see . 13 | 14 | import base64 15 | import random 16 | import string 17 | from datetime import datetime, timedelta 18 | from typing import Optional 19 | 20 | import pytest 21 | 22 | from immuni_common.models.enums import TransmissionRiskLevel 23 | from immuni_common.models.mongoengine.batch_file import BatchFile 24 | from immuni_common.models.mongoengine.temporary_exposure_key import TemporaryExposureKey 25 | 26 | 27 | def generate_random_key_data(length: int = 128) -> str: 28 | letters = string.ascii_lowercase + string.ascii_uppercase 29 | return "".join(random.choice(letters) for _ in range(length)) 30 | 31 | 32 | def generate_random_batch( 33 | index: int, num_keys: int, period_start: datetime, period_end: datetime 34 | ) -> None: 35 | rsn = int(datetime.utcnow().timestamp() / 600) 36 | 37 | keys = [ 38 | TemporaryExposureKey( 39 | key_data=generate_random_key_data(), 40 | transmission_risk_level=random.choice([tr for tr in TransmissionRiskLevel]), 41 | rolling_start_number=rsn, 42 | ) 43 | for _ in range(num_keys) 44 | ] 45 | BatchFile( 46 | index=index, keys=keys, period_start=period_start, period_end=period_end, origin="IT" 47 | ).save() 48 | 49 | 50 | def create_random_batches( 51 | num_batches: int, key_per_batch: int = 10, end_date: Optional[datetime] = None 52 | ) -> None: 53 | if end_date is None: 54 | end_date = datetime.utcnow() 55 | start_date = end_date - timedelta(days=num_batches) 56 | for index in range(num_batches): 57 | generate_random_batch( 58 | index=index, 59 | num_keys=key_per_batch, 60 | period_start=start_date + timedelta(days=index), 61 | period_end=start_date + timedelta(days=index + 1), 62 | ) 63 | 64 | 65 | @pytest.fixture() 66 | def batch_file() -> BatchFile: 67 | batch = BatchFile( 68 | index=1, 69 | keys=[ 70 | TemporaryExposureKey( 71 | key_data=base64.b64encode("first_key".encode("utf-8")).decode("utf-8"), 72 | transmission_risk_level=TransmissionRiskLevel.CONFIRMED_TEST_LOW, 73 | rolling_start_number=1, 74 | ), 75 | TemporaryExposureKey( 76 | key_data=base64.b64encode("second_key".encode("utf-8")).decode("utf-8"), 77 | transmission_risk_level=TransmissionRiskLevel.CONFIRMED_TEST_LOW, 78 | rolling_start_number=2, 79 | ), 80 | TemporaryExposureKey( 81 | key_data=base64.b64encode("third_key".encode("utf-8")).decode("utf-8"), 82 | transmission_risk_level=TransmissionRiskLevel.highest, 83 | rolling_start_number=3, 84 | ), 85 | ], 86 | period_start=datetime.utcnow() - timedelta(days=1), 87 | period_end=datetime.utcnow(), 88 | sub_batch_count=2, 89 | sub_batch_index=1, 90 | origin="IT", 91 | client_content=b"this_is_a_zip_file", 92 | ) 93 | batch.save() 94 | return batch 95 | -------------------------------------------------------------------------------- /tests/fixtures/batch_file_eu.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2020 Presidenza del Consiglio dei Ministri. 2 | # Please refer to the AUTHORS file for more information. 3 | # This program is free software: you can redistribute it and/or modify 4 | # it under the terms of the GNU Affero General Public License as 5 | # published by the Free Software Foundation, either version 3 of the 6 | # License, or (at your option) any later version. 7 | # This program is distributed in the hope that it will be useful, 8 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | # GNU Affero General Public License for more details. 11 | # You should have received a copy of the GNU Affero General Public License 12 | # along with this program. If not, see . 13 | 14 | import base64 15 | import random 16 | import string 17 | from datetime import datetime, timedelta 18 | from typing import Optional 19 | 20 | import pytest 21 | 22 | from immuni_common.models.enums import TransmissionRiskLevel 23 | from immuni_common.models.mongoengine.batch_file_eu import BatchFileEu 24 | from immuni_common.models.mongoengine.temporary_exposure_key import TemporaryExposureKey 25 | 26 | _test_countries = ["DK", "DE", "AT", "ES"] 27 | 28 | 29 | def generate_random_key_data_eu(length: int = 128) -> str: 30 | letters = string.ascii_lowercase + string.ascii_uppercase 31 | return "".join(random.choice(letters) for _ in range(length)) 32 | 33 | 34 | def generate_random_batch_eu( 35 | index: int, num_keys: int, period_start: datetime, period_end: datetime, origin: str 36 | ) -> None: 37 | rsn = int(datetime.utcnow().timestamp() / 600) 38 | 39 | keys = [ 40 | TemporaryExposureKey( 41 | key_data=generate_random_key_data_eu(), 42 | transmission_risk_level=random.choice([tr for tr in TransmissionRiskLevel]), 43 | rolling_start_number=rsn, 44 | ) 45 | for _ in range(num_keys) 46 | ] 47 | BatchFileEu( 48 | index=index, keys=keys, period_start=period_start, period_end=period_end, origin=origin 49 | ).save() 50 | 51 | 52 | def create_random_batches_eu( 53 | num_batches: int, key_per_batch: int = 10, end_date: Optional[datetime] = None 54 | ) -> None: 55 | if end_date is None: 56 | end_date = datetime.utcnow() 57 | start_date = end_date - timedelta(days=num_batches) 58 | for index in range(num_batches): 59 | for country in _test_countries: 60 | generate_random_batch_eu( 61 | index=index, 62 | num_keys=key_per_batch, 63 | period_start=start_date + timedelta(days=index), 64 | period_end=start_date + timedelta(days=index + 1), 65 | origin=country, 66 | ) 67 | 68 | 69 | @pytest.fixture() 70 | def batch_file_eu() -> BatchFileEu: 71 | for i in range(len(_test_countries)): 72 | batch_eu = BatchFileEu( 73 | index=1, 74 | keys=[ 75 | TemporaryExposureKey( 76 | key_data=base64.b64encode("first_key".encode("utf-8")).decode("utf-8"), 77 | transmission_risk_level=TransmissionRiskLevel.CONFIRMED_TEST_LOW, 78 | rolling_start_number=1, 79 | ), 80 | TemporaryExposureKey( 81 | key_data=base64.b64encode("second_key".encode("utf-8")).decode("utf-8"), 82 | transmission_risk_level=TransmissionRiskLevel.CONFIRMED_TEST_LOW, 83 | rolling_start_number=2, 84 | ), 85 | TemporaryExposureKey( 86 | key_data=base64.b64encode("third_key".encode("utf-8")).decode("utf-8"), 87 | transmission_risk_level=TransmissionRiskLevel.CONFIRMED_TEST_LOW, 88 | rolling_start_number=3, 89 | ), 90 | ], 91 | period_start=datetime.utcnow() - timedelta(days=1), 92 | period_end=datetime.utcnow(), 93 | sub_batch_count=2, 94 | sub_batch_index=1, 95 | origin=_test_countries[i], 96 | client_content=b"this_is_a_zip_file", 97 | ) 98 | batch_eu.save() 99 | return batch_eu 100 | -------------------------------------------------------------------------------- /tests/fixtures/core.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2020 Presidenza del Consiglio dei Ministri. 2 | # Please refer to the AUTHORS file for more information. 3 | # This program is free software: you can redistribute it and/or modify 4 | # it under the terms of the GNU Affero General Public License as 5 | # published by the Free Software Foundation, either version 3 of the 6 | # License, or (at your option) any later version. 7 | # This program is distributed in the hope that it will be useful, 8 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | # GNU Affero General Public License for more details. 11 | # You should have received a copy of the GNU Affero General Public License 12 | # along with this program. If not, see . 13 | 14 | from asyncio import AbstractEventLoop 15 | from typing import Awaitable, Callable 16 | 17 | from mongoengine import get_db 18 | from pytest import fixture 19 | from pytest_sanic.utils import TestClient 20 | from sanic import Sanic 21 | 22 | from immuni_exposure_reporting.core.managers import managers 23 | 24 | 25 | @fixture(autouse=True) 26 | def cleanup_db(sanic: Sanic) -> None: 27 | managers.exposure_mongo.drop_database(get_db().name) 28 | 29 | 30 | @fixture 31 | async def sanic(monitoring_setup: None) -> Sanic: 32 | from immuni_exposure_reporting.sanic import sanic_app 33 | 34 | await managers.initialize() 35 | yield sanic_app 36 | await managers.teardown() 37 | 38 | 39 | @fixture 40 | async def sanic_custom_client(sanic_client: TestClient) -> TestClient: 41 | yield sanic_client 42 | 43 | 44 | @fixture 45 | def client( 46 | loop: AbstractEventLoop, 47 | sanic: Sanic, 48 | sanic_custom_client: Callable[[Sanic], Awaitable[TestClient]], 49 | ) -> TestClient: 50 | return loop.run_until_complete(sanic_custom_client(sanic)) 51 | -------------------------------------------------------------------------------- /tests/test_batch_index.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2020 Presidenza del Consiglio dei Ministri. 2 | # Please refer to the AUTHORS file for more information. 3 | # This program is free software: you can redistribute it and/or modify 4 | # it under the terms of the GNU Affero General Public License as 5 | # published by the Free Software Foundation, either version 3 of the 6 | # License, or (at your option) any later version. 7 | # This program is distributed in the hope that it will be useful, 8 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | # GNU Affero General Public License for more details. 11 | # You should have received a copy of the GNU Affero General Public License 12 | # along with this program. If not, see . 13 | 14 | from datetime import timedelta 15 | 16 | import pytest 17 | from pytest_sanic.utils import TestClient 18 | 19 | from immuni_common.helpers.tests import mock_config 20 | from immuni_common.models.mongoengine.batch_file import BatchFile 21 | from immuni_exposure_reporting.core import config 22 | from tests.fixtures.batch_file import create_random_batches 23 | 24 | 25 | async def test_index_no_batches(client: TestClient) -> None: 26 | response = await client.get("/v1/keys/index") 27 | assert response.status == 404 28 | 29 | 30 | @mock_config(config, "MANIFEST_CACHE_TIME_IN_MINUTES", timedelta(minutes=30).total_seconds()) 31 | @pytest.mark.parametrize("num_batches, oldest, newest", ((1, 0, 0), (10, 0, 9), (20, 6, 19))) 32 | async def test_index(client: TestClient, num_batches: int, oldest: int, newest: int) -> None: 33 | create_random_batches(num_batches) 34 | 35 | response = await client.get("/v1/keys/index") 36 | assert response.status == 200 37 | assert response.headers["Cache-Control"] == "public, max-age=1800" 38 | 39 | actual = await response.json() 40 | assert actual == {"oldest": oldest, "newest": newest} 41 | 42 | 43 | async def test_batch(client: TestClient, batch_file: BatchFile) -> None: 44 | response = await client.get("/v1/keys/1") 45 | assert response.status == 200 46 | assert response.headers["Cache-Control"] == "public, max-age=1296000" 47 | 48 | assert response.content_type == "application/zip" 49 | 50 | 51 | async def test_batch_not_found(client: TestClient) -> None: 52 | response = await client.get("/v1/keys/1") 53 | assert response.status == 404 54 | assert "Cache-Control" not in response.headers 55 | 56 | 57 | async def test_batch_not_found_v0(client: TestClient) -> None: 58 | response = await client.get("/v0/keys/1") 59 | assert response.status == 404 60 | assert "Cache-Control" not in response.headers 61 | 62 | 63 | @pytest.mark.parametrize("index", ("asd", "none", "12d", "-23", 0, -1, 23456789876543234567898765)) 64 | async def test_batch_weird_characters(client: TestClient, index: str) -> None: 65 | response = await client.get(f"/v1/keys/{index}") 66 | assert response.status == 400 67 | 68 | content = await response.json() 69 | assert content["message"] == "Request not compliant with the defined schema." 70 | -------------------------------------------------------------------------------- /tests/test_batch_index_eu.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2020 Presidenza del Consiglio dei Ministri. 2 | # Please refer to the AUTHORS file for more information. 3 | # This program is free software: you can redistribute it and/or modify 4 | # it under the terms of the GNU Affero General Public License as 5 | # published by the Free Software Foundation, either version 3 of the 6 | # License, or (at your option) any later version. 7 | # This program is distributed in the hope that it will be useful, 8 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | # GNU Affero General Public License for more details. 11 | # You should have received a copy of the GNU Affero General Public License 12 | # along with this program. If not, see . 13 | 14 | from datetime import timedelta 15 | 16 | import pytest 17 | from pytest_sanic.utils import TestClient 18 | 19 | from immuni_common.helpers.tests import mock_config 20 | from immuni_common.models.mongoengine.batch_file_eu import BatchFileEu 21 | from immuni_exposure_reporting.core import config 22 | from tests.fixtures.batch_file_eu import create_random_batches_eu 23 | 24 | 25 | async def test_index_no_batches_eu(client: TestClient) -> None: 26 | response = await client.get("/v1/keys/eu/DK/index") 27 | assert response.status == 404 28 | 29 | 30 | @mock_config(config, "MANIFEST_CACHE_TIME_IN_MINUTES", timedelta(minutes=30).total_seconds()) 31 | @pytest.mark.parametrize("num_batches, oldest, newest", ((1, 0, 0), (10, 0, 9), (20, 6, 19))) 32 | @pytest.mark.parametrize("country", ("DK", "DE", "AT", "ES")) 33 | async def test_index_eu( 34 | client: TestClient, num_batches: int, oldest: int, newest: int, country: str 35 | ) -> None: 36 | create_random_batches_eu(num_batches) 37 | 38 | response = await client.get(f"/v1/keys/eu/{country}/index") 39 | assert response.status == 200 40 | assert response.headers["Cache-Control"] == "public, max-age=1800" 41 | 42 | actual = await response.json() 43 | assert actual == {"oldest": oldest, "newest": newest} 44 | 45 | 46 | @pytest.mark.parametrize("country", ("DK", "DE", "AT", "ES")) 47 | async def test_batch_eu(client: TestClient, batch_file_eu: BatchFileEu, country: str) -> None: 48 | response = await client.get(f"/v1/keys/eu/{country}/1") 49 | assert response.status == 200 50 | assert response.headers["Cache-Control"] == "public, max-age=1296000" 51 | 52 | assert response.content_type == "application/zip" 53 | 54 | 55 | @pytest.mark.parametrize("country", ("DK", "DE", "AT", "ES")) 56 | async def test_batch_eu_not_found(client: TestClient, country: str) -> None: 57 | response = await client.get(f"/v1/keys/eu/{country}/1") 58 | assert response.status == 404 59 | assert "Cache-Control" not in response.headers 60 | 61 | 62 | @pytest.mark.parametrize("country", ("DK", "DE", "AT", "ES")) 63 | async def test_batch_eu_not_found_v0(client: TestClient, country: str) -> None: 64 | response = await client.get(f"/v0/keys/eu/{country}/1") 65 | assert response.status == 404 66 | assert "Cache-Control" not in response.headers 67 | 68 | 69 | @pytest.mark.parametrize("index", ("asd", "none", "12d", "-23", 0, -1, 23456789876543234567898765)) 70 | @pytest.mark.parametrize("country", ("DK", "DE", "AT", "ES")) 71 | async def test_batch_eu_index_weird_characters( 72 | client: TestClient, index: str, country: str 73 | ) -> None: 74 | response = await client.get(f"/v1/keys/eu/{country}/{index}") 75 | assert response.status == 400 76 | 77 | content = await response.json() 78 | assert content["message"] == "Request not compliant with the defined schema." 79 | 80 | 81 | @pytest.mark.parametrize("country", ("ITA", "none", "DENMARK", "-23", "it", "It")) 82 | async def test_batch_eu_country_weird_characters(client: TestClient, country: str) -> None: 83 | response = await client.get(f"/v1/keys/eu/{country}/1") 84 | assert response.status == 400 85 | 86 | content = await response.json() 87 | assert content["message"] == "Request not compliant with the defined schema." 88 | -------------------------------------------------------------------------------- /tests/test_managers.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2020 Presidenza del Consiglio dei Ministri. 2 | # Please refer to the AUTHORS file for more information. 3 | # This program is free software: you can redistribute it and/or modify 4 | # it under the terms of the GNU Affero General Public License as 5 | # published by the Free Software Foundation, either version 3 of the 6 | # License, or (at your option) any later version. 7 | # This program is distributed in the hope that it will be useful, 8 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | # GNU Affero General Public License for more details. 11 | # You should have received a copy of the GNU Affero General Public License 12 | # along with this program. If not, see . 13 | 14 | from unittest.mock import PropertyMock, patch 15 | 16 | from pytest import raises 17 | 18 | from immuni_common.core.exceptions import ImmuniException 19 | from immuni_exposure_reporting.core.managers import Managers, managers 20 | 21 | 22 | def test_otp_failure() -> None: 23 | with patch.object(Managers, "_exposure_mongo", new_callable=PropertyMock) as mock: 24 | mock.return_value = None 25 | with raises(ImmuniException): 26 | managers.exposure_mongo 27 | 28 | 29 | async def test_teardown_on_uninitialized() -> None: 30 | uninitialized_managers = Managers() 31 | await uninitialized_managers.teardown() 32 | --------------------------------------------------------------------------------