Skip to main content

API wrapper for the Quokka security software

Project description

Quokka.io

This project provides a Python client for interacting with the Quokka API. The client allows users to perform various operations such as uploading files for scanning, retrieving scan results, downloading reports, and managing subgroups.

https://www.quokka.io/

Table of Contents

Installing

To install the Quokka API Client, use pip:

pip install quokkaio

Usage

Initialization

First, import the Quokka class and create an instance with your API key:

from quokka import Quokka

api_key = "YOUR_API_KEY"
quokka = Quokka(api_key)

Push Scan

Upload an APK or IPA file for scanning:

the_file = "path/to/your/app.apk"
subgroup_ids = ["subgroup1", "subgroup2"]
response_data, platform = quokka.push_scan(the_file, subgroup_ids)
print(response_data, platform)

Get Subgroups

Retrieve a list of subgroups:

quokka.get_sub_groups()

Retrieve a specific subgroup ID by name:

subgroup_id = quokka.get_sub_groups(the_group="specific_group_name")
print(subgroup_id)

Wait for Scan Completion

Wait for a scan to complete:

uuid = "scan_uuid"
quokka.wait_for_scan_complete(uuid, maxWaitTime=30)  # maxWaitTime in minutes

Download PDF Report

Download the scan results as a PDF file:

uuid = "scan_uuid"
quokka.download_pdf(uuid)

Get App Issues

Retrieve app issues in JSON format:

uuid = "scan_uuid"
issues = quokka.get_app_issue(uuid)
print(issues)

Get Results

Retrieve specified results in JSON format from a start date:

from datetime import datetime

start_date = datetime(2023, 1, 1)
results = quokka.get_results(start_date)
print(results)

Get Submitted Apps

Retrieve submitted apps within a date range:

from datetime import datetime

start_date = datetime(2023, 1, 1)
end_date = datetime(2023, 6, 1)
apps = quokka.get_apps(start_date, end_date)
print(apps)

Logging

This client uses Python's built-in logging module to provide debug information. By default, logging is set to the DEBUG level. You can configure the logging level and format as needed.

Contributing

If you want to contribute to this project, please fork the repository and create a pull request with your changes. Make sure to write tests and documentation for new features or modifications.

License

This project is licensed under the MIT License. See the LICENSE file for details.

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

quokkaio-0.2.1.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quokkaio-0.2.1-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file quokkaio-0.2.1.tar.gz.

File metadata

  • Download URL: quokkaio-0.2.1.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.15

File hashes

Hashes for quokkaio-0.2.1.tar.gz
Algorithm Hash digest
SHA256 56516ce3be0303b7737f7b6f4d144515f0fa974b467c7645dadc05ffd80ef91d
MD5 8b01deabd9e73cede55e94744b028465
BLAKE2b-256 1ece88b54c32e377c76c8ab62971d3dee0aee6bdb4ee05ad402fd9e7aca10732

See more details on using hashes here.

File details

Details for the file quokkaio-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: quokkaio-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.15

File hashes

Hashes for quokkaio-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 17c46f4d25a556ba9d26e0a715a1730a43f8c97eb51b4b3deaa6e5f7add0f4d3
MD5 85dad30a87cc6d81b1a6f845547bebe2
BLAKE2b-256 5790bb18cf872a5e6cefe48e2445d7e5f2b68c0bf603f070a0e90f235124c9c3

See more details on using hashes here.

Supported by

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