artifacts-keyring


Nameartifacts-keyring JSON
Version 0.3.5 PyPI version JSON
download
home_pagehttps://github.com/Microsoft/artifacts-keyring
Summary"Automatically retrieve credentials for Azure Artifacts."
upload_time2024-04-29 21:47:56
maintainerNone
docs_urlNone
authorMicrosoft Corporation
requires_python!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## 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/60/a0/de95b42d005ab952a949966d8b82ac8eefaf07ac1d4ff628db227db3f737/artifacts_keyring-0.3.5.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.5",
    "project_urls": {
        "Homepage": "https://github.com/Microsoft/artifacts-keyring"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "ed397bf949f22249f40da1ca66b48dd40107b17b13655aabe0e4f9e910f7dd2c",
                "md5": "a37ebdc8168ee2b69dc5dbd7ea79bfc1",
                "sha256": "5252653aece7681e8701097e3d4422815a37b30f7b82ceb4a0ce5355a7cf8498"
            },
            "downloads": -1,
            "filename": "artifacts_keyring-0.3.5-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a37ebdc8168ee2b69dc5dbd7ea79bfc1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7",
            "size": 12680965,
            "upload_time": "2024-04-29T21:48:00",
            "upload_time_iso_8601": "2024-04-29T21:48:00.075835Z",
            "url": "https://files.pythonhosted.org/packages/ed/39/7bf949f22249f40da1ca66b48dd40107b17b13655aabe0e4f9e910f7dd2c/artifacts_keyring-0.3.5-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "60a0de95b42d005ab952a949966d8b82ac8eefaf07ac1d4ff628db227db3f737",
                "md5": "25de6df42b6bb7faf84bb93091cca5b2",
                "sha256": "e2c2b1f5e2c57bcfd3a9392e9e2a2e100d6aea8e59b388b960921fa4e8cc8598"
            },
            "downloads": -1,
            "filename": "artifacts_keyring-0.3.5.tar.gz",
            "has_sig": false,
            "md5_digest": "25de6df42b6bb7faf84bb93091cca5b2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7",
            "size": 11884811,
            "upload_time": "2024-04-29T21:47:56",
            "upload_time_iso_8601": "2024-04-29T21:47:56.471413Z",
            "url": "https://files.pythonhosted.org/packages/60/a0/de95b42d005ab952a949966d8b82ac8eefaf07ac1d4ff628db227db3f737/artifacts_keyring-0.3.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-29 21:47:56",
    "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"
}
        
Elapsed time: 0.24133s