A Sopel plugin to show information about linked PyPI packages.
sopel-irc / sopel-pypi Goto Github PK
View Code? Open in Web Editor NEWSopel plugin to show information about PyPI package links
License: Other
Sopel plugin to show information about PyPI package links
License: Other
For newer packages using pyproject.toml
and other more-modern systems for embedding metadata, sometimes details like the "author" wind up empty or weirdly formatted.
Sopel 8.0.0, for example, is on track to have an "Author" name field that effectively contains ', '.join(author_list)
. In other cases, such as when both a name
and email
are specified for a single author, the "Author" name field is empty and both the name & email end up in the "Author-Email" field. (The latter case has this plugin show "(unknown name)", because the name-only field is empty.)
pypi/warehouse#9400 and pypi/warehouse#14813 describe the odd behaviors we (the loose collective of Sopel core & plugin maintainers) have noticed, and it doesn't seem like there is yet any real motivation to mitigate them on the PyPI side. In lieu, we might need to make sopel-pypi
itself "smarter" about extracting useful metadata and/or displaying it in a useful way on IRC.
Comma-separated lists of authors could benefit from at least converting the final ,
into &
, or perhaps from capping the author list with et al.
if there are a lot of entries (to leave more room for the package description).
Empty "Author" fields could pull from the "Author-Email" and extract only the names… which could be complicated if some entries consist only of email addresses, but those entries could use a fallback value like the email username.
I can't get to all of the plugins at once, and we think this is a lesser-used one. But I intend to get to them all Eventually™ and creating an issue that I can self-assign helps with that.
This plugin also doesn't cap the version of sopel
it requires to <8
, so it won't refuse to work on the new Sopel 8 release or cause pip
to silently downgrade an existing bot—which pushes it down the priority list, below other plugins that do do that.
(The project doesn't collect any analytics, so we have only anecdotal evidence and guesses to figure out which plugins are frequently used. Guessing is probably good enough. Probably.)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.