A Python module for the FreeNAS websocket API.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyfreenas-0.1.0.tar.gz.
File metadata
- Download URL: pyfreenas-0.1.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66e6a573dba84b6f0bcd75300dec6b324659988f0f86da85c76caab375cc146a
|
|
| MD5 |
6b8f95dd46103149b45c1ec62f73a53f
|
|
| BLAKE2b-256 |
9c12b2f7bca35e3d1c04619da98f33832fe226dbd3815b8594dc41101fcc4277
|
File details
Details for the file pyfreenas-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pyfreenas-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f43f4a986f1a546c14b458281217b922eb157451a325c70a8d7a99f9406c7b7
|
|
| MD5 |
1dce9f9973d46780415aa5c53b8a3dd4
|
|
| BLAKE2b-256 |
cbb618396e7e369e604e28f1d70a4a5b1b35e35353505ee77f8b50778b194f92
|