Skip to main content

Detect system OS and architecture.

Project description

PyPI version License: MIT Downloads

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-0.0.1.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

osarch-0.0.1-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

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