
Security News
Opengrep Adds Apex Support and New Rule Controls in Latest Updates
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
Save and load NumPy npy
and npz
files in Ruby - no Python required
:fire: Uses Numo for blazing performance
Add this line to your application’s Gemfile:
gem "npy"
npy
files contain a single array
Save an array
x = Numo::Int32[0..9]
Npy.save("x.npy", x)
Load an npy
file
x = Npy.load("x.npy")
Load an npy
string
byte_str = File.binread("x.npy")
x = Npy.load_string(byte_str)
npz
files contain multiple arrays
Save multiple arrays
x = Numo::Int32[0..9]
y = x * 2
Npy.save_npz("data.npz", x: x, y: y)
Load an npz
file
data = Npy.load_npz("data.npz")
Get keys
data.keys
Get an array
data["x"]
Arrays are lazy loaded for performance
View the changelog
Everyone is encouraged to help improve this project. Here are a few ways you can help:
To get started with development:
git clone https://github.com/ankane/npy.git
cd npy
bundle install
bundle exec rake test
FAQs
Unknown package
We found that npy demonstrated a healthy version release cadence and project activity because the last version was released less than 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
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.