Skip to main content

API for compliance tool

Project description

gap-client

Gap Solutions Logo

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

  1. Install GNU make
    • NOTE: you will need gnu make. On windows, you can use WSL or gitbash).
  2. Install Python 3.9 or newer
    • NOTE: Python for windows is here
  3. Create virtual environment. (example: python -m venv ~/my_venv)
  4. Activate virtual environment. (example: source ~/my_venv/bin/activate)
  5. Install requirements for project: make req

Test

  1. Run all test: make test

-- or --

  1. Go to tests dir: cd tests
  2. List available tests: make
  3. Chose one test to run: make gap

NOTE: You can find the source code for the tests here

Build

  1. Change version string: nano VERSION (edit and save the string)
  2. Build project package: make pypi-build

Deploy

  1. Make sure PYPI_TOKEN environment variable is set (set in pypi.org account)
  2. Push project package to pypi: make pypi-push
  3. Verify that the package version is uploaded to https://pypi.org/project/gap-client/

Use

In your project:

  1. Put gap_client>=1.0.0 in project requirements.txt (substitute the version number to the latest)
  2. Reload requirements with: pip install -r requirements.txt
  3. Import the package with: from gap_client import Client as gap
  4. Use the client. This example simply prints a hellp text: print(gap.hello_gap())

Examples

You can find examples here

Project details


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.1.1.tar.gz (33.8 kB view details)

Uploaded Source

File details

Details for the file gap-client-0.1.1.tar.gz.

File metadata

  • Download URL: gap-client-0.1.1.tar.gz
  • Upload date:
  • Size: 33.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for gap-client-0.1.1.tar.gz
Algorithm Hash digest
SHA256 748b77852cb3c0a2fb236829b898f236dd9b3ed7684055682b8f7f907720f428
MD5 9749ddb91684b407f58f52bc86e8dd02
BLAKE2b-256 ffa47cdd40d52a4cdbe8dcd6d3210dbef0d141692fde00c60ef1ff75d88a7c35

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page