F3 Wikidata Bot
Reviewed-on: https://code.forgejo.org///f3/f3-wikidata-bot/pulls/9 Reviewed-by: natct <natct@noreply.code.forgejo.org> |
||
|---|---|---|
| bin | ||
| f3wikidatabot | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| LICENSE | ||
| poetry.lock | ||
| pyproject.toml | ||
| README.md | ||
| tox.ini | ||
| user-config.py | ||
F3 Wikidata Bot
f3wikidatabot is a python module and command-line tool for the wikidata Forges project.
Setup
git clone --recursive https://code.forgejo.org/f3/f3-wikidata-bot.git
cd f3-wikidata-bot
echo layout python3 > .envrc
direnv allow
pip install poetry
poetry install
Usage
From the source tree:
PYTHONPATH=$(pwd) python bin/f3wikidatabot --help
Using the module from PyPI:
from f3wikidatabot import bot
b = bot.Bot.factory(["--verbose", "--show", "--plugin", "Features"])
for forge in b.run_query():
print(forge)
Publish
$ poetry config pypi-token.pypi {pypi token}
$ poetry version patch
$ poetry build
$ poetry publish
License
This project is licensed under the GPLv3+ License.
Funding
This project is funded through the NGI Assure Fund, a fund established by NLnet with financial support from the European Commission's Next Generation Internet program. Learn more on the NLnet project page.
