|
||
---|---|---|
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://lab.forgefriends.org/friendlyforgeformat/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.