Python Module for FreeNAS Websocket API
This python module utilizes the FreeNAS Websocket API to get state from a FreeNAS instance.
Installation
pip install pyfreenas
Usage
from pyfreenas import Machine as FreeNASMachine
machine = await Machine.create(
"hostname.of.machine",
username="someuser",
password="password",
)
await machine.refresh()
Machine
Object representing a FreeNAS instance.
Disks
Available from machine.disks, contains information about the disks attached to the machine.
VirturalMachines
Available from machine.vms, contains information about the virtural machines available on the machine.
Each instance has the following methods availabe:
vm.startvm.stopvm.restart
Development
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
Metadata
Release files for pyfreenas 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyfreenas-0.1.0.tar.gz | 5.4 kB | Without provenance | Details for pyfreenas-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyfreenas-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pyfreenas-0.1.0-py3-none-any.whl |
Total release size: 11.9 kB
Release files / pyfreenas-0.1.0.tar.gz
| Download URL | pyfreenas-0.1.0.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
66e6a573dba84b6f0bcd75300dec6b324659988f0f86da85c76caab375cc146a
|
|
BLAKE2b-256 checksum How to use checksums |
9c12b2f7bca35e3d1c04619da98f33832fe226dbd3815b8594dc41101fcc4277
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2
|
Release files / pyfreenas-0.1.0-py3-none-any.whl
| Download URL | pyfreenas-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2f43f4a986f1a546c14b458281217b922eb157451a325c70a8d7a99f9406c7b7
|
|
BLAKE2b-256 checksum How to use checksums |
cbb618396e7e369e604e28f1d70a4a5b1b35e35353505ee77f8b50778b194f92
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2
|
Security for pyfreenas 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.