Skip to content

!pypi should include publish date in response #2613

@import-pandas-as-numpy

Description

@import-pandas-as-numpy

In many cases, users have been utilizing out of date packages. This would make the !pypi tag substantially more useful in visually parsing whether or not a package could be out of date for the current version of Python.

https://github.com/python-discord/bot/blob/main/bot/exts/info/pypi.py#L48-L67

Example snippet:

ver = info["version"]
releasedate = info["release"][ver]["0"]["upload_time"]
embed.description += f"\n Release Date {releasedate}"

Should fall within the if 200 response block. May want to consider prettying up the timestamp a bit to just the date portion.

Metadata

Metadata

Assignees

Labels

p: 3 - lowLow Prioritystatus: approvedThe issue has received a core developer's approvalt: enhancementChanges or improvements to existing features

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions