
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
A UUID support library specialized on v4 UUIDs, parsing and formatting existing UUIDs. It can encode and decode dashed UUIDs, compact UUIDs, large integers, UUID URNs and Base62 coded UUIDs.
gem 'uuid4'
And then execute:
$ bundle
Or install it yourself as:
$ gem install uuid4
uuid = UUID4('d40aa316-6e30-4bae-a673-7b2cf35a8f99')
# => <UUID4:d40aa316-6e30-4bae-a673-7b2cf35a8f99>
uuid.to_s
# => "d40aa316-6e30-4bae-a673-7b2cf35a8f99"
uuid.to_s(format: :compact)
# => "d40aa3166e304baea6737b2cf35a8f99"
uuid.to_s(format: :base62)
# => "6s7exj9M9mGqLs5KhhWWaB"
uuid.to_s(format: :urn)
# => "urn:uuid:d40aa316-6e30-4bae-a673-7b2cf35a8f99"
uuid.to_i
# => 281851565884874220786890141677225938841
uuid == 'd40aa316-6e30-4bae-a673-7b2cf35a8f99'
# => true
'd40aa316-6e30-4bae-a673-7b2cf35a8f99' == uuid
# => true
uuid == "d40aa3166e304baea6737b2cf35a8f99"
# => true
uuid == '6s7exj9M9mGqLs5KhhWWaB'
# => true
uuid == 281851565884874220786890141677225938841
# => true
uuid == 'urn:uuid:d40aa316-6e30-4bae-a673-7b2cf35a8f99'
# => true
uuid == UUID4('d40aa316-6e30-4bae-a673-7b2cf35a8f99')
# => true
Bug reports and pull requests are welcome on GitHub at https://github.com/jgraichen/uuid4.
(c) Jan Graichen
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that uuid4 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.