{"id":37070353,"url":"https://github.com/tim2anna/pytest-upload-report","last_synced_at":"2026-01-14T08:12:31.177Z","repository":{"id":62584243,"uuid":"377994548","full_name":"tim2anna/pytest-upload-report","owner":"tim2anna","description":"pytest-upload-report is a plugin for pytest that upload your test report for test results.","archived":false,"fork":false,"pushed_at":"2021-06-18T07:19:12.000Z","size":21,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-19T16:18:34.782Z","etag":null,"topics":["allure","allure-report","pytest","pytest-html","pytest-plugin"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tim2anna.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-18T00:41:10.000Z","updated_at":"2022-06-30T03:47:32.000Z","dependencies_parsed_at":"2022-11-03T21:48:46.733Z","dependency_job_id":null,"html_url":"https://github.com/tim2anna/pytest-upload-report","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tim2anna/pytest-upload-report","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim2anna%2Fpytest-upload-report","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim2anna%2Fpytest-upload-report/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim2anna%2Fpytest-upload-report/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim2anna%2Fpytest-upload-report/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tim2anna","download_url":"https://codeload.github.com/tim2anna/pytest-upload-report/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim2anna%2Fpytest-upload-report/sbom","scorecard":{"id":885507,"data":{"date":"2025-08-11","repo":{"name":"github.com/tim2anna/pytest-upload-report","commit":"479b1fc288c0ccba4c0f7ed8ca5075fd86225a8f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/7 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2023-74 / GHSA-j8r2-6x86-q33q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T09:52:35.753Z","repository_id":62584243,"created_at":"2025-08-24T09:52:35.753Z","updated_at":"2025-08-24T09:52:35.753Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28413625,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["allure","allure-report","pytest","pytest-html","pytest-plugin"],"created_at":"2026-01-14T08:12:30.650Z","updated_at":"2026-01-14T08:12:31.165Z","avatar_url":"https://github.com/tim2anna.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"====================\npytest-upload-report\n====================\n\n.. image:: https://img.shields.io/pypi/v/pytest-upload-report.svg\n    :target: https://pypi.org/project/pytest-upload-report\n    :alt: PyPI version\n\n.. image:: https://img.shields.io/pypi/pyversions/pytest-upload-report.svg\n    :target: https://pypi.org/project/pytest-upload-report\n    :alt: Python versions\n\n.. image:: https://travis-ci.org/tim2anna/pytest-upload-report.svg?branch=master\n    :target: https://travis-ci.org/tim2anna/pytest-upload-report\n    :alt: See Build Status on Travis CI\n\n.. image:: https://ci.appveyor.com/api/projects/status/github/tim2anna/pytest-upload-report?branch=master\n    :target: https://ci.appveyor.com/project/tim2anna/pytest-upload-report/branch/master\n    :alt: See Build Status on AppVeyor\n\n\nEnglish | `简体中文 \u003cdocs/index.zh.md\u003e`_\n\n\npytest-upload-report is a plugin for `pytest`_ that upload your test report for test results.\n\n\nFeatures\n--------\n\n* Upload report for allure-pytest.\n* Upload report for pytest-html.\n\n\nRequirements\n------------\n\n* Python \u003e= 3.7\n* pytest\n* requests\n* allure-pytest, if you use allure report.\n* pytest-html, if you use html report.\n\n\nInstallation\n------------\n\nYou can install \"pytest-upload-report\" via `pip`_ from `PyPI`_::\n\n    $ pip install pytest-upload-report\n\n\nUsage\n-----\n\nA simple example\n^^^^^^^^^^^^^^^^\n\nDirectly upload report files  to server by upload_url.\n\nOn the command line, add `upload_url` option when run `pytest` command::\n\n    pytest --alluredir=/tmp/my_allure_results --upload_url=http://127.0.0.1:8000/upload\n\n\nA complete example\n^^^^^^^^^^^^^^^^^^^\n\nNow let us demonstrate how to use in a vaguely real world scenario.\n\n\nFirst, you must have a upload api on server, an example for fastapi::\n\n    from fastapi import APIRouter, UploadFile, File, Header\n\n    router = APIRouter(prefix='/api/script', tags=['script'])\n\n    @router.post(\"/reports/upload\")\n    async def report_upload_by_api(\n        project_id: int,\n        timestamp: int,\n        username: str,\n        sign: str = Header(...),\n        files: List[UploadFile] = File(...),\n    ):\n        ...\n        return 'ok'\n\n\nSecond, edit your conftest.py file, add `pytest_send_upload_request` hook::\n\n    import pytest\n\n    @pytest.hookimpl(tryfirst=True)\n    def pytest_send_upload_request(upload_url, files, config):\n        from pytest_upload_report.upload_client import SignUploadClient\n        client = SignUploadClient(upload_url, files)\n        client.send_request(config)\n        return True\n\nThe other hooks will be blocked from executing, when then hook return `True`.\nIf you want to upload multiple places, don't write any return.\n\n\nThird, edit pytest.init on you test project root dir::\n\n    [pytest]\n    addopts = --alluredir=/tmp/my_allure_results --upload_url=http://127.0.0.1:8000/api/script/reports/upload --upload_project_id=4 --upload_username=admin --upload_secret=8FB6CFB4C8CF11EBB523DCA9048E18C3\n\n\nFinally, run pytest command on you test project root dir::\n\n    $ pytest\n\n\nAlso, you can view source code in the example directory.\n\n\nHow to Customize\n^^^^^^^^^^^^^^^^^\n\nIf the above does not meet your needs, you can customize request client.\n\n\n\nContributing\n------------\nContributions are very welcome. Tests can be run with `tox`_, please ensure\nthe coverage at least stays the same before you submit a pull request.\n\nLicense\n-------\n\nDistributed under the terms of the `MIT`_ license, \"pytest-upload-report\" is free and open source software\n\n\nIssues\n------\n\nIf you encounter any problems, please `file an issue`_ along with a detailed description.\n\n.. _`Cookiecutter`: https://github.com/audreyr/cookiecutter\n.. _`@hackebrot`: https://github.com/hackebrot\n.. _`MIT`: http://opensource.org/licenses/MIT\n.. _`BSD-3`: http://opensource.org/licenses/BSD-3-Clause\n.. _`GNU GPL v3.0`: http://www.gnu.org/licenses/gpl-3.0.txt\n.. _`Apache Software License 2.0`: http://www.apache.org/licenses/LICENSE-2.0\n.. _`cookiecutter-pytest-plugin`: https://github.com/pytest-dev/cookiecutter-pytest-plugin\n.. _`file an issue`: https://github.com/tim2anna/pytest-upload-report/issues\n.. _`pytest`: https://github.com/pytest-dev/pytest\n.. _`tox`: https://tox.readthedocs.io/en/latest/\n.. _`pip`: https://pypi.org/project/pip/\n.. _`PyPI`: https://pypi.org/project\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftim2anna%2Fpytest-upload-report","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftim2anna%2Fpytest-upload-report","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftim2anna%2Fpytest-upload-report/lists"}