Skip to content

Allow to generate multiple UUIDs at once via CLI #131236

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

Closed
simon04 opened this issue Mar 14, 2025 · 0 comments · Fixed by #131218
Closed

Allow to generate multiple UUIDs at once via CLI #131236

simon04 opened this issue Mar 14, 2025 · 0 comments · Fixed by #131218
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@simon04
Copy link
Contributor

simon04 commented Mar 14, 2025

Feature or enhancement

Proposal:

Add --count to the main() of the uuid module.

Sometimes you need more than one UUID. In order to print 42 UUIDs, run python -m uuid --count 42

Inspired by https://www.man7.org/linux/man-pages/man1/uuidgen.1.html

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

@simon04 simon04 added the type-feature A feature request or enhancement label Mar 14, 2025
@picnixz picnixz changed the title uuid: add --count to main Allow to generate multiple UUIDs at once via CLI Mar 14, 2025
@picnixz picnixz added the stdlib Python modules in the Lib dir label Mar 14, 2025
hugovk pushed a commit that referenced this issue Mar 26, 2025
diegorusso pushed a commit to diegorusso/cpython that referenced this issue Apr 1, 2025
seehwan pushed a commit to seehwan/cpython that referenced this issue Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants