Skip to main content

Detect system OS and architecture.

Project description

PyPI version License: MIT Downloads LinkedIn

OSArch

OSArch is a lightweight Python package designed to detect the operating system (OS) and architecture of the system running your Python code. It simplifies accessing system details with minimal code.

Installation

To install OSArch, use pip:

pip install osarch

Usage

OSArch is easy to use. Here's a quick start guide:

from osarch import detect_system_architecture

# Get OS and architecture
os_name, architecture = detect_system_architecture()
print(f"OS: {os_name}, Architecture: {architecture}")

This code snippet will print the OS and architecture of your system, e.g., "OS: linux, Architecture: 64".

Features

  • Easy detection of system OS and architecture.
  • Simple API with minimal setup required.
  • Useful for environment-specific operations in your code.

Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page.

License

This project is licensed under the MIT License.

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

osarch-2025.5.160657.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

osarch-2025.5.160657-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file osarch-2025.5.160657.tar.gz.

File metadata

  • Download URL: osarch-2025.5.160657.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.11

File hashes

Hashes for osarch-2025.5.160657.tar.gz
Algorithm Hash digest
SHA256 07d6db57628633b3a768ee05c22f1c4fd8944b9cd49402cc7266b6c31805bdc9
MD5 03b9bc6bb8039706db2c00090860d929
BLAKE2b-256 36695f5d64ba3c3e4c5ea072dd41a81aa37360aa45454ea4e2d7c4177ef2216d

See more details on using hashes here.

File details

Details for the file osarch-2025.5.160657-py3-none-any.whl.

File metadata

  • Download URL: osarch-2025.5.160657-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.11

File hashes

Hashes for osarch-2025.5.160657-py3-none-any.whl
Algorithm Hash digest
SHA256 cfb0263efe171d48a8b2e77eee9478fe48f81c6df1168af71cb319a6c135c8a0
MD5 9f605de4e8b8cd49196df723a468a0fd
BLAKE2b-256 0a01993d3b39dfeb90fe4d9a4662f683d58cd191ef6a582708e4dbf0756d05fc

See more details on using hashes here.

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