[](https://badge.fury.io/py/osarch)
[](https://opensource.org/licenses/MIT)
[](https://pepy.tech/project/osarch)
# 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:
```bash
pip install osarch
```
## Usage
`OSArch` is easy to use. Here's a quick start guide:
```python
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](https://github.com/chigwell/osarch/issues).
## License
This project is licensed under the [MIT License](https://choosealicense.com/licenses/mit/).
Raw data
{
"_id": null,
"home_page": "https://github.com/chigwell/osarch",
"name": "osarch",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": null,
"author": "Eugene Evstafev",
"author_email": "chigwel@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/0c/97/83a38d46e34a66150fc81916e13b0158f06fd63a0a9d83efe01624f4e282/osarch-0.0.2.tar.gz",
"platform": null,
"description": "[](https://badge.fury.io/py/osarch)\n[](https://opensource.org/licenses/MIT)\n[](https://pepy.tech/project/osarch)\n\n# OSArch\n\n`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.\n\n## Installation\n\nTo install `OSArch`, use pip:\n\n```bash\npip install osarch\n```\n\n## Usage\n\n`OSArch` is easy to use. Here's a quick start guide:\n\n```python\nfrom osarch import detect_system_architecture\n\n# Get OS and architecture\nos_name, architecture = detect_system_architecture()\nprint(f\"OS: {os_name}, Architecture: {architecture}\")\n```\n\nThis code snippet will print the OS and architecture of your system, e.g., \"OS: linux, Architecture: 64\".\n\n## Features\n\n- Easy detection of system OS and architecture.\n- Simple API with minimal setup required.\n- Useful for environment-specific operations in your code.\n\n## Contributing\n\nContributions, issues, and feature requests are welcome! Feel free to check the [issues page](https://github.com/chigwell/osarch/issues).\n\n## License\n\nThis project is licensed under the [MIT License](https://choosealicense.com/licenses/mit/).\n",
"bugtrack_url": null,
"license": null,
"summary": "Detect system OS and architecture.",
"version": "0.0.2",
"project_urls": {
"Homepage": "https://github.com/chigwell/osarch"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "df7841274320c30860a8346782424410085728296758dc8c92db9fda8ec8e118",
"md5": "a94060a6882d52ae9d7d15511096016b",
"sha256": "9a9f77e0c8f959770f05ee92f9c6f6a45a2dc39a8f397578d1d950f59b9e2b4c"
},
"downloads": -1,
"filename": "osarch-0.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a94060a6882d52ae9d7d15511096016b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 3584,
"upload_time": "2024-03-21T19:31:20",
"upload_time_iso_8601": "2024-03-21T19:31:20.641738Z",
"url": "https://files.pythonhosted.org/packages/df/78/41274320c30860a8346782424410085728296758dc8c92db9fda8ec8e118/osarch-0.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "0c9783a38d46e34a66150fc81916e13b0158f06fd63a0a9d83efe01624f4e282",
"md5": "ce7a2d76840ea6cc8c3e9128fa5ced0b",
"sha256": "3a809906a0d80133de718e9b43096c7ebed946646545cf2c6ede113e1641c059"
},
"downloads": -1,
"filename": "osarch-0.0.2.tar.gz",
"has_sig": false,
"md5_digest": "ce7a2d76840ea6cc8c3e9128fa5ced0b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 3088,
"upload_time": "2024-03-21T19:31:23",
"upload_time_iso_8601": "2024-03-21T19:31:23.268924Z",
"url": "https://files.pythonhosted.org/packages/0c/97/83a38d46e34a66150fc81916e13b0158f06fd63a0a9d83efe01624f4e282/osarch-0.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-21 19:31:23",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "chigwell",
"github_project": "osarch",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "osarch"
}