chibi_fstab
small lib for read and write fstab files
Free software: WTFPL
Documentation: https://chibi-fstab.readthedocs.io.
Install
pip install chibi_fstab
Usage
cat > /etc/fstab << 'endmsg'
# /dev/sdd2 LABEL=ROOT
UUID=00000000-aaaa-3333-9999-111111111111 / ext4 rw,relatime 0 1
# /dev/sdc2 LABEL=VAR
UUID=11111111-2222-3333-4444-666666666666 /var ext4 rw,relatime 0 2
UUID=99999999-3333-5555-aaaa-ffffffffffff /home ext4 rw,relatime 0 2
/dev/mapper/games /home/misuzu/games ext4 rw,relatime 0 2
# /dev/sda1 LABEL=BOOT
UUID=aaaa-bbbb /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2
# /dev/sdc1 LABEL=SWAP
UUID=aaaaaaaa-bbbb-cccc-dddd-ffffffffffff none swap defaults 0 0
endmsg
from chibi_fstab import Chibi_fstab
blocks = Chibi_fstab.default.read()
assert block[0] == {
"uuid": '00000000-aaaa-3333-9999-111111111111',
"mount": '/',
"fstype": 'ext4',
"options": 'rw,relatime',
"required": 0,
"fs_passno": 1,
}
# change var to tmp
blocks[1].mount = "/tmp"
Chibi_fstab.default.write( blocks )
result of script
UUID=00000000-aaaa-3333-9999-111111111111 / ext4 rw,relatime 0 1
UUID=11111111-2222-3333-4444-666666666666 /tmp ext4 rw,relatime 0 2
UUID=99999999-3333-5555-aaaa-ffffffffffff /home ext4 rw,relatime 0 2
/dev/mapper/games /home/misuzu/games ext4 rw,relatime 0 2
UUID=aaaa-bbbb /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2
UUID=aaaaaaaa-bbbb-cccc-dddd-ffffffffffff none swap defaults 0 0
alternative read
from chibi.file import Chibi_path
from chibi_fstab import Chibi_fstab
blocks = Chibi_path.open( chibi_file_class=Chibi_fstab ).read()
assert block[0] == {
"uuid": '00000000-aaaa-3333-9999-111111111111',
"mount": '/',
"fstype": 'ext4',
"options": 'rw,relatime',
"required": 0,
"fs_passno": 1,
}
History
1.0.0 ( 2026-03-20 )
implementacion basica de lectura del archivo de fstab
implementacion basica de escritura del archivo de fstab
Metadata
Release files for chibi-fstab 1.0.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 | |
|---|---|---|---|---|
| chibi_fstab-1.0.0.tar.gz | 9.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chibi_fstab-1.0.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 13.4 kB
Release files / chibi_fstab-1.0.0.tar.gz
| Download URL | chibi_fstab-1.0.0.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3a1013c5bdbe0495f936318c3bcc284b8113f4e7f3a59ed22efdcb2ae184f846
|
|
BLAKE2b-256 checksum How to use checksums |
95556c60fd2dc561b4779cbcb51fbb32306ad16b8112b5be093dc1f6a7621cc6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / chibi_fstab-1.0.0-py2.py3-none-any.whl
| Download URL | chibi_fstab-1.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
645785c2b97820aa017cdcf180700429d10351f04532ef17bf0d78053044e9fb
|
|
BLAKE2b-256 checksum How to use checksums |
7d9166c3ab354a268b030a50eebbf68c65c00802c0fb71295efca70b12d4d394
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Security for chibi-fstab 1.0.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.