Skip to main content

Python client side functions for working with LDM framework.

Project description

logging_functions

Client side functions for working with LDM framework.

log

log(msg, role_name='')

Log message msg to server.

Parameters:

msg (string): Message to log

role_name (string): Role name of a message. Role name is optional and can be ommited.

Returns:

None

start_run

start_run(project_name, comment='', git_commit_url='')

Start a new run.

Parameters:

project_name (string): Name of a project this newly started run will belong to.

comment (string): Comment for a run. This parameter is optional and can be ommited.

git_commit_url (string): URL of a git commit representing the state of a code base used in this run. This prm is optional and can be ommited.

Returns:

None

finish_run

finish_run()

Finish the current run.

Parameters:

Returns:

None

upload_file

upload_file(file_name, role_name='', comment='')

Upload file (file_name) to the logging server and attaches it to the current run.

Parameters:

file_name (string): File path (on a local machine) of file to be uploaded.

comment (string): Comment for a file to be uploaded. This prm is optional and can be ommited.

role_name (string): Role name for a file to be uploaded. This prm is optional and can be ommited.

Returns:

None

login

login(user_id, psw, server_url_prm='http://localhost:5000')

Authorize user user_id with password psw on server server_url_prm.

Parameters:

user_id (string): User ID.

psw (string): User password.

server_url_prm (URL): URL of an instance of LDM framework to connect to. All subsequent calls to LDM framework functions will be directed to this URL. This prm is optional and can be ommited, in this case default URL of "http://localhost:5000" will be used .

Returns:

True in case of success, False otherwise.

Change log

[0.0.1] - 2020-12-09

[0.0.3] - 2021-02-10

[0.0.4] - 2021-02-12

Added

  • Functions for
    • dataset upload
    • dataset download
    • project creation
    • result validation on a specific dataset

Changed

  • changed package structure (only one package (logger) is uploaded)
  • removed all examples from package logger
  • class LDMLogger has package visibility

Removed

[0.0.6] - 2021-02-17

Changed

  • start_run does not upload sources by default

[0.0.7] - 2021-03-19

Added

  • Function to save notebook

  • N/A

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

ldm_python_client_lib-0.0.7.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

ldm_python_client_lib-0.0.7-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file ldm_python_client_lib-0.0.7.tar.gz.

File metadata

  • Download URL: ldm_python_client_lib-0.0.7.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.21.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.3

File hashes

Hashes for ldm_python_client_lib-0.0.7.tar.gz
Algorithm Hash digest
SHA256 9e32682b1a50233a8b0ea96f17be746f83aa88c724413bcc610c49e42f2c8773
MD5 000de5d12fbb27f5661ac66dd19c78f2
BLAKE2b-256 a025dc7324d8bc2a3af2d0be8f26f17384a131bb583e08b400b6b98d022d4c8a

See more details on using hashes here.

File details

Details for the file ldm_python_client_lib-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: ldm_python_client_lib-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.21.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.3

File hashes

Hashes for ldm_python_client_lib-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 d3f462e38acb1ffbd077e0ee6a9392263fa94fb0dd31c71c83827e27f30aa117
MD5 be963e7b6af11c1f4855567830e4814a
BLAKE2b-256 56a64d70cce3f612ca375504b60c503253b5c6fcd959e9724dd8ca39d9acd290

See more details on using hashes here.

Supported by

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