Skip to main content

py-freebsd_sysctl

Native Python wrapper for FreeBSD sysctls using libc.

This Python 3 interface for FreeBSD sysctl has no third party dependency and does not require a compile step to install. It is meant for performant (read) access to sysctls, their type, value and description.

>>> from freebsd_sysctl import Sysctl
>>> Sysctl("security.jail.enforce_statfs").value
2
>>> Sysctl("security.jail.enforce_statfs").ctl_type
<class 'freebsd_sysctl.types.INT'>
>>> Sysctl("security.jail.enforce_statfs").description
'Processes in jail cannot see all mounted file systems (deprecated)'

With either a sysctl name or oid the other properties provide memoized access to lazy-loaded properties.

Properties

Read/Write

Property Name Description
name String identifier of the sysctl.
oid List of Integer values identifying the sysctl.

Read-Only

Read Property Name Description
value Value of a sysctl. sysctl <name>
ctl_type sysctl type class. sysctl -t <name>
description Text description of the sysctl. sysctl -d <name>

This project is heavily inspired by johalun/sysctl-rs. Kudos to @fabianfreyer for untiring support and debugging.

It is developed and maintained by Stefan Grönke (@gronke) and published under BSD 2-Clause License.

Release files for freebsd-sysctl 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for freebsd-sysctl 0.0.7
File Size Uploaded
freebsd-sysctl-0.0.7.tar.gz 5.6 kB Details

Release files / freebsd-sysctl-0.0.7.tar.gz

Download URL freebsd-sysctl-0.0.7.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
95a5558d1dd50fa060c4a692a5730cb42d75b97b2af70b00e18e95a49502ddf4
BLAKE2b-256 checksum
How to use checksums
4785ba9d6f72ee4bc54ae6a46a208dd3ce9f2c3ea101f18ea645b7730a96e99c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.7.4

Release history Release notifications | RSS feed

This release

0.0.7 This release

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

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