
Security Fundamentals
Obfuscation 101: Unmasking the Tricks Behind Malicious Code
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
A down-to-earth approach to colors
ochre is a tiny Python package for working with colors in a pragmatic way. The focus is on simplicity and ease of use, but also on human perception.
colorsys
module$ pip install ochre
In [1]: from ochre import Hex
In [2]: color = Hex("#CC7722")
In [3]: color.web_color
Out[3]: WebColor('peru')
In [4]: color = color.hcl
In [5]: color.hue
Out[5]: 0.6373041934059377
In [6]: import math
In [7]: color.hue += math.radians(30)
In [8]: color.hue
Out[8]: 1.1609029690042365
In [9]: color.web_color
Out[9]: WebColor('goldenrod')
Photo by Nicola Carter on Unsplash.
FAQs
A tiny Python package for working with colors in a pragmatic way
We found that ochre 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 Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
Security News
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.
Security News
Biome's v2.0 beta introduces custom plugins, domain-specific linting, and type-aware rules while laying groundwork for HTML support and embedded language features in 2025.