{"id":19839415,"url":"https://github.com/scientifichackers/eopkg3p","last_synced_at":"2025-05-01T19:30:19.999Z","repository":{"id":50199404,"uuid":"156122492","full_name":"scientifichackers/eopkg3p","owner":"scientifichackers","description":"CLI and python API for the Solus 3rd party packages","archived":false,"fork":false,"pushed_at":"2022-12-08T06:37:54.000Z","size":175,"stargazers_count":21,"open_issues_count":6,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-06T17:03:52.260Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scientifichackers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-04T20:35:50.000Z","updated_at":"2024-11-22T15:38:45.000Z","dependencies_parsed_at":"2023-01-24T16:30:29.343Z","dependency_job_id":null,"html_url":"https://github.com/scientifichackers/eopkg3p","commit_stats":null,"previous_names":["pycampers/eopkg3p"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scientifichackers%2Feopkg3p","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scientifichackers%2Feopkg3p/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scientifichackers%2Feopkg3p/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scientifichackers%2Feopkg3p/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scientifichackers","download_url":"https://codeload.github.com/scientifichackers/eopkg3p/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251174645,"owners_count":21547561,"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":[],"created_at":"2024-11-12T12:22:20.134Z","updated_at":"2025-05-01T19:30:19.619Z","avatar_url":"https://github.com/scientifichackers.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eopkg3p\n\n**A drop-in replacement for `eopkg` that supports Solus 3rd party packages!**\n\nAlso ships with a Python API, as a bonus.\n\n## Install\n\nJust download, make executable and run!\n\n```\n$ wget https://github.com/pycampers/eopkg3p/releases/download/v0.0.6/eopkg3p\n$ chmod +x ./eopkg3p\n$ ./eopkg3p\n```\n\n[Releases](https://github.com/pycampers/eopkg3p/releases)\n\n---\n\nOr, install using `pip`\n\n```\n$ pip3 install eopkg3p\n```\n\nPython 3.6+ only    \nMIT Lisence\n\n## Dependenices\n\n- `python3.6`\n- `git`\n- `eopkg`\n- `pkexec`\n\n\n## Usage\n\nIf you know `eopkg`, you _already_ know `eopkg3p`.\n\n```\n$ eopkg3p \nUsage: eopkg3p [OPTIONS] COMMAND [ARGS]...\n\nOptions:\n  --cache  Output the cache dir.\n  --help   Show this message and exit.\n\nCommands:\n  delete-cache    (dc) Delete cache files\n  install         (it) Install packages\n  list-available  (la) List all packages available in the local repository.\n  list-installed  (li) List all 3rd party packages that are currently...\n  remove          (rm) Alias for `eopkg rm`\n  update-repo     (ur) Update the local repository\n  upgrade         (up) Upgrade 3rd party packages\n```\n\n## Why?\n\nInstalling and updating 3rd party packages is a real pain from the Software center. \nThis package elimitates that problem.\n\n---\n\n## API\n`eopkg3p` has a Python API as a bonus and can be imported like so:\n`import eopkg3p`\n\n\n#### `build_pspec(pspecfile: Path)`\nBuild eopkg package of a 3rd party app based on the app's pspec file from the `Path` object in the `pspecfile` argument.\n`pspecfile` has to be a `Path` object.\n\n\u0026nbsp;\n#### `check_local_repo()`\nCheck that the local repository directory (`$HOME/.cache/eopkg3p/3rd-party`) exists and that it's not empty.\n\n\u0026nbsp;\n#### `extract_description(pspecfile: Path)`\nReturn the description of a 3rd party app as a string based on the app's pspec file from the `Path` object in the `pspecfile` argument.\n\n\u0026nbsp;\n#### `extract_latest_release(pspecfile: Path)`\nReturn the release number of a 3rd party app as an integer based on the app's pspec file from the `Path` object in the `pspecfile` argument.\n\n\u0026nbsp;\n#### `filter_installed(available: Dict[str, Path]) -\u003e Dict[str, Path]*`\nIf given the argument `available` as a `dict` object with string as first argument and a `Path` object as the second argument, the function will return a dict object with only the installed 3rd party apps.\n\n\u0026nbsp;\n#### `filter_outdated(available: Dict[str, Path]) -\u003e Dict[str, Path])`\nIf given the argument `available` as a `dict` object with string as first argument and a `Path` object as the second argument, the function will return a dict object with only the outdated 3rd party apps.\n\n\u0026nbsp;\n#### `get_available() -\u003e Dict[str, Path]`\nReturn a `dict` with the name of the available 3rd party apps as a string as the key and the POSIX-path to their pspec.xml file as the value.\n\n\u0026nbsp;\n#### `get_installed_all() -\u003e Generator[Tuple[str, int], None, None]`\nReturn all installed apps and their release number as a generator object.\n\n\u0026nbsp;\n#### `install_eopkg(eopkgfile: Path)`\nInstall eopkgfile with `eopkg` based on the app's pspec file from the `Path` object in the `pspecfile` argument.\n\n\u0026nbsp;\n#### `update_local_repo()`\nInstall eopkgfile from `file` with eopkg based on the pspec file.\n\n\n[🐍🏕](http://www.pycampers.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscientifichackers%2Feopkg3p","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscientifichackers%2Feopkg3p","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscientifichackers%2Feopkg3p/lists"}