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

Uploaded Source

Built Distribution

osarch-0.0.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for osarch-0.0.2.tar.gz
Algorithm Hash digest
SHA256 3a809906a0d80133de718e9b43096c7ebed946646545cf2c6ede113e1641c059
MD5 ce7a2d76840ea6cc8c3e9128fa5ced0b
BLAKE2b-256 0c9783a38d46e34a66150fc81916e13b0158f06fd63a0a9d83efe01624f4e282

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for osarch-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9a9f77e0c8f959770f05ee92f9c6f6a45a2dc39a8f397578d1d950f59b9e2b4c
MD5 a94060a6882d52ae9d7d15511096016b
BLAKE2b-256 df7841274320c30860a8346782424410085728296758dc8c92db9fda8ec8e118

See more details on using hashes here.

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