## NOTE
'artifacts-keyring' is a relatively thin wrapper around [artifacts-credprovider](https://github.com/microsoft/artifacts-credprovider). Make sure to also look at that repository for more information about different scenarios. For example:
* [Environment variable to explicitly override tokens](https://github.com/microsoft/artifacts-credprovider)
* [Safely using credentials in docker](https://github.com/dotnet/dotnet-docker/blob/master/documentation/scenarios/nuget-credentials.md#using-the-azure-artifact-credential-provider)
# artifacts-keyring
The `artifacts-keyring` package provides authentication for publishing or consuming Python packages to or from Azure Artifacts feeds within [Azure DevOps](https://azure.com/devops).
This package is an extension to [keyring](https://pypi.org/project/keyring), which will automatically find and use it once installed.
Both [pip](https://pypi.org/project/pip) and [twine](https://pypi.org/project/twine) will use `keyring` to
find credentials.
## Installation
To install this package, run the following `pip` command:
```
pip install artifacts-keyring
```
## Usage
### Requirements
To use `artifacts-keyring` to set up authentication between `pip`/`twine` and Azure Artifacts, the following requirements must be met:
* pip version **19.2** or higher
* twine version **1.13.0** or higher
* python version **3.0** or higher
* .Net runtime 6.0.X or later is installed. Refer to [here](https://learn.microsoft.com/dotnet/core/install/) for installation guideline.
### Publishing packages to an Azure Artifacts feed
Once `artifacts-keyring` is installed, to publish a package, use the following `twine` command, replacing **<org_name>** and **<feed_name>** with your own:
```
twine upload --repository-url https://pkgs.dev.azure.com/<org_name>/_packaging/<feed_name>/pypi/upload <package_wheel_or_other_dist_format>
```
### Installing packages from an Azure Artifacts feed
Once `artifacts-keyring` is installed, to consume a package, use the following `pip` command, replacing **<org_name>** and **<feed_name>** with your own, and **<package_name>** with the package you want to install:
```
pip install <package_name> --index-url https://pkgs.dev.azure.com/<org_name>/_packaging/<feed_name>/pypi/simple
```
## Advanced configuration
The `artifacts-keyring` package is layered on top of our [Azure Artifacts Credential Provider](https://github.com/microsoft/artifacts-credprovider). Check out that link to the GitHub repo for more information on configuration options.
### Environment variables
- `ARTIFACTS_KEYRING_NONINTERACTIVE_MODE`: Controls whether the underlying credential provider can issue interactive prompts.
## Contributing
This project welcomes contributions and suggestions. Most contributions require you to agree to a
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
the rights to use your contribution. For details, visit https://cla.microsoft.com.
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide
a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions
provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
Raw data
{
"_id": null,
"home_page": "https://github.com/Microsoft/artifacts-keyring",
"name": "artifacts-keyring",
"maintainer": null,
"docs_url": null,
"requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7",
"maintainer_email": null,
"keywords": null,
"author": "Microsoft Corporation",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/5a/23/3f1d6ae55d181963f9642bf66f20ecac3593664964c36d0347e3432894c5/artifacts_keyring-0.3.6.tar.gz",
"platform": null,
"description": "## NOTE\n'artifacts-keyring' is a relatively thin wrapper around [artifacts-credprovider](https://github.com/microsoft/artifacts-credprovider). Make sure to also look at that repository for more information about different scenarios. For example:\n\n* [Environment variable to explicitly override tokens](https://github.com/microsoft/artifacts-credprovider)\n* [Safely using credentials in docker](https://github.com/dotnet/dotnet-docker/blob/master/documentation/scenarios/nuget-credentials.md#using-the-azure-artifact-credential-provider)\n\n# artifacts-keyring\n\nThe `artifacts-keyring` package provides authentication for publishing or consuming Python packages to or from Azure Artifacts feeds within [Azure DevOps](https://azure.com/devops).\n\nThis package is an extension to [keyring](https://pypi.org/project/keyring), which will automatically find and use it once installed.\n\nBoth [pip](https://pypi.org/project/pip) and [twine](https://pypi.org/project/twine) will use `keyring` to\nfind credentials.\n\n## Installation\n\nTo install this package, run the following `pip` command:\n\n```\npip install artifacts-keyring\n```\n\n## Usage\n\n### Requirements\n\nTo use `artifacts-keyring` to set up authentication between `pip`/`twine` and Azure Artifacts, the following requirements must be met:\n\n* pip version **19.2** or higher\n* twine version **1.13.0** or higher\n* python version **3.0** or higher\n* .Net runtime 6.0.X or later is installed. Refer to [here](https://learn.microsoft.com/dotnet/core/install/) for installation guideline.\n\n### Publishing packages to an Azure Artifacts feed\nOnce `artifacts-keyring` is installed, to publish a package, use the following `twine` command, replacing **<org_name>** and **<feed_name>** with your own:\n\n```\ntwine upload --repository-url https://pkgs.dev.azure.com/<org_name>/_packaging/<feed_name>/pypi/upload <package_wheel_or_other_dist_format>\n```\n\n### Installing packages from an Azure Artifacts feed\nOnce `artifacts-keyring` is installed, to consume a package, use the following `pip` command, replacing **<org_name>** and **<feed_name>** with your own, and **<package_name>** with the package you want to install:\n\n```\npip install <package_name> --index-url https://pkgs.dev.azure.com/<org_name>/_packaging/<feed_name>/pypi/simple\n```\n\n## Advanced configuration\nThe `artifacts-keyring` package is layered on top of our [Azure Artifacts Credential Provider](https://github.com/microsoft/artifacts-credprovider). Check out that link to the GitHub repo for more information on configuration options.\n\n### Environment variables\n\n- `ARTIFACTS_KEYRING_NONINTERACTIVE_MODE`: Controls whether the underlying credential provider can issue interactive prompts.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n",
"bugtrack_url": null,
"license": null,
"summary": "\"Automatically retrieve credentials for Azure Artifacts.\"",
"version": "0.3.6",
"project_urls": {
"Homepage": "https://github.com/Microsoft/artifacts-keyring"
},
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "6043a515dd2189e31cc1d514aeebaa6fb02524584d41dc2b14d4156ffe4956f6",
"md5": "a8b0f582b5a337f38be512d9da17bac3",
"sha256": "78a60daffbb17ac1b1e182b755a1c51847465e6e065422d3364d5ca517c0db9e"
},
"downloads": -1,
"filename": "artifacts_keyring-0.3.6-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "a8b0f582b5a337f38be512d9da17bac3",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7",
"size": 12680968,
"upload_time": "2024-06-17T22:09:06",
"upload_time_iso_8601": "2024-06-17T22:09:06.195035Z",
"url": "https://files.pythonhosted.org/packages/60/43/a515dd2189e31cc1d514aeebaa6fb02524584d41dc2b14d4156ffe4956f6/artifacts_keyring-0.3.6-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "5a233f1d6ae55d181963f9642bf66f20ecac3593664964c36d0347e3432894c5",
"md5": "7cd4a8cea81ee7da28bc36e321d342b4",
"sha256": "a2441fcc89d7e3b2787f704a90646c5749eb8f45620389d416168ec0f04e1a15"
},
"downloads": -1,
"filename": "artifacts_keyring-0.3.6.tar.gz",
"has_sig": false,
"md5_digest": "7cd4a8cea81ee7da28bc36e321d342b4",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7",
"size": 11884779,
"upload_time": "2024-06-17T22:08:41",
"upload_time_iso_8601": "2024-06-17T22:08:41.621704Z",
"url": "https://files.pythonhosted.org/packages/5a/23/3f1d6ae55d181963f9642bf66f20ecac3593664964c36d0347e3432894c5/artifacts_keyring-0.3.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-06-17 22:08:41",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Microsoft",
"github_project": "artifacts-keyring",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "artifacts-keyring"
}