
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
This python module utilizes the TrueNAS Websocket API to get state from a TrueNAS instance.
pip install aiotruenas-client
from aiotruenas_client import CachingMachine as TrueNASMachine
machine = await TrueNASMachine.create(
"hostname.of.machine",
api_key="someapikey"
)
datasets = await machine.get_datasets()
disks = await machine.get_disks()
jails = await machine.get_jails()
pools = await machine.get_pools()
vms = await machine.get_vms()
Alternatively, a username and password may also be supplied.
Machine
Object representing a TrueNAS instance.
Dataset
Available from machine.datasets
, contains information about the datasets on the pools on the machine.
Disk
Available from machine.disks
, contains information about the disks attached to the machine.
Jail
Available from machine.jails
, contains information about the jails available on the machine.
Pool
Available from machine.pools
, contains information about the ZFS pools known to the machine.
VirturalMachine
Available from machine.vms
, contains information about the virtural machines available on the machine.
Each instance has the following methods availabe:
vm.start
vm.stop
vm.restart
python3.8 -m venv .venv
source .venv/bin/activate
# Install Requirements
pip install -r requirements.txt
# Install Dev Requirements
pip install -r requirements-dev.txt
# One-Time Install of Commit Hooks
pre-commit install
When adding support for a new object, or updating existing code, it can be useful to see the raw response from the
TrueNAS machine from time to time. In order to help do that easily, you can drop a .auth.yaml
file in the root of
the repository, with the following content:
host: "some.host.name"
api_key: "someapikey"
Use scripts/invoke_method.py
to call a method:
python scripts/invoke_method.py disk.query
Use scripts/subscribe.py
to subscribe to a topic:
python scripts/subscribe.py reporting.realtime
Run either with -h to see additional options.
Tests are run with pytest
.
FAQs
A Python client library for the TrueNAS API
We found that aiotruenas-client 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.