Changeset View
Changeset View
Standalone View
Standalone View
README.md
Show All 10 Lines | |||||
- `swh.lister.bitbucket` | - `swh.lister.bitbucket` | ||||
- `swh.lister.debian` | - `swh.lister.debian` | ||||
- `swh.lister.github` | - `swh.lister.github` | ||||
- `swh.lister.gitlab` | - `swh.lister.gitlab` | ||||
- `swh.lister.pypi` | - `swh.lister.pypi` | ||||
- `swh.lister.npm` | - `swh.lister.npm` | ||||
- `swh.lister.phabricator` | - `swh.lister.phabricator` | ||||
- `swh.lister.gnu` | |||||
Dependencies | Dependencies | ||||
------------ | ------------ | ||||
All required dependencies can be found in the `requirements*.txt` files located | All required dependencies can be found in the `requirements*.txt` files located | ||||
at the root of the repository. | at the root of the repository. | ||||
Local deployment | Local deployment | ||||
▲ Show 20 Lines • Show All 145 Lines • ▼ Show 20 Lines | |||||
```lang=python | ```lang=python | ||||
import logging | import logging | ||||
from swh.lister.phabricator.tasks import incremental_phabricator_lister | from swh.lister.phabricator.tasks import incremental_phabricator_lister | ||||
logging.basicConfig(level=logging.DEBUG) | logging.basicConfig(level=logging.DEBUG) | ||||
incremental_phabricator_lister(forge_url='https://forge.softwareheritage.org', api_token='XXXX') | incremental_phabricator_lister(forge_url='https://forge.softwareheritage.org', api_token='XXXX') | ||||
``` | ``` | ||||
## lister-gnu | |||||
Once configured, you can execute a PyPI lister using the following instructions in a `python3` script: | |||||
```lang=python | |||||
import logging | |||||
from swh.lister.gnu.tasks import gnu_lister | |||||
logging.basicConfig(level=logging.DEBUG) | |||||
gnu_lister() | |||||
``` | |||||
Licensing | Licensing | ||||
--------- | --------- | ||||
This program is free software: you can redistribute it and/or modify it under | This program is free software: you can redistribute it and/or modify it under | ||||
the terms of the GNU General Public License as published by the Free Software | the terms of the GNU General Public License as published by the Free Software | ||||
Foundation, either version 3 of the License, or (at your option) any later | Foundation, either version 3 of the License, or (at your option) any later | ||||
version. | version. | ||||
This program is distributed in the hope that it will be useful, but WITHOUT ANY | This program is distributed in the hope that it will be useful, but WITHOUT ANY | ||||
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||||
PARTICULAR PURPOSE. See the GNU General Public License for more details. | PARTICULAR PURPOSE. See the GNU General Public License for more details. | ||||
See top-level LICENSE file for the full text of the GNU General Public License | See top-level LICENSE file for the full text of the GNU General Public License | ||||
along with this program. | along with this program. | ||||
No newline at end of file | No newline at end of file |