API for compliance tool
Project description
gap-client
Introduction
This is the official Python client for Gap Solutions APIs.
It is currently in heavy development, and not yet released in full version.
It is implemented as a Pyhton package, and made available on PyPi
Version string is stored in VERSION, and used by make to correctly tag artifacts.
Requirements are managed in requirements.in and compiled to requirements.txt with make req
.
Development
Please note that this project uses a Makefile to manage it. Simply type make
in the project folder for help
Set up environment
- Install GNU make
- Install Python 3.9 or newer
- NOTE: Python for windows is here
- Create virtual environment. (example:
python -m venv ~/my_venv
) - Activate virtual environment. (example:
source ~/my_venv/bin/activate
) - Install requirements for project:
make req
Test
- Run all test:
make test
-- or --
- Go to tests dir:
cd tests
- List available tests:
make
- Chose one test to run:
make gap
Build
- Change version string:
nano VERSION
(edit and save the string) - Build project package:
make pypi-build
Deploy
- Push project package to pypi:
make pypi-push
- Verify that the package version is uploaded to https://pypi.org/project/gap-client/
Use
In your project:
- Put
gap_client>=1.0.0
in projectrequirements.txt
(substitute the version number to the latest) - Reload requirements with:
pip install -r requirements.txt
- Import the package with:
from gap_client import Client as gap
- Use the client with:
print(gap.do_something())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gap-client-0.0.1.tar.gz
(7.4 kB
view details)
File details
Details for the file gap-client-0.0.1.tar.gz
.
File metadata
- Download URL: gap-client-0.0.1.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8aafd1ea1fe4d59e8222c066f9055641c399195e205b643d87111f3da348fd6 |
|
MD5 | ea079e034b4aede0de65777a63eb8928 |
|
BLAKE2b-256 | eca1bf54215d9bab3f82e07f3fe61f743efec9b81f72e57ab0a6bfe3dafa5ff3 |