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)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| neos_client-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for neos_client-0.0.1-py3-none-any.whl |
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
|
Security for neos-client 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.