Skip to main content

DAGsHub client libraries

Project description



Discord Build Status pypi Updates License

DAGsHub Python client libraries

Use DAGsHub to create reproducible versions of your data science research project, allow others to understand your project, and to contribute back to it.

DAGsHub is built firmly around open, standard formats for your project. In particular:

  • git
  • DVC
  • Standard data formats like YAML, JSON, CSV

Therefore, you can work with DAGsHub regardless of your chosen programming language or frameworks.

This client library is meant to help you get started quickly in Python, but it's purely optional - the data formats are very simple and you can choose to work with them directly.

Installation

pip install dagshub

Guide

You can learn more by completing our short tutorial or reading the docs

Basic Usage

from dagshub import dagshub_logger, DAGsHubLogger

# As a context manager:
with dagshub_logger() as logger:
    # Metrics:
    logger.log_metrics(loss=3.14, step_num=1)
    # OR:
    logger.log_metrics({'val_loss': 6.28}, step_num=2)

    # Hyperparameters:
    logger.log_hyperparams(lr=1e-4)
    # OR:
    logger.log_hyperparams({'optimizer': 'sgd'})


# As a normal Python object:
logger = DAGsHubLogger()
logger.log_hyperparams(num_layers=32)
logger.log_metrics(batches_per_second=100, step_num=42)
# ...
logger.save()
logger.close()

Integrations with ML frameworks

The basic DAGsHub logger is just plain Python, and requires no specific framework.

However, for convenience, we include some integrations with common ML frameworks, which can just work right out of the box, without having to write any logging code on your own:


Made with 🐶 by DAGsHub.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dagshub-0.1.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dagshub-0.1.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file dagshub-0.1.1.tar.gz.

File metadata

  • Download URL: dagshub-0.1.1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.7

File hashes

Hashes for dagshub-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5a7d2e18bc2004bcb697d6316a2a64bbf8640c49a46db5b916f3fd11c5e76590
MD5 9de14a14568177dd698a2b2157fab9d0
BLAKE2b-256 9ca2eefa9ef2f03722141e919c4c316bb69285560f9e56e3b5770500b7f28a02

See more details on using hashes here.

File details

Details for the file dagshub-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: dagshub-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.7

File hashes

Hashes for dagshub-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0d0a3ad1acb561d823ac57d95429b92dc567b1a49f1c313ff295bb3c2e9bed19
MD5 24f9413da75729a9c7149598aa092126
BLAKE2b-256 5ef66ad2b4923c81366cf6bce4649616907488b2b43a25f2cb86d227b4c3a55b

See more details on using hashes here.

Supported by

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