semvec/pypi-packages huggingface dataset:
ml-bricks 0.0.3
Common utils for machine learning, computer vision
Keywords: machine-learning,utils,vision-utils

# ML Bricks
A package for reusing functions that repeat during machine learning and data science related works

[![Tests](https://github.com/jerinka/ml_bricks/actions/workflows/main.yml/badge.svg)](https://github.com/jerinka/ml_bricks/actions/workflows/main.yml)

[![pypi](https://github.com/jerinka/ml_bricks/actions/workflows/python-publish.yml/badge.svg)](https://github.com/jerinka/ml_bricks/actions/workflows/python-publish.yml)

# Install from Pypi
```pip install ml_bricks```

# Local install
```git clone https://github.com/jerinka/ml_bricks```\
```pip3 install -e ml_bricks```

# Test and Coverage
```coverage run --source=ml_bricks/ -m pytest -v test/ && coverage report -m```\
```coverage html -d coverage_html```

# build
```pip install wheel```\
```python setup.py sdist bdist_wheel```

# testpypi
```twine upload --repository testpypi dist/* ```\
```pip install -i https://test.pypi.org/simple/ ml_bricks ```

# pypi
```twine upload dist/*```\
```pip install -U ml_bricks```

# Quick usage
```import ml_bricks as pk1```\
```pk1.subpackage1.moduleA.fun_a()```


# Reference
[https://medium.com/@joel.barmettler/how-to-upload-your-python-package-to-pypi-65edc5fe9c56](https://medium.com/@joel.barmettler/how-to-upload-your-python-package-to-pypi-65edc5fe9c56)
dsw-sdk 3.8.0
Software development kit for the Data Stewardship Wizard.
Requires Python: >=3.7

[![PyPI](https://img.shields.io/pypi/v/dsw-sdk)](https://pypi.org/project/dsw-sdk/)
[![Static analysis](https://github.com/ds-wizard/dsw-sdk/actions/workflows/static_analysis.yml/badge.svg?branch=master)](https://github.com/ds-wizard/dsw-sdk/actions/workflows/static_analysis.yml)
[![Tests](https://github.com/ds-wizard/dsw-sdk/actions/workflows/tests.yml/badge.svg?branch=master)](https://github.com/ds-wizard/dsw-sdk/actions/workflows/tests.yml)
[![Documentation Status](https://readthedocs.org/projects/dsw-sdk/badge/?version=latest)](https://dsw-sdk.readthedocs.io/en/latest/?badge=latest)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

# DSW SDK


### Introduction

This projects aims at providing unified and easy-to-use Python library for
communicating with the Data Stewardship Wizard API. For more info about
the DSW project itself, see [official webpage](https://ds-wizard.org/) or the 
[API documentation](https://api.demo.ds-wizard.org/swagger-ui/).


### Installation

You can install this library via PyPI:

```commandline
pip install dsw-sdk
```


### Quickstart

The only mandatory step need in order to get going is to initialize the whole
SDK and tell it, where is the DSW API located and how to connect to it:

```python
from dsw_sdk import DataStewardshipWizardSDK


dsw_sdk = DataStewardshipWizardSDK(
    api_url='http://localhost:3000',
    email='albert.einstein@example.com',
    password='password',
)
```

Now you are ready to go.

> Note that this is only *illustrative example* and we
encourage you **not** to store secrets like passwords in the source code.
There are better mechanisms (env variables) introduced in the docs.


### Basic usage

Most actions should be done via the high-level interfaces provided on an 
instance of the `DataStewardshipWizardSDK` class. These interfaces operate with 
subclasses of `Model` class (e.g. `user.User`) -- these are the DSW data 
entities. Basically they are just data classes with bunch of attributes and 
methods for saving the entity (`save()`) on the server and deleting it
(`delete()`).

```python
import os


user = dsw_sdk.users.create_user(
   first_name='John',
   last_name='Doe',
   email='john.doe@example.com',
)
user.password = os.getenv('SECRET_PASSWORD')
user.save()

...

user.delete()
```

For more advanced usage, see the [docs](https://dsw-sdk.readthedocs.io/en/latest/).


## Contributing

Want to fix a bug or help with implementing new features? Don't hesitate to contact [us](mailto:jakubdrahosJD@seznam.cz) and read the [contributing doc](https://github.com/ds-wizard/dsw-sdk/blob/develop/contributing.md).