{"id":15761694,"url":"https://github.com/oz123/pytest-localftpserver","last_synced_at":"2025-04-07T13:08:51.902Z","repository":{"id":41281104,"uuid":"76077577","full_name":"oz123/pytest-localftpserver","owner":"oz123","description":"A PyTest  plugin  which gives you a local ftp server for your tests","archived":false,"fork":false,"pushed_at":"2024-10-17T14:17:59.000Z","size":266,"stargazers_count":17,"open_issues_count":11,"forks_count":9,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-19T20:35:35.417Z","etag":null,"topics":["ftp","pytest","pytest-plugin","python","testing"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oz123.png","metadata":{"files":{"readme":"README.rst","changelog":"HISTORY.rst","contributing":"CONTRIBUTING.rst","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.rst","dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"oz123"}},"created_at":"2016-12-09T23:20:05.000Z","updated_at":"2024-10-04T07:16:43.000Z","dependencies_parsed_at":"2023-10-02T01:49:57.420Z","dependency_job_id":"dec7fe83-05ba-47bb-95fa-52d0563f4929","html_url":"https://github.com/oz123/pytest-localftpserver","commit_stats":{"total_commits":324,"total_committers":12,"mean_commits":27.0,"dds":0.6481481481481481,"last_synced_commit":"eb7229a4bccb8d8aefdec9d3d2d6a725654a5289"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oz123%2Fpytest-localftpserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oz123%2Fpytest-localftpserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oz123%2Fpytest-localftpserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oz123%2Fpytest-localftpserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oz123","download_url":"https://codeload.github.com/oz123/pytest-localftpserver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247657281,"owners_count":20974345,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["ftp","pytest","pytest-plugin","python","testing"],"created_at":"2024-10-04T11:03:33.502Z","updated_at":"2025-04-07T13:08:51.871Z","avatar_url":"https://github.com/oz123.png","language":"Python","funding_links":["https://github.com/sponsors/oz123"],"categories":[],"sub_categories":[],"readme":"PyTest FTP Server\n=================\n\n\n.. image:: https://img.shields.io/pypi/v/pytest_localftpserver.svg\n        :target:  https://pypi.org/project/pytest-localftpserver/\n\n.. image:: https://camo.githubusercontent.com/89b9f56d30241e30f546daf9f43653f08e920f16/68747470733a2f2f696d672e736869656c64732e696f2f636f6e64612f766e2f636f6e64612d666f7267652f7079746573742d6c6f63616c6674707365727665722e737667\n        :target:  https://anaconda.org/conda-forge/pytest-localftpserver\n\n.. image:: https://img.shields.io/pypi/pyversions/pytest_localftpserver.svg\n    :target: https://pypi.org/project/pytest/\n\n.. image:: https://github.com/oz123/pytest-localftpserver/workflows/Tests/badge.svg\n        :target: https://github.com/oz123/pytest-localftpserver/actions?query=workflow%3ATests\n\n.. image:: https://readthedocs.org/projects/pytest-localftpserver/badge/?version=latest\n        :target: https://pytest-localftpserver.readthedocs.io/en/latest/?badge=latest\n        :alt: Documentation Status\n\n.. image:: https://coveralls.io/repos/github/oz123/pytest-localftpserver/badge.svg\n        :target: https://coveralls.io/github/oz123/pytest-localftpserver\n        :alt: Coverage\n\n\nA PyTest plugin which provides an FTP fixture for your tests\n\n\n* Free software: MIT license\n* Documentation: https://pytest-localftpserver.readthedocs.io/en/latest/index.html\n\nAttention!\n----------\n\nAs of version ``1.0.0`` the support for python 2.7 and 3.4 was dropped.\nIf you need to support those versions you should pin the version to ``0.6.0``,\ni.e. add the following lines to your \"requirements_dev.txt\"::\n\n        # pytest_localftpserver==0.6.0\n        https://github.com/oz123/pytest-localftpserver/archive/v0.6.0.zip\n\n\nUsage Quickstart:\n-----------------\n\nThis Plugin provides the fixtures ``ftpserver`` and ``ftpserver_TLS``,\nwhich are threaded instances of a FTP server, with which you can upload files and test FTP\nfunctionality. It can be configured using the following environment variables:\n\n=====================   =============================================================================\nEnvironment variable    Usage\n=====================   =============================================================================\n``FTP_USER``            Username of the registered user.\n``FTP_PASS``            Password of the registered user.\n``FTP_PORT``            Port for the normal ftp server to run on.\n``FTP_HOME``            Home folder (host system) of the registered user.\n``FTP_FIXTURE_SCOPE``   Scope/lifetime of the fixture.\n``FTP_PORT_TLS``        Port for the TLS ftp server to run on.\n``FTP_HOME_TLS``        Home folder (host system) of the registered user, used by the TLS ftp server.\n``FTP_CERTFILE``        Certificate (host system) to be used by the TLS ftp server.\n=====================   =============================================================================\n\n\nSee the `tests directory \u003chttps://github.com/oz123/pytest-localftpserver/tree/master/tests\u003e`_\nor the\n`documentation \u003chttps://pytest-localftpserver.readthedocs.io/en/latest/usage.html\u003e`_\nfor examples.\n\nYou can either set environment variables on a system level or use tools such as\n`pytest-env \u003chttps://pypi.org/project/pytest-env/\u003e`_ or\n`tox \u003chttps://pypi.org/project/tox/\u003e`_, to change the default settings of this plugin.\nSample config for pytest-cov::\n\n    $ cat pytest.ini\n    [pytest]\n    env =\n        FTP_USER=benz\n        FTP_PASS=erni1\n        FTP_HOME = /home/ftp_test\n        FTP_PORT=31175\n        FTP_FIXTURE_SCOPE=function\n        # only affects ftpserver_TLS\n        FTP_PORT_TLS = 31176\n        FTP_HOME_TLS = /home/ftp_test_TLS\n        FTP_CERTFILE = ./tests/test_keycert.pem\n\n\nSample config for Tox::\n\n    $ cat tox.ini\n    [tox]\n    envlist = py{36,37,38,39,310}\n\n    [testenv]\n    setenv =\n        FTP_USER=benz\n        FTP_PASS=erni1\n        FTP_HOME = {envtmpdir}\n        FTP_PORT=31175\n        FTP_FIXTURE_SCOPE=function\n        # only affects ftpserver_TLS\n        FTP_PORT_TLS = 31176\n        FTP_HOME_TLS = /home/ftp_test_TLS\n        FTP_CERTFILE = {toxinidir}/tests/test_keycert.pem\n    commands =\n        pytest tests\n\nCredits\n-------\n\nThis package was inspired by,  https://pypi.org/project/pytest-localserver/\nmade by Sebastian Rahlf, which lacks an FTP server.\n\nThis package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.\n\n.. _Cookiecutter: https://github.com/cookiecutter/cookiecutter\n.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foz123%2Fpytest-localftpserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foz123%2Fpytest-localftpserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foz123%2Fpytest-localftpserver/lists"}