Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Future direction? #39

Open
legoktm opened this issue Feb 12, 2021 · 2 comments
Open

Future direction? #39

legoktm opened this issue Feb 12, 2021 · 2 comments

Comments

@legoktm
Copy link
Contributor

legoktm commented Feb 12, 2021

Hi Magnus,

First, thanks for working on this crate - it is a great foundation and all of my tools so far use it.

I started writing some more advanced bots last week using this crate as the base and felt like I was missing stuff that I've come to expect from using Pywikibot for so many years. IMO, right now the crate takes care of the basics for login, token handling, and simple objects for titles, getting page text and other properties like links, external links, coordinates, editing, etc. But there's no high level error types, credential storage/handling, automatic retries, logging, other actions like page moving, deletion, protection and so on. And then there's stuff like {{nobots}} handling which is solely for bots and not other MW API consumers.

What do you see the scope of this crate as being? Are more bot-like functions and high-level types welcome contributions? Or would you see those go in a higher level "wikibot" crate that builds on top of this one? Something in the middle?

I don't want to step on any toes nor duplicate any work, but this is something I'd like to work on to make adopting Rust even easier.

Thanks!

P.S. I (along with @enterprisey) am starting a Wikimedia Rust developers user group, which you are definitely invited to join, that we hope will work on issues like this.

@magnusmanske
Copy link
Owner

Hi @legoktm,

thanks! I haven't actually worked a lot with PyWikiBot, but I heard very good things about it. I think there is definitely room for a bot "part" in this crate, though if we want to cover the wikibase one as well, maybe a separate crate would avoid circular "references" (not really an issue but somehow cleaner?).

I need to fix the conflicts in your PR.

Someone suggested building Rust code for API replies based on the API man pages at api.php but I couldn't find the data source these are generated from.

Please feel free to put PRs! I think Rust is ideal for mid/large-level bot operations on MediaWiki.

I have joined the user group, and look forward to the first meetup!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants