A Simple Ruby Library That Interacts With macOS Keychain
$ git clone https://github.com/krishpranav/keychainsecurity
require 'keychainsecurity'
Security::Keychain::default_keychain.filename
Security::InternetPassword.find(server: "itunesconnect.apple.com").password # your password