{"id":15510372,"url":"https://github.com/ananace/pulp_nupkg","last_synced_at":"2025-02-24T05:11:53.086Z","repository":{"id":143078707,"uuid":"121116541","full_name":"ananace/pulp_nupkg","owner":"ananace","description":"NuPkg plugin for Pulp 3","archived":false,"fork":false,"pushed_at":"2018-02-11T11:30:04.000Z","size":14,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-06T04:41:37.063Z","etag":null,"topics":["nupkg","pulp","pulpcore"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ananace.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-02-11T11:26:54.000Z","updated_at":"2022-11-22T06:10:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"fdb00a85-78a4-4d6b-b536-e26bc092889e","html_url":"https://github.com/ananace/pulp_nupkg","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ananace%2Fpulp_nupkg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ananace%2Fpulp_nupkg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ananace%2Fpulp_nupkg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ananace%2Fpulp_nupkg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ananace","download_url":"https://codeload.github.com/ananace/pulp_nupkg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240420982,"owners_count":19798502,"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":["nupkg","pulp","pulpcore"],"created_at":"2024-10-02T09:48:05.912Z","updated_at":"2025-02-24T05:11:53.043Z","avatar_url":"https://github.com/ananace.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Template to create your own plugin\n==================================\n\nThis is the ``plugin_template`` repository to help plugin writers\nget started and write their own plugin for `Pulp Project\n3.0+ \u003chttps://pypi.python.org/pypi/pulpcore/\u003e`__.\n\nClone this repository and run the provided ``rename.py`` script to create\na skeleton for your plugin with the name of your choice. It will contain\n``setup.py``, expected plugin layout and stubs for necessary classes and methods.\n\n``$ git clone https://github.com/pulp/plugin_template.git``\n\n``$ cd plugin_template``\n\n``$ ./rename.py your_plugin_name``\n\nCheck `Plugin Writer's Guide \u003chttp://docs.pulpproject.org/en/3.0/nightly/plugins/plugin-writer/index.html\u003e`__\nfor more details and suggestions on plugin implementaion.\n\nBelow are some ideas for how to document your plugin.\n\n\nAll REST API examples below use `httpie \u003chttps://httpie.org/doc\u003e`__ to\nperform the requests.\n\nThis documentation makes use of the `jq library \u003chttps://stedolan.github.io/jq/\u003e`_\nto parse the json received from requests, in order to get the unique urls generated\nwhen objects are created. To follow this documentation as-is please install the jq\nlibrary with:\n\n``$ sudo dnf install jq``\n\nInstall ``pulpcore``\n--------------------\n\nFollow the `installation\ninstructions \u003cdocs.pulpproject.org/en/3.0/nightly/installation/instructions.html\u003e`__\nprovided with pulpcore.\n\nInstall plugin\n--------------\n\nFrom source\n~~~~~~~~~~~\n\nDefine installation steps here.\n\nInstall from PyPI\n~~~~~~~~~~~~~~~~~\n\nDefine installation steps here.\n\n\nCreate a repository ``foo``\n---------------------------\n\n``$ http POST http://localhost:8000/api/v3/repositories/ name=foo``\n\n``$ export REPO_HREF=$(http :8000/api/v3/repositories/ | jq -r '.results[] | select(.name == \"foo\") | ._href')``\n\nAdd an Importer to repository ``foo``\n-------------------------------------\n\nAdd important details about your Importer and provide examples.\n\n``$ http POST http://localhost:8000/api/v3/importers/nupkg/ some=params repository=$REPO_HREF``\n\n.. code:: json\n\n    {\n        \"_href\": \"http://localhost:8000/api/v3/importers/nupkg/$UUID/\",\n        ...\n    }\n\n``$ export IMPORTER_HREF=$(http :8000/api/v3/importers/nupkg/ | jq -r '.results[] | select(.name == \"bar\") | ._href')``\n\n\nSync repository ``foo`` using Importer ``bar``\n----------------------------------------------\n\nUse ``nupkg`` Importer:\n\n``$ http POST $IMPORTER_HREF'sync/'``\n\n\nAdd a Publisher to repository ``foo``\n-------------------------------------\n\n``$ http POST http://localhost:8000/api/v3/publishers/nupkg/ name=bar repository=$REPO_HREF``\n\n.. code:: json\n\n    {\n        \"_href\": \"http://localhost:8000/api/v3/publishers/nupkg/$UUID/\",\n        ...\n    }\n\n``$ export PUBLISHER_HREF=$(http :8000/api/v3/publishers/file/ | jq -r '.results[] | select(.name == \"bar\") | ._href')``\n\n\nCreate a Publication using Publisher ``bar``\n--------------------------------------------\n\n``$ http POST http://localhost:8000/api/v3/publications/ publisher=$PUBLISHER_HREF``\n\n.. code:: json\n\n    [\n        {\n            \"_href\": \"http://localhost:8000/api/v3/tasks/fd4cbecd-6c6a-4197-9cbe-4e45b0516309/\",\n            \"task_id\": \"fd4cbecd-6c6a-4197-9cbe-4e45b0516309\"\n        }\n    ]\n\n``$ export PUBLICATION_HREF=$(http :8000/api/v3/publications/ | jq -r --arg PUBLISHER_HREF \"$PUBLISHER_HREF\" '.results[] | select(.publisher==$PUBLISHER_HREF) | ._href')``\n\nAdd a Distribution to Publisher ``bar``\n---------------------------------------\n\n``$ http POST http://localhost:8000/api/v3/distributions/ name='baz' publisher=$PUBLISHER_HREF publication=$PUBLICATION_HREF``\n\n\nCheck status of a task\n----------------------\n\n``$ http GET http://localhost:8000/api/v3/tasks/82e64412-47f8-4dd4-aa55-9de89a6c549b/``\n\nDownload ``foo.tar.gz`` from Pulp\n---------------------------------\n\n``$ http GET http://localhost:8000/content/foo/foo.tar.gz``\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fananace%2Fpulp_nupkg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fananace%2Fpulp_nupkg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fananace%2Fpulp_nupkg/lists"}