Skip to main content

pysquonk

PySquonk

Pysquonk is a python API wrapper round the Informatics Matters Squonk Rest Services. It can be used to submit jobs, check their status and retreive the jobs results. It can be used in two ways:

  • from the command line
  • writing python scripts using the API

Installation

From github https://github.com/InformaticsMatters/pysquonk

From pip: pip install im-pysquonk

Running from the command line

Copy the file config.ini from github and save it into the directory you are going to run the command from. Edit your username and password into the file, or pass them via the command line (see below). The job to run is specified using yaml files. Examples of yaml files for various jobs are available in the yaml directory. For example, if you installed with pip, the command;

pysquonk -r yaml/pipelines.rdkit.sucos.o3da.yaml -o outdir

will run the job defined by the file pipelines.rdkit.sucos.o3da.yaml and write its output to the directory outdir. To get help run.

pysquonk -h

If you did install pysquonk via pip, but you have a directory SQUONKDIR containing the contents of the repository then the command would be:

python SQUONKDIR/squonk -h

If you want to run a job that does not have an example in the yaml directory, then the command:

pysquonk -s pipelines.rdkit.sucos.o3da -o outdir

will write out an example yaml file that you can amend to directory outdir

Using the Python API

The API documentation is in doc/squonk.md. There is an example program in test_harness.py

Development and Testing

To run all the test jobs in the yaml sub directory, from the top level of the repo run:

python test_jobs.py

(will prompt for username and password). -r option will run one of the jobs.

To run the script that executes the API functions:

python test_harness.py (will prompt for username and password).

Metadata

Release files for im-pysquonk 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for im-pysquonk 1.0.1
File Interpreter ABI Platform
im_pysquonk-1.0.1-py3-none-any.whl Python 3 none any Details

Release files / im_pysquonk-1.0.1-py3-none-any.whl

Download URL im_pysquonk-1.0.1-py3-none-any.whl
Size 20.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3c9199e6fd2e5c8b99ee44757cc263ff46b5c014a381c08f4abf0a57efa4742f
BLAKE2b-256 checksum
How to use checksums
ad37561baf359aefa0d115c4034403a27aaa9111be6b2f5000f2fa5aa0fd682c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.8

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page