# sortinghat-openinfra
SortingHat backend to import identities from OpenInfraID
## Requirements
* Python >= 3.9
You will also need some other libraries for running the tool, you can find the
whole list of dependencies in [pyproject.toml](pyproject.toml) file.
## Installation
There are several ways to install sortinghat-openinfra on your system: packages or source
code using Poetry or pip.
### PyPI
sortinghat-openinfra can be installed using pip, a tool for installing Python packages.
To do it, run the next command:
```
$ pip install sortinghat-openinfra
```
### Source code
To install from the source code you will need to clone the repository first:
```
$ git clone https://github.com/bitergia-analytics/sortinghat-openinfra
$ cd sortinghat-openinfra
```
Then use pip or Poetry to install the package along with its dependencies.
#### Pip
To install the package from local directory run the following command:
```
$ pip install .
```
In case you are a developer, you should install sortinghat-openinfra in editable mode:
```
$ pip install -e .
```
## Usage
Install this SortingHat backend to import identities from OpenInfraID. You can
use this importer using the API or the UI. The name of the backend is
`OpenInfraID`. You need to provide the URL in the importer configuration,
typically `https://openstackid-resources.openstack.org`.
By default, this backend only obtain members from the public API that doesn't
contain email information. If you want to obtain members emails you need
to define the following configuration variables in your settings file:
- `OPENINFRA_CLIENT_ID`: OpenInfraID Oauth2 client ID for private API.
- `OPENINFRA_CLIENT_SECRET`: OpenInfraID Oauth2 client secret for private API.
#### Poetry
We use [poetry](https://python-poetry.org/) for dependency management and
packaging. You can install it following its [documentation](https://python-poetry.org/docs/#installation).
Once you have installed it, you can install sortinghat-openinfra and the dependencies in
a project isolated environment using:
```
$ poetry install
```
To spaw a new shell within the virtual environment use:
```
$ poetry shell
```
## License
Licensed under GNU General Public License (GPL), version 3 or later.
Raw data
{
"_id": null,
"home_page": "https://chaoss.github.io/grimoirelab/",
"name": "sortinghat-openinfra",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.9",
"maintainer_email": null,
"keywords": "development, grimoirelab, sortinghat",
"author": "Bitergia Developers",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/00/ce/3d901b09be4a826bfdaf0a7bc9a30a4c89be385fea15f00386c56b6c7038/sortinghat_openinfra-0.2.10.tar.gz",
"platform": null,
"description": "# sortinghat-openinfra\n\nSortingHat backend to import identities from OpenInfraID\n\n## Requirements\n\n * Python >= 3.9\n\nYou will also need some other libraries for running the tool, you can find the\nwhole list of dependencies in [pyproject.toml](pyproject.toml) file.\n\n## Installation\n\nThere are several ways to install sortinghat-openinfra on your system: packages or source \ncode using Poetry or pip.\n\n### PyPI\n\nsortinghat-openinfra can be installed using pip, a tool for installing Python packages. \nTo do it, run the next command:\n```\n$ pip install sortinghat-openinfra\n```\n\n### Source code\n\nTo install from the source code you will need to clone the repository first:\n```\n$ git clone https://github.com/bitergia-analytics/sortinghat-openinfra\n$ cd sortinghat-openinfra\n```\n\nThen use pip or Poetry to install the package along with its dependencies.\n\n#### Pip\nTo install the package from local directory run the following command:\n```\n$ pip install .\n```\nIn case you are a developer, you should install sortinghat-openinfra in editable mode:\n```\n$ pip install -e .\n```\n\n## Usage\n\nInstall this SortingHat backend to import identities from OpenInfraID. You can\nuse this importer using the API or the UI. The name of the backend is \n`OpenInfraID`. You need to provide the URL in the importer configuration,\ntypically `https://openstackid-resources.openstack.org`.\n\nBy default, this backend only obtain members from the public API that doesn't\ncontain email information. If you want to obtain members emails you need\nto define the following configuration variables in your settings file:\n- `OPENINFRA_CLIENT_ID`: OpenInfraID Oauth2 client ID for private API.\n- `OPENINFRA_CLIENT_SECRET`: OpenInfraID Oauth2 client secret for private API.\n\n#### Poetry\nWe use [poetry](https://python-poetry.org/) for dependency management and \npackaging. You can install it following its [documentation](https://python-poetry.org/docs/#installation).\nOnce you have installed it, you can install sortinghat-openinfra and the dependencies in \na project isolated environment using:\n```\n$ poetry install\n```\nTo spaw a new shell within the virtual environment use:\n```\n$ poetry shell\n```\n\n## License\n\nLicensed under GNU General Public License (GPL), version 3 or later.\n",
"bugtrack_url": null,
"license": "GPL-3.0+",
"summary": "SortingHat backend to import identities from OpenInfraID",
"version": "0.2.10",
"project_urls": {
"Bug Tracker": "https://github.com/bitergia-analytics/sortinghat-openinfra/issues",
"Homepage": "https://chaoss.github.io/grimoirelab/",
"Repository": "https://github.com/bitergia-analytics/sortinghat-openinfra"
},
"split_keywords": [
"development",
" grimoirelab",
" sortinghat"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "2f48c102f81cd5650f840f62f488d798aa9523eb2acae6de3350f56e283d0ed8",
"md5": "074172fb372acf2e90bbae1a2f2401a0",
"sha256": "470c746ddd258f5c6ccf3c62832dd7eaed2d0b7293cc50846a52148211e47286"
},
"downloads": -1,
"filename": "sortinghat_openinfra-0.2.10-py3-none-any.whl",
"has_sig": false,
"md5_digest": "074172fb372acf2e90bbae1a2f2401a0",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 17738,
"upload_time": "2024-12-11T12:19:26",
"upload_time_iso_8601": "2024-12-11T12:19:26.068634Z",
"url": "https://files.pythonhosted.org/packages/2f/48/c102f81cd5650f840f62f488d798aa9523eb2acae6de3350f56e283d0ed8/sortinghat_openinfra-0.2.10-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "00ce3d901b09be4a826bfdaf0a7bc9a30a4c89be385fea15f00386c56b6c7038",
"md5": "67e9bf2dac861439f5a86b992e8940f2",
"sha256": "90929d7b583490cc584ac194f1b2b24f695df414f8270f30543e85483f3c4562"
},
"downloads": -1,
"filename": "sortinghat_openinfra-0.2.10.tar.gz",
"has_sig": false,
"md5_digest": "67e9bf2dac861439f5a86b992e8940f2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 22633,
"upload_time": "2024-12-11T12:19:28",
"upload_time_iso_8601": "2024-12-11T12:19:28.272812Z",
"url": "https://files.pythonhosted.org/packages/00/ce/3d901b09be4a826bfdaf0a7bc9a30a4c89be385fea15f00386c56b6c7038/sortinghat_openinfra-0.2.10.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-11 12:19:28",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "bitergia-analytics",
"github_project": "sortinghat-openinfra",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "sortinghat-openinfra"
}