Skip to main content

NEOS Client

This is a Neos Client for NEOS Server: XML-RPC api. While the official client only provides a queue or submit job call, this client supports the following methods:

  • is_alive(): Equivalent to sending a ping to the server and checking the result.
  • get_job_status(job_number, job_password): Equivalent to getJobStatus(jobNumber, password) in NEOS Server RPC.
  • get_completion_code(job_number, job_password): Equivalent to getCompletionCode(jobNumber, password) in NEOS Server RPC.
  • get_job_info(job_number, job_password): Equivalent to getJobInfo(jobNumber, password) in NEOS Server RPC.
  • kill_job(job_number, job_password, message): Equivalent to killJob(jobNumber, password, killmsg="") in NEOS Server RPC.
  • get_final_results(job_number, job_password, is_blocking): Equivalent to getFinalResults(jobNumber, password) if it's blocking. If it's not blocking, it Equivalent to getFinalResultsNonBlocking(jobNumber, password).
  • email_job_results(job_number, job_password): Equivalent to emailJobResults(jobNumber, password) in NEOS Server RPC.
  • get_intermediate_results(job_number, job_password, offset, is_blocking): Equivalent to getIntermediateResults(jobNumber, password, offset) if it's blocking. If it's not blocking, it Equivalent to getIntermediateResultsNonBlocking(jobNumber, password).
  • download_output(job_number, job_password, working_directory): Downloads the results and extracts the files to the given working directory. It Equivalent to getOutputFile(job_number, job_password) in NEOS Server RPC and extracting it to the working directory.
  • print_queue(): Prints the current queue on the server if the server is alive.
  • submit_job(xml_path, is_blocking, working_directory): If the username and password is given, it is equivalent to authenticatedSubmitJob(xmlstring, user, password). If the username or password is not given, it is equivalent to submitJob(xml_string). If it's blocking, it waits until all the results are received. If it's non-blocking, it immediately returns after submitting the job.

Installation

pip install neos_client

or

git clone git@github.com:mabdullahsoyturk/neos_client.git
cd neos_client
pip install .

Usage

from neos_client import NeosClient

client = NeosClient(email=<your_email_address>)
client.submit_job(xml_path=<path_to_your_xml_file>)

Metadata

Release files for neos-client 0.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 neos-client 0.0.1
File Interpreter ABI Platform
neos_client-0.0.1-py3-none-any.whl Python 3 none any Details

Release files / neos_client-0.0.1-py3-none-any.whl

Download URL neos_client-0.0.1-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fcb69409f866021794ab0df31ae795260b77f0e04206b5ce9478ca81f5056f65
BLAKE2b-256 checksum
How to use checksums
eb29e3e7d8725e42d58f8369a2de8eda28a7941e9c55d5f02f1c65ca46ee9f49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.0.1 This release

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