{"id":18547733,"url":"https://github.com/johnramsden/pyzfscmds","last_synced_at":"2025-04-09T21:31:55.088Z","repository":{"id":102820918,"uuid":"117628808","full_name":"johnramsden/pyzfscmds","owner":"johnramsden","description":"ZFS CLI wrapper library","archived":false,"fork":false,"pushed_at":"2019-07-21T05:55:25.000Z","size":192,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T06:37:23.993Z","etag":null,"topics":["freebsd","linux","python","zfs","zfsonlinux"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johnramsden.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-16T03:54:58.000Z","updated_at":"2023-05-11T02:57:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"5a34d1df-f47b-4bf7-bdb4-6c1f38bc9644","html_url":"https://github.com/johnramsden/pyzfscmds","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnramsden%2Fpyzfscmds","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnramsden%2Fpyzfscmds/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnramsden%2Fpyzfscmds/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnramsden%2Fpyzfscmds/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnramsden","download_url":"https://codeload.github.com/johnramsden/pyzfscmds/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248114752,"owners_count":21050104,"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":["freebsd","linux","python","zfs","zfsonlinux"],"created_at":"2024-11-06T20:30:57.916Z","updated_at":"2025-04-09T21:31:55.081Z","avatar_url":"https://github.com/johnramsden.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"pyzfscmds\n==========\n\n.. image:: https://travis-ci.com/johnramsden/pyzfscmds.svg?token=4X1vWwTyHTHCUwBTudyN\u0026branch=release/v0.1.0\n    :target: https://travis-ci.com/johnramsden/pyzfscmds\n\nZFS CLI Function Wrapper\n\nRequirements\n------------\n\n``pyzfscmds`` requires python 3.6+, and ZFS.\n\nInstalling\n----------\n\n``pyzfscmds`` can be installed by cloning the repo, and running the ``setup.py`` script.\n\n.. code:: shell\n\n    $ git clone https://github.com/johnramsden/pyzfscmds\n    $ cd pyzfscmds\n    $ python setup.py install\n\nTesting\n-------\n\nTo test, run ``pytest`` on the ``tests`` directory.\n\nThe following settings should be set:\n\n- ``--unsafe`` - If used, more dangerous commands such as destroy will be run, otherwise they will be skipped.\n- ``--zpool=\"${TEST_POOL}\"``\n- ``--test-dataset=\"${PYTEST_DATASET}\"``\n- ``--root-dataset=\"${TEST_POOL}/${TEST_ROOT}\"``\n- ``--zpool-root-mountpoint=\"${ZPOOL_MOUNTPOINT}/root\"``\n\nTo test coverage, run ``pytest`` with the ``pytest-cov`` plugin.\nTo test pep8, run ``pytest`` with the ``pytest-pep8`` plugin.\n\nTesting all at once:\n\n.. code:: shell\n\n    $ pytest --pep8 --cov=pyzfscmds tests \\\n                            --unsafe \\\n                            --zpool=\"${TEST_POOL}\" \\\n                            --test-dataset=\"${PYTEST_DATASET}\" \\\n                            --root-dataset=\"${TEST_POOL}/ROOT/default\" \\\n                            --zpool-root-mountpoint=\"${ZPOOL_MOUNTPOINT}/root\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnramsden%2Fpyzfscmds","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnramsden%2Fpyzfscmds","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnramsden%2Fpyzfscmds/lists"}