A Python library for OS-related utilities
Project description
oslib
Una libreria Python leggera, veloce e affidabile per ottenere informazioni sul dispositivo e fornire utility di sistema.
Installazione
Installa la libreria con pip:
pip install demenigeco-oslib
Verifica che l'installazione sia andata a buon fine:
python -c "import oslib; print('si.')"
Se il comando stampa:
si.
la libreria è installata correttamente.
Esempi d'utilizzo
Informazioni sul sistema operativo
from oslib import sys_info
os_tag = sys_info.get_platform_tag()
print(os_tag)
# Esempio output:
# windows-x64
Utility per i percorsi
from oslib import path_utils
path = ("C:\\", "Windows", "System32", "..", "Temp")
normalized_path = path_utils.normalize(path)
print(normalized_path)
# Output:
# C:\Windows\Temp
Caratteristiche
- Rilevamento del sistema operativo e dell'architettura.
- Utility per normalizzare e gestire i percorsi.
- API semplice e intuitiva.
- Compatibile con Windows, Linux e macOS.
- Leggera e senza dipendenze inutili.
Licenza
Distribuita sotto licenza MIT.
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 demenigeco_oslib-0.1.0.tar.gz.
File metadata
- Download URL: demenigeco_oslib-0.1.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
667a648080df36e2bea19c480dc4ac9162aa325c5166e283d16faa9db77f836d
|
|
| MD5 |
e299ef4a62c4bdd6d66e9faed002fd2c
|
|
| BLAKE2b-256 |
147890823677f551be94cb5da0fd20e2c80d52943bc463caee674b50ae07bac5
|
Provenance
The following attestation bundles were made for demenigeco_oslib-0.1.0.tar.gz:
Publisher:
python-publish.yml on DeMENIGECO/oslib
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
demenigeco_oslib-0.1.0.tar.gz -
Subject digest:
667a648080df36e2bea19c480dc4ac9162aa325c5166e283d16faa9db77f836d - Sigstore transparency entry: 2235344722
- Sigstore integration time:
-
Permalink:
DeMENIGECO/oslib@f03eef6129b73f4df3e09e19176fb4dc880f28ea -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/DeMENIGECO
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@f03eef6129b73f4df3e09e19176fb4dc880f28ea -
Trigger Event:
release
-
Statement type:
File details
Details for the file demenigeco_oslib-0.1.0-py3-none-any.whl.
File metadata
- Download URL: demenigeco_oslib-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71e8ed6e38ff986b62b950cfbf5d010b717a77dd4399069436798ddc8c639b15
|
|
| MD5 |
8e31d8cba2a319294d950bb8f618d2f6
|
|
| BLAKE2b-256 |
2a8ae63d6ceedf9700d5e83caad728ecdcba452ab9300484cc35788f1c419879
|
Provenance
The following attestation bundles were made for demenigeco_oslib-0.1.0-py3-none-any.whl:
Publisher:
python-publish.yml on DeMENIGECO/oslib
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
demenigeco_oslib-0.1.0-py3-none-any.whl -
Subject digest:
71e8ed6e38ff986b62b950cfbf5d010b717a77dd4399069436798ddc8c639b15 - Sigstore transparency entry: 2235345180
- Sigstore integration time:
-
Permalink:
DeMENIGECO/oslib@f03eef6129b73f4df3e09e19176fb4dc880f28ea -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/DeMENIGECO
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@f03eef6129b73f4df3e09e19176fb4dc880f28ea -
Trigger Event:
release
-
Statement type: