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

Uploaded Source

File details

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

File metadata

  • Download URL: gap-client-0.1.0.tar.gz
  • Upload date:
  • Size: 33.6 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.1.0.tar.gz
Algorithm Hash digest
SHA256 bc15d421ca1d7e6468436be449f35a2aa60d5388b37be88a2ddac1b0ba8ae91a
MD5 0d10b2ef60877114194d397fabc82b9f
BLAKE2b-256 d51f1ee6cb973dae182ce5f4e2f968029abd04346e17e7f58afa1498a866f6b6

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