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

Build

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

Deploy

  1. Push project package to pypi: make pypi-push
  2. 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 with: print(gap.do_something())

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

Uploaded Source

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

Hashes for gap-client-0.0.1.tar.gz
Algorithm Hash digest
SHA256 b8aafd1ea1fe4d59e8222c066f9055641c399195e205b643d87111f3da348fd6
MD5 ea079e034b4aede0de65777a63eb8928
BLAKE2b-256 eca1bf54215d9bab3f82e07f3fe61f743efec9b81f72e57ab0a6bfe3dafa5ff3

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