Skip to main content

DENOPTIM's Python tools (dnptools)

Repository for python utilities related with DENOPTIM: the software for De Novo OPTimization of In/organic Molecules (see https://github.com/denoptim-project/DENOPTIM).

Tools

Here is an overview of the tools included here:

Socket server running a scoring service

scoringservice run a socket server that provides scores to DENOPTIM's SocketProvidedDescriptor. The sever allows low-latency communication between DENOPTIM and scoring functions written in python. In particular, it allows to by-pass the overhead needed to startup a python process from within DENOPTIM's fitness providers. Example of usage:

from dnptools import scoringservice

def scoring_function(json_msg):
    smiles_string = json_msg[scoringservice.JSON_KEY_SMILES]
    score = ...do something to get the score from processing smiles_string...
    return score
    
scoringservice.start(scoring_function, 'localhost', 3863)

Note that localhost and port number 3863 are just parameters that can be choosen freely, but should be consistent with the settings of any client that wants to communicate with such server. The server is a threading server that can deal with multiple clients, like parallel threads running a fitness providing task each. When you do not need the scoring service any more, use the following to stop the server:

scoringservice.stop('localhost',3863)

Logging can be controlled as follows:

scoringservice.logger.setLevel(logging.DEBUG)

Install

The package is available on pypi and anaconda, so install it with

pip install dnptools

or

conda install -c denoptim-project dnptools

License

GNU Affero General Public License v3 or later (AGPLv3+)

Acknowledgments

The Research Council of Norway is acknowledge for funding.

Metadata

Release files for dnptools 0.0.4

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

Source distribution (sdist)

Source distribution for dnptools 0.0.4
File Size Uploaded Provenance Actions
dnptools-0.0.4.tar.gz 18.0 kB Without provenance Details for dnptools-0.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dnptools 0.0.4
File Interpreter ABI Platform Actions
dnptools-0.0.4-py3-none-any.whl Python 3 none any Details for dnptools-0.0.4-py3-none-any.whl

Total release size: 34.3 kB

Release files / dnptools-0.0.4.tar.gz

Download URL dnptools-0.0.4.tar.gz
Size 18.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3bf16713a43624d8ec40109b44aef1bb74075a5ef8c28939706e36dd4fe83c4e
BLAKE2b-256 checksum
How to use checksums
75bbc5bd1a03b34d9dbc5704f08e80df8c7580beb82a57ff0edf2012bf469f46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / dnptools-0.0.4-py3-none-any.whl

Download URL dnptools-0.0.4-py3-none-any.whl
Size 16.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8b8299a11ecd7ec31ee2e611fd219ab5c25b77ed1006fd5fa44ddc0c5614726e
BLAKE2b-256 checksum
How to use checksums
3e793dafbba35fb0607c4b0df868ed6981b75349e6078ccc44b95f6198c62d56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Security for dnptools 0.0.4

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.

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