Changeset View
Changeset View
Standalone View
Standalone View
README.md
| Show First 20 Lines • Show All 171 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 | ||||