pywikibot-catfiles / file-metadata

A python package to analyze files and provide useful metadata
MIT License
15 stars 1 forks source link

How do we integrate with pywikibot-core #12

Open AbdealiLoKo opened 8 years ago

AbdealiLoKo commented 8 years ago
  1. pywikibot-core and pypi-catimages are requirements for another pypi package pywikibot-catimages for it to be used with mediawiki.
  2. Make a file-metadata.integrations.pywikibot sort of package
  3. A script is created in pywikibot-core which uses the pypi-catimages and handles the args required for the script to be used with mediawiki.
  4. Make a php binding which uses this in UploadWizard and asks the uploader to verify data ?
AbdealiLoKo commented 8 years ago

@jayvdb @drtrigon As mentioned earlier the wikibot module is messy. What are your suggestions on how to handle this ? Should scripts be in file-metadata ? Should we make another repo in this github org ? Should it be in phabricator ?

Also, how do we write it better ? I believe we need a INI like config file to tune the values used by the bot. Does that sound good ? It would have configs like min_threshold_black_white_mse, min_threshold_face_dlib and so on.

drtrigon commented 8 years ago

I think to remember that we concluded to create a repo in our github org - don't remember name proposals right now need to check wm-bot logs.

INI should be a python script to import or run IMO. Despite that sound like a plan. Pywikibot does the same, right?

jayvdb commented 8 years ago

Definitely another repo for the script, so that this repo is agnostic to how it is being used.

The script should use ordinary Python config file and command line libraries (or improved wrappers). Those components of Pywikibot can be disabled, e.g. by setting PYWIKIBOT2_NO_USER_CONFIG, or wrapped with saner standardised implementation.

drtrigon commented 8 years ago

Name it e.g. pywikibot-catfiles/bot-file-metadata.