https://github.com/ruby/psych
A libyaml wrapper for Ruby
https://github.com/ruby/psych
Keywords
c hacktoberfest java libyaml psych ruby yaml-parser
Keywords from Contributors
rubygem activerecord activejob mvc rack ruby-gem documentation-tool json-parser sinatra rspec
Last synced: about 22 hours ago
JSON representation
Repository metadata
A libyaml wrapper for Ruby
- Host: GitHub
- URL: https://github.com/ruby/psych
- Owner: ruby
- License: mit
- Created: 2009-09-28T16:31:15.000Z (over 16 years ago)
- Default Branch: master
- Last Pushed: 2025-12-17T04:34:25.000Z (24 days ago)
- Last Synced: 2025-12-19T21:58:28.206Z (21 days ago)
- Topics: c, hacktoberfest, java, libyaml, psych, ruby, yaml-parser
- Language: Ruby
- Homepage:
- Size: 2.21 MB
- Stars: 580
- Watchers: 41
- Forks: 211
- Open Issues: 97
- Releases: 86
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
README.md
Psych
Description
Psych is a YAML parser and emitter. Psych leverages
libyaml for its YAML parsing and emitting
capabilities. In addition to wrapping libyaml, Psych also knows how to
serialize and de-serialize most Ruby objects to and from the YAML format.
Examples
# Safely load YAML in to a Ruby object
Psych.safe_load('--- foo') # => 'foo'
# Emit YAML from a Ruby object
Psych.dump("foo") # => "--- foo\n...\n"
Dependencies
- libyaml
Installation
Psych has been included with MRI since 1.9.2, and has been the default YAML parser
since 1.9.3.
If you want a newer gem release of Psych, you can use RubyGems:
gem install psych
Psych supported the static build with specific version of libyaml sources. You can build psych with libyaml-0.2.5 like this.
gem install psych -- --with-libyaml-source-dir=/path/to/libyaml-0.2.5
In order to use the gem release in your app, and not the stdlib version,
you'll need the following:
gem 'psych'
require 'psych'
Or if you use Bundler add this to your Gemfile:
gem 'psych'
JRuby ships with a pure Java implementation of Psych.
Release
We used the trusted publisher and rubygems/release-gem workflow.
We can release the new version with:
git tag vXXX && git push origin vXXX
License
Copyright 2009 Aaron Patterson, et al.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the 'Software'), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Owner metadata
- Name: The Ruby Programming Language
- Login: ruby
- Email: info@ruby-lang.org
- Kind: organization
- Description: Repositories related to the Ruby Programming language
- Website: https://www.ruby-lang.org/
- Location: Matsue, Japan
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/210414?v=4
- Repositories: 171
- Last ynced at: 2023-04-09T03:40:20.875Z
- Profile URL: https://github.com/ruby
GitHub Events
Total
- Create event: 28
- Issues event: 22
- Release event: 14
- Watch event: 17
- Delete event: 22
- Member event: 1
- Issue comment event: 101
- Push event: 69
- Pull request review comment event: 21
- Pull request review event: 21
- Pull request event: 72
- Fork event: 12
Last Year
- Create event: 14
- Release event: 4
- Issues event: 18
- Watch event: 13
- Delete event: 15
- Issue comment event: 64
- Push event: 47
- Pull request review comment event: 15
- Pull request review event: 13
- Pull request event: 60
- Fork event: 7
Committers metadata
Last synced: 3 days ago
Total Commits: 1,178
Total Committers: 123
Avg Commits per committer: 9.577
Development Distribution Score (DDS): 0.633
Commits in past year: 77
Committers in past year: 20
Avg Commits per committer in past year: 3.85
Development Distribution Score (DDS) in past year: 0.779
| Name | Commits | |
|---|---|---|
| Aaron Patterson | a****n@g****m | 432 |
| SHIBATA Hiroshi | h****t@r****g | 311 |
| Charles Oliver Nutter | h****s@h****m | 72 |
| Nobuyoshi Nakada | n****u@r****g | 47 |
| Jean Boussier | j****r@g****m | 22 |
| dependabot[bot] | 4****] | 20 |
| Marcus Stollsteimer | s****r@w****e | 14 |
| Alexander Momchilov | a****v@s****m | 12 |
| Yusuke Endoh | m****e@r****g | 11 |
| Zachary Scott | z****y@z****t | 10 |
| MSP-Greg | M****g | 8 |
| John Barnette | j****e@g****m | 8 |
| Benoit Daloze | e****p@g****m | 8 |
| David Rodríguez | d****z@r****t | 7 |
| Peter Zhu | p****r@p****a | 7 |
| OrenGitHub | t****u@g****m | 6 |
| Marc-Andre Lafortune | g****b@m****a | 6 |
| Leonard Chin | l****n@g****m | 6 |
| nick evans | n****k@r****v | 5 |
| Greg Houle | g****e@s****m | 5 |
| kazu | k****u@b****e | 5 |
| kares | s****f@k****g | 5 |
| Jakub Jirutka | j****b@j****z | 5 |
| Kevin Menard | n****m@g****m | 5 |
| Alexandr Opak | o****r@g****m | 4 |
| Takashi Kokubun | t****n@g****m | 4 |
| Eric Hodel | d****n@s****t | 4 |
| Jun Aruga | j****a@r****m | 3 |
| Olle Jonsson | o****n@g****m | 3 |
| S.H | g****7@g****m | 3 |
| and 93 more... | ||
Committer domains:
- ruby-lang.org: 3
- shopify.com: 3
- insidesystems.net: 1
- koboyz.org: 1
- sher.pl: 1
- dio.jp: 1
- rainforce.org: 1
- langfeld.me: 1
- benjaminfleischer.com: 1
- neopoly.de: 1
- alces-software.com: 1
- invoca.com: 1
- gemstone.com: 1
- pl.ibm.com: 1
- thoughtworks.com: 1
- zzak.io: 1
- me.com: 1
- jeremyevans.net: 1
- redhat.com: 1
- segment7.net: 1
- jirutka.cz: 1
- kares.org: 1
- rubinick.dev: 1
- marc-andre.ca: 1
- peterzhu.ca: 1
- riseup.net: 1
- zacharyscott.net: 1
- prx.jp: 1
- pocke.me: 1
- atg.auto: 1
- greiz-reinsdorf.de: 1
- atdot.net: 1
- rhe.jp: 1
- safelinkhub.com: 1
- zendesk.com: 1
- zozi.com: 1
- ping.de: 1
- colby.fyi: 1
- squareup.com: 1
- nettopower.dk: 1
- instructure.com: 1
- utilum.com: 1
- kt.rim.or.jp: 1
- gmx.net: 1
- iress.com: 1
- thoughtbot.com: 1
- philosof.dk: 1
- dotless.de: 1
- rpowell.me: 1
- detailedbalance.net: 1
- sunpoet.net: 1
- k7u7.com: 1
- easy.cz: 1
- new-bamboo.co.uk: 1
- headius.com: 1
Issue and Pull Request metadata
Last synced: 16 days ago
Total issues: 115
Total pull requests: 164
Average time to close issues: almost 2 years
Average time to close pull requests: about 2 months
Total issue authors: 102
Total pull request authors: 48
Average comments per issue: 4.3
Average comments per pull request: 1.4
Merged pull request: 135
Bot issues: 1
Bot pull requests: 26
Past year issues: 10
Past year pull requests: 69
Past year average time to close issues: 5 days
Past year average time to close pull requests: 3 days
Past year issue authors: 10
Past year pull request authors: 21
Past year average comments per issue: 1.1
Past year average comments per pull request: 0.77
Past year merged pull request: 53
Past year bot issues: 0
Past year bot pull requests: 22
Top Issue Authors
- headius (7)
- rubyFeedback (2)
- abitrolly (2)
- tdeo (2)
- ciscolive (2)
- poloka (2)
- MSP-Greg (2)
- dentarg (2)
- wscourge (1)
- jsvd (1)
- shyouhei (1)
- akunszt (1)
- sramsden (1)
- oliverbarnes (1)
- neumayr (1)
Top Pull Request Authors
- dependabot[bot] (26)
- hsbt (23)
- nobu (14)
- peterzhu2118 (10)
- headius (8)
- casperisfine (8)
- chadlwilson (5)
- amomchilov (5)
- tenderlove (4)
- kares (3)
- nevans (3)
- etiennebarrie (3)
- byroot (3)
- runephilosof (3)
- fnordfish (2)
Top Issue Labels
- JRuby (4)
- Documentation (2)
- dependencies (1)
Top Pull Request Labels
- dependencies (26)
- github_actions (14)
Package metadata
- Total packages: 3
-
Total downloads:
- rubygems: 345,097,892 total
- Total docker downloads: 9,812,140,084
- Total dependent packages: 254 (may contain duplicates)
- Total dependent repositories: 11,869 (may contain duplicates)
- Total versions: 378
- Total maintainers: 3
gem.coop: psych
Psych is a YAML parser and emitter. Psych leverages libyaml[https://pyyaml.org/wiki/LibYAML] for its YAML parsing and emitting capabilities. In addition to wrapping libyaml, Psych also knows how to serialize and de-serialize most Ruby objects to and from the YAML format.
- Homepage: https://github.com/ruby/psych
- Documentation: http://www.rubydoc.info/gems/psych/
- Licenses: MIT
- Latest release: 5.3.1 (published 24 days ago)
- Last Synced: 2026-01-07T06:36:31.312Z (3 days ago)
- Versions: 153
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 172,579,866 Total
- Docker Downloads: 4,906,070,042
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 0.052%
- Downloads: 0.157%
- Maintainers (3)
rubygems.org: psych
Psych is a YAML parser and emitter. Psych leverages libyaml[https://pyyaml.org/wiki/LibYAML] for its YAML parsing and emitting capabilities. In addition to wrapping libyaml, Psych also knows how to serialize and de-serialize most Ruby objects to and from the YAML format.
- Homepage: https://github.com/ruby/psych
- Documentation: http://www.rubydoc.info/gems/psych/
- Licenses: MIT
- Latest release: 5.3.1 (published 24 days ago)
- Last Synced: 2026-01-07T01:15:05.901Z (3 days ago)
- Versions: 156
- Dependent Packages: 254
- Dependent Repositories: 11,869
- Downloads: 172,518,026 Total
- Docker Downloads: 4,906,070,042
-
Rankings:
- Docker downloads count: 0.001%
- Dependent packages count: 0.158%
- Dependent repos count: 0.315%
- Downloads: 0.385%
- Average: 0.856%
- Forks count: 1.866%
- Stargazers count: 2.412%
- Maintainers (3)
proxy.golang.org: github.com/ruby/psych
- Homepage:
- Documentation: https://pkg.go.dev/github.com/ruby/psych#section-documentation
- Licenses: mit
- Latest release: v5.3.1+incompatible (published 24 days ago)
- Last Synced: 2026-01-05T23:04:04.612Z (4 days ago)
- Versions: 69
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Forks count: 1.895%
- Stargazers count: 2.551%
- Average: 6.206%
- Dependent packages count: 9.576%
- Dependent repos count: 10.802%
Dependencies
- rake-compiler >= 0.4.1 development
- ruby-maven >= 0 development
- test-unit >= 0 development
- jar-dependencies >= 0.1.7
- stringio >= 0
- actions/checkout v3 composite
- ruby/setup-ruby v1 composite
- actions/checkout v3 composite
- ruby/setup-ruby-pkgs v1 composite
Score: 34.371310340342845