{"id":20105459,"url":"https://github.com/nnseva/package-version-present","last_synced_at":"2025-03-02T17:46:01.684Z","repository":{"id":219282027,"uuid":"748647908","full_name":"nnseva/package-version-present","owner":"nnseva","description":"Utility to check presence of the package in the PyPi-like repository","archived":false,"fork":false,"pushed_at":"2024-02-06T09:19:39.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-16T12:03:38.043Z","etag":null,"topics":["pypi","pypi-packages","simple-api","version","version-check"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nnseva.png","metadata":{"files":{"readme":"README.md","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":"2024-01-26T13:08:04.000Z","updated_at":"2024-01-29T08:28:59.000Z","dependencies_parsed_at":"2024-01-26T14:29:39.154Z","dependency_job_id":"1c63e63c-9e2a-4658-9210-622f69d9a90e","html_url":"https://github.com/nnseva/package-version-present","commit_stats":null,"previous_names":["nnseva/package-version-present"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nnseva%2Fpackage-version-present","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nnseva%2Fpackage-version-present/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nnseva%2Fpackage-version-present/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nnseva%2Fpackage-version-present/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nnseva","download_url":"https://codeload.github.com/nnseva/package-version-present/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241549088,"owners_count":19980475,"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":["pypi","pypi-packages","simple-api","version","version-check"],"created_at":"2024-11-13T17:47:06.412Z","updated_at":"2025-03-02T17:46:01.654Z","avatar_url":"https://github.com/nnseva.png","language":"Python","readme":"# Utility to check presence of the package in the PyPi-like repository\n\n## Installation\n\n*Stable version* from the PyPi package repository\n```bash\npip install package-version-present\n```\n\n*Last development version* from the GitHub source version control system\n```\npip install git+git://github.com/nnseva/package-version-present.git\n```\n\n## Using\n\nAdditionally to the central PyPi repository at https://pypi.org, you can use\nyour own custom PyPi-like private repository in your project.\n\nBuilding CI/CD scripts, it can be necessary to check, whether the\nparticular package version is present in your PyPi-like repository.\n\nFor example, you would like to check, whether the version is present, and\nbreak a pipeline in this case, because the programmer starting a pipeline\nshould provide a unique version number differ from the existent.\n\nThat's exactly a purpose of this script.\n\nBelow is the example code in the bitbucket-pipelines.yml. Use these project\nenvironment variables if you would like to use this example in your pipeline:\n\n- PYPI_REPOSITORY_URL   - base URL of the custom private repository\n- PYPI_USERNAME         - username to authenticate yourself in the repository\n- PYPI_PASSWORD         - password to authenticate yourself in the repository\n\n```yaml\n      - step:\n            name: Check the local version presence on the custom pypi repo\n            image: snakepacker/python:all\n            script:\n                - python3.8 -mpip install package-version-present\n                - package-version-present `python setup.py --name` `python setup.py --version` -R $PYPI_REPOSITORY_URL -U $PYPI_USERNAME -P \"$PYPI_PASSWORD\" -T -X\n```\n\nNotice that the script uses only built-in packages and doesn't need any additional libraries.\n\nThe script is self-descriptive, call it without parameters to see the help.\n\nThe script uses PyPi simple API, and is adopted to process the both, XML-based, as well as HTML based result.\n\nAfter installation, run the following command in the command line to see the detailed help:\n\n```bash\npackage-version-present\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnnseva%2Fpackage-version-present","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnnseva%2Fpackage-version-present","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnnseva%2Fpackage-version-present/lists"}