Skip to main content

Lint Build

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.start
  • vm.stop
  • vm.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)

Source distribution for pyfreenas 0.1.0
File Size Uploaded
pyfreenas-0.1.0.tar.gz 5.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyfreenas 0.1.0
File Interpreter ABI Platform
pyfreenas-0.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page