Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

demenigeco_oslib-0.1.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

demenigeco_oslib-0.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

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

Hashes for demenigeco_oslib-0.1.0.tar.gz
Algorithm Hash digest
SHA256 667a648080df36e2bea19c480dc4ac9162aa325c5166e283d16faa9db77f836d
MD5 e299ef4a62c4bdd6d66e9faed002fd2c
BLAKE2b-256 147890823677f551be94cb5da0fd20e2c80d52943bc463caee674b50ae07bac5

See more details on using hashes here.

Provenance

The following attestation bundles were made for demenigeco_oslib-0.1.0.tar.gz:

Publisher: python-publish.yml on DeMENIGECO/oslib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file demenigeco_oslib-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for demenigeco_oslib-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 71e8ed6e38ff986b62b950cfbf5d010b717a77dd4399069436798ddc8c639b15
MD5 8e31d8cba2a319294d950bb8f618d2f6
BLAKE2b-256 2a8ae63d6ceedf9700d5e83caad728ecdcba452ab9300484cc35788f1c419879

See more details on using hashes here.

Provenance

The following attestation bundles were made for demenigeco_oslib-0.1.0-py3-none-any.whl:

Publisher: python-publish.yml on DeMENIGECO/oslib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page