A library to query system architecture
Archspec (Python bindings)
Archspec aims at providing a standard set of human-understandable labels for various aspects of a system architecture like CPU, network fabrics, etc. and APIs to detect, query and compare them.
This project grew out of Spack and is currently under active development. At present it supports APIs to detect and model compatibility relationships among different CPU microarchitectures.
Getting started with development
archspec Python package needs poetry to
be installed from VCS sources. The preferred method to install it is via
its custom installer outside of any virtual environment:
$ curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
You can refer to Poetry's documentation
for further details or for other methods to install this tool. You'll also need
to run unit test:
$ pip install --user tox
Finally you'll need to clone the repository:
$ git clone --recursive https://github.com/archspec/archspec.git
Running unit tests
Once you have your environment ready you can run
archspec unit tests
tox from the root of the repository:
$ tox [ ... ] py27: commands succeeded py35: commands succeeded py36: commands succeeded py37: commands succeeded py38: commands succeeded pylint: commands succeeded flake8: commands succeeded black: commands succeeded congratulations :)
Archspec is distributed under the terms of both the MIT license and the Apache License (Version 2.0). Users may choose either license, at their option.
All new contributions must be made under both the MIT and Apache-2.0 licenses.
SPDX-License-Identifier: (Apache-2.0 OR MIT)
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size archspec-0.1.2-py2.py3-none-any.whl (40.7 kB)||File type Wheel||Python version py2.py3||Upload date||Hashes View|
|Filename, size archspec-0.1.2.tar.gz (31.2 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for archspec-0.1.2-py2.py3-none-any.whl