Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Readme
Primawera is a simple imager viewer with support for non-standard image data such as complex, floating point or 3D image data. For more detailed description about the basics of the viewer, please view the official website.
This package is available at PyPI. To install the package using pip
run:
python -m pip install primawera
More detailed information about version of packages is inside the pyproject.toml
file.
Make sure you have the latest version of setuptools
, pip
and venv
packages as the building requires some
newer features of setuptools
.
Inside the root folder run:
python -m build
The command should build a wheel file inside the dist
folder. To install it run:
pip install <PATH TO WHEEL FILE>
It is possible to run the viewer without any data.
from primawera.app import create_window
create_window()
If you want to visualise data inside a numpy array, you will have to import the function run_app
. Sometimes it is not
possible to automatically infer the mode (see Pillow image modes).
in which case it has to be provided manually.
from primawera.app import run_app
import numpy as np
data = np.random.random((10, 10, 10))
run_app(data)
# Or
run_app(data, mode="float")
# You can also add overlay data
overlay_data = np.random.random(data.shape) # same shape as data
run_app(data, mode="float", overlay_data=overlay_data)
Simply run
primawera
Image type | Legal Mode |
---|---|
Boolean | 1, bool |
Grayscale | gray, grey, grayscale, greyscale, I;16 I;16B |
RGB | rgb, color, colour |
Floating | f, float, floating |
Complex | c, complex |
FAQs
Simple image viewer with 3D, complex and floating images support.
We found that primawera 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.