QMENTA client library
This library allows interaction with the QMENTA platform. It works with Python 2 and 3. We recommend using Python 3. Check the tutorial and docs.
Installation
If you do not have PIP installed, on Ubuntu/Debian, it can be installed by:
sudo apt-get install python3-pip
Install QMENTA client lib using PIP:
pip install qmenta-client
Development
How to install dependencies on MacOS
Download and install Python 3.10 from https://www.python.org/downloads/
Install Xcode Command Line Tools:
xcode-select --install
Install uv, then install the Python dependencies of QMENTA client library:
cd mintapi/
uv sync
Run the unit tests and build the docs:
uv run pytest test/unittesting
uv run sphinx-build -W doc build/docs
The docs need Python 3.10–3.12 (Sphinx 5 does not support Python 3.13). If
your default Python is newer, prefix the commands with UV_PYTHON=3.12.
Install pre-commit hook: Formatting and linting
This hook formats the Python code with Black and checks for linting errors with flake8. If one of the tools fails, the code will be left formatted but there won't be a commit, so you will have potentially fix the linting errors and then stage and commit the formatted files.
In order to install this hook, first install the following Python library in your Python environment:
pip install pre-commit
Then run the following command to install the pre-commit hook:
pre-commit
pre-commit install
pre-commit autoupdate
Check that it executes properly by running:
pre-commit run --all-files
A more in-depth explanation of the pre-commit utility can be found here.
Install commit-msg hook: JIRA issue in commit message
This hook inserts a prefix with the JIRA issue identifier, so that commits are linked to their issue. It runs after your commit message is written, and the JIRA issue identifier is extracted from the branch name.
For example, if you are working in issue NEURO-1234, and you write a commit message like the following: "Updated requirements", the final commit message will be "NEURO-1234 - Updated requirements"
In order to install this hook, open a terminal in your local copy of the repository and run the following commands:
wget -q -O .git/hooks/commit-msg https://bit.ly/2SZ5WJO
chmod 777 .git/hooks/commit-msg
Unit Tests
Run tests using script file
scripts/run_unit_tests.sh
API Tests
Warning: needs the .env file with the following configuration and credentials
QMENTA_PLATFORM_LOCATION=https://platform.qmenta.com,
QMENTA_PLATFORM_USR from qmenta_tools project secret "prod_user" and
QMENTA_PLATFORM_PSW from qmenta_tools project secret "prod_password"
Run tests using script file
scripts/run_API_tests.sh
Keep track of changes
Check the CONTRIBUTING.md file to see how to use scriv and keep track of the changes
Release in master
Update your local branches
git checkout develop && git pull
git checkout master && git pull
Create a new branch for releasing (X.Y.z is the version to release)
git checkout -b release-X.Y.z
git merge develop
scriv collect # update changelog
git push --set-upstream origin release-X.Y.z
Make and commit other changes, such as updating changelog
git commit -am "Update repository code for release"
git push
Create a Pull Request, wait for approvals and merge the release branch to master.
After release, merge the changes in master to develop
git checkout develop && git pull && git merge master
Metadata
Release files for qmenta-client 4.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| qmenta_client-4.0.0.tar.gz | 30.7 kB | Without provenance | Details for qmenta_client-4.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qmenta_client-4.0.0-py3-none-any.whl | Python 3 | none | any | Details for qmenta_client-4.0.0-py3-none-any.whl |
Total release size: 63.9 kB
Release files / qmenta_client-4.0.0.tar.gz
| Download URL | qmenta_client-4.0.0.tar.gz |
|---|---|
| Size | 30.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6cfdaa957483afd06c0d1a66f5df91c3c24b943a316c59b829dd355843295221
|
|
BLAKE2b-256 checksum How to use checksums |
8f86c91e528477adbf2becf103be336101f9a25f6e774383ef94b020635df634
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / qmenta_client-4.0.0-py3-none-any.whl
| Download URL | qmenta_client-4.0.0-py3-none-any.whl |
|---|---|
| Size | 33.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ea806faf69ef9b6875393bc7bb9b2bf2de8fd2b01cfccc86b51b37da60cbe3a6
|
|
BLAKE2b-256 checksum How to use checksums |
2e3a3e63d15441504db3b07d30abba749de761af70ee3f0429dece07926ee6d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for qmenta-client 4.0.0
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.