{"id":22954051,"url":"https://gitlab.com/nobodyinperson/python3-openrepos-webclient","last_synced_at":"2025-08-13T01:33:40.280Z","repository":{"id":57449192,"uuid":"15312027","full_name":"nobodyinperson/python3-openrepos-webclient","owner":"nobodyinperson","description":"OpenRepos web client - automate creating apps and uploading RPMs at OpenRepos.net","archived":false,"fork":false,"pushed_at":null,"size":null,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":null,"default_branch":"master","last_synced_at":"2024-11-13T16:09:28.356Z","etag":null,"topics":["firefox","python","python3","rpm","sailfishos","selenium","upload"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://gitlab.com/uploads/-/system/project/avatar/15312027/openrepos_beta.png.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-12T19:31:45.657Z","updated_at":"2023-06-15T07:39:13.686Z","dependencies_parsed_at":"2022-09-06T04:02:19.157Z","dependency_job_id":null,"html_url":"https://gitlab.com/nobodyinperson/python3-openrepos-webclient","commit_stats":null,"previous_names":[],"tags_count":8,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories/nobodyinperson%2Fpython3-openrepos-webclient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories/nobodyinperson%2Fpython3-openrepos-webclient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories/nobodyinperson%2Fpython3-openrepos-webclient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories/nobodyinperson%2Fpython3-openrepos-webclient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/owners/nobodyinperson","download_url":"https://gitlab.com/nobodyinperson/python3-openrepos-webclient/-/archive/master/python3-openrepos-webclient-master.zip","host":{"name":"gitlab.com","url":"https://gitlab.com","kind":"gitlab","repositories_count":4516454,"owners_count":6591,"icon_url":"https://github.com/gitlab.png","version":null,"created_at":"2022-05-30T11:31:42.605Z","updated_at":"2024-07-18T11:24:13.055Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/owners"}},"keywords":["firefox","python","python3","rpm","sailfishos","selenium","upload"],"created_at":"2024-12-14T16:14:52.548Z","updated_at":"2024-12-14T16:14:53.030Z","avatar_url":"https://gitlab.com/uploads/-/system/project/avatar/15312027/openrepos_beta.png.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenRepos.net Web Client\n\n[![pipeline status](https://gitlab.com/nobodyinperson/python3-openrepos-webclient/badges/master/pipeline.svg)](https://gitlab.com/nobodyinperson/python3-openrepos/commits/master)\n[![coverage report](https://gitlab.com/nobodyinperson/python3-openrepos-webclient/badges/master/coverage.svg)](https://nobodyinperson.gitlab.io/python3-openrepos-webclient/coverage-report/)\n[![documentation](https://img.shields.io/badge/docs-sphinx-brightgreen.svg)](https://nobodyinperson.gitlab.io/python3-openrepos-webclient)\n[![PyPI](https://badge.fury.io/py/openrepos-webclient.svg)](https://badge.fury.io/py/openrepos-webclient)\n\n`openrepos-webclient` is a Python package to interface the OpenRepos.net\nwebsite in an automated way.\n\n## Installation\n\nTo install, run from the repository root:\n\n```bash\npython3 -m pip install --user .\n```\n\nor install it from [PyPi](https://pypi.org/project/openrepos):\n\n```bash\npython3 -m pip install --user openrepos\n```\n\n\u003e (Run `sudo apt-get update \u0026\u0026 sudo apt-get -y install python3-pip \u0026\u0026 pip3 install --user -U pip` if it\ncomplains about `pip` not being found)\n\nYou will also need to install at least one [`selenium`](https://selenium-python.readthedocs.io/)-compatible browser with webdriver, for example [Firefox](https://www.mozilla.org/de/firefox/new/) together with [`geckodriver`](https://github.com/mozilla/geckodriver).\n\nIf you want to run `openrepos` headlessly, you will also need [`Xvfb`](https://en.wikipedia.org/wiki/Xvfb).\n\n## What can `openrepos` do?\n\n\u003e #### OpenRepos Credentials\n\u003e\n\u003e Define your [OpenRepos.net](https://openrepos.net) login credentials as environment variables.\n\u003e You can either run this in each terminal session once before running the `openrepos` command:\n\u003e\n\u003e ```bash\n\u003e export OPENREPOS_USERNAME=myuser OPENREPOS_PASSWORD=mypass\n\u003e ```\n\u003e\n\u003e ... or you can put the above in a file (say `openrepos-credentials.sh`) and then `source` this file, which is safer as you don't specify any credentials on the command-line:\n\u003e\n\u003e ```bash\n\u003e source openrepos-credentials.sh\n\u003e ```\n\u003e\n\u003e #### Executing\n\u003e\n\u003e If running just `openrepos` errors out with something like `command not found`, then just run `python3 -m openrepos` instead.\n\n### Create a new app\n\nThis command creates a new SailfishOS app `TestApp` in the `Libraries` category.\n\n```bash\nopenrepos -i new-app -n TestApp -p SailfishOS -c Libraries\n```\n\n### Upload RPMs to an app\n\nThis command uploads all RPMs in the current directory to an app on OpenRepos called `TestApp`:\n\n```bash\nopenrepos upload-rpm -n TestApp *.rpm\n```\n\nIf you want to create the app if it doesn't exist yet, you have to provide the same metadata as above for `new-app`:\n\n```bash\nopenrepos upload-rpm -n TestApp -p SailfishOS -c Libraries *.rpm\n```\n\n### Delete an App\n\nThis delete a `TestApp`:\n\n```bash\nopenrepos delete-app -n TestApp\n```\n\n## Using this to automate uploading RPMs to OpenRepos in GitLab CI\n\nThis package was designed to automate RPM upload to [OpenRepos.net](https://openrepos.net).\nTo do that in GitLab CI, you can `include` the file [`openrepos-upload-rpm.gitlab-ci.yml`](https://gitlab.com/nobodyinperson/python3-openrepos-webclient/-/blob/master/openrepos-upload-rpm.gitlab-ci.yml) from this repository in your CI config.\nThe file contains an example of how to do that.\n\n## Troubleshooting\n\nIf you experience problems and want to debug them, you can run `openrepos` interactively (`--interacitve`) and verbosely (`-vvv`):\n\n```bash\nopenrepos --interactive -vvv upload-rpm ...\n```\n\nThis will ask you before every step and tell you what's going on.\n\nTo run without opening the browser window (like in CI), run it with `--xvfb`:\n\n```bash\nopenrepos --xvfb --interactive -vvv upload-rpm ...\n```\n\n\n## Documentation\n\nDocumentation of the `openrepos` package can be found [here on\nGitLab](https://nobodyinperson.gitlab.io/python3-openrepos/).\n\nAlso, the command-line help page `openrepos -h` is your friend.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/gitlab.com%2Fnobodyinperson%2Fpython3-openrepos-webclient","html_url":"https://awesome.ecosyste.ms/projects/gitlab.com%2Fnobodyinperson%2Fpython3-openrepos-webclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/gitlab.com%2Fnobodyinperson%2Fpython3-openrepos-webclient/lists"}