Skip to main content

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.

Metadata

Release files for osarch 2025.5.160657

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for osarch 2025.5.160657
File Size Uploaded Provenance Actions
osarch-2025.5.160657.tar.gz 3.2 kB Without provenance Details for osarch-2025.5.160657.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for osarch 2025.5.160657
File Interpreter ABI Platform Actions
osarch-2025.5.160657-py3-none-any.whl Python 3 none any Details for osarch-2025.5.160657-py3-none-any.whl

Total release size: 7.0 kB

Release files / osarch-2025.5.160657.tar.gz

Download URL osarch-2025.5.160657.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
07d6db57628633b3a768ee05c22f1c4fd8944b9cd49402cc7266b6c31805bdc9
BLAKE2b-256 checksum
How to use checksums
36695f5d64ba3c3e4c5ea072dd41a81aa37360aa45454ea4e2d7c4177ef2216d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.11

Release files / osarch-2025.5.160657-py3-none-any.whl

Download URL osarch-2025.5.160657-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cfb0263efe171d48a8b2e77eee9478fe48f81c6df1168af71cb319a6c135c8a0
BLAKE2b-256 checksum
How to use checksums
0a01993d3b39dfeb90fe4d9a4662f683d58cd191ef6a582708e4dbf0756d05fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.11

Security for osarch 2025.5.160657

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page