# reinautils
<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->
## The Utilities included are:
------------------------------------------------------------------------
<a
href="https://github.com/yuval6957/reinautils/blob/main/reinautils/parameters.py#LNone"
target="_blank" style="float:right; font-size:smaller">source</a>
### Parameters
> Parameters (**kargs)
A splecial class whos atributes can be referenced as attributs or as
dictionaty keys
------------------------------------------------------------------------
<a
href="https://github.com/yuval6957/reinautils/blob/main/reinautils/torchutils.py#LNone"
target="_blank" style="float:right; font-size:smaller">source</a>
### device_by_name
> device_by_name (name:str)
Return reference to cuda device by using Part of it’s name
Args: name: part of the cuda device name (shuuld be distinct)
Return: Reference to cuda device
Updated: Yuval 12/10/19
------------------------------------------------------------------------
<a
href="https://github.com/yuval6957/reinautils/blob/main/reinautils/torchutils.py#LNone"
target="_blank" style="float:right; font-size:smaller">source</a>
### DatasetCat
> DatasetCat (*datasets)
Concatenate datasets for Pytorch dataloader
The normal pytorch implementation does it only for raws. this is a
“column” implementation
Arges: datasets: list of datasets, of the same length
Updated: Yuval 12/10/2019
## Install
``` sh
pip install reinautils
```
## How to use
### Parameters
You can create a Parameters class from dict
``` python
params=Parameters(first=1,second='A')
print(params.first)
```
1
You can also creat a Parameters class and populate it from a json file
``` python
params2=Parameters().from_json('config_demo.json')
print(params2)
```
Parameters:
path : Parameters:
data : /workspace/hd/
tmp : /workspace/hd/tmp/
features : /workspace/nvme/features/
train : /workspace/nvme/train/
models : /workspace/hd/models/
output : /workspace/hd/outputs/
test : /workspace/nvme/test/
platform : myserver
Raw data
{
"_id": null,
"home_page": "https://github.com/yuval6957/reinautils",
"name": "reinautils",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "nbdev jupyter notebook python",
"author": "Yuval Reina",
"author_email": "yuval.reina@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/1e/cd/390089a1ee3a687286619d3d1e6ace879df0b6744231f92a20f63bacd130/reinautils-0.0.2.tar.gz",
"platform": null,
"description": "# reinautils\n\n<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->\n\n## The Utilities included are:\n\n------------------------------------------------------------------------\n\n<a\nhref=\"https://github.com/yuval6957/reinautils/blob/main/reinautils/parameters.py#LNone\"\ntarget=\"_blank\" style=\"float:right; font-size:smaller\">source</a>\n\n### Parameters\n\n> Parameters (**kargs)\n\nA splecial class whos atributes can be referenced as attributs or as\ndictionaty keys\n\n------------------------------------------------------------------------\n\n<a\nhref=\"https://github.com/yuval6957/reinautils/blob/main/reinautils/torchutils.py#LNone\"\ntarget=\"_blank\" style=\"float:right; font-size:smaller\">source</a>\n\n### device_by_name\n\n> device_by_name (name:str)\n\nReturn reference to cuda device by using Part of it\u2019s name\n\nArgs: name: part of the cuda device name (shuuld be distinct)\n\nReturn: Reference to cuda device\n\nUpdated: Yuval 12/10/19\n\n------------------------------------------------------------------------\n\n<a\nhref=\"https://github.com/yuval6957/reinautils/blob/main/reinautils/torchutils.py#LNone\"\ntarget=\"_blank\" style=\"float:right; font-size:smaller\">source</a>\n\n### DatasetCat\n\n> DatasetCat (*datasets)\n\nConcatenate datasets for Pytorch dataloader\n\nThe normal pytorch implementation does it only for raws. this is a\n\u201ccolumn\u201d implementation\n\nArges: datasets: list of datasets, of the same length\n\nUpdated: Yuval 12/10/2019\n\n## Install\n\n``` sh\npip install reinautils\n```\n\n## How to use\n\n### Parameters\n\nYou can create a Parameters class from dict\n\n``` python\nparams=Parameters(first=1,second='A')\nprint(params.first)\n```\n\n 1\n\nYou can also creat a Parameters class and populate it from a json file\n\n``` python\nparams2=Parameters().from_json('config_demo.json')\nprint(params2)\n```\n\n Parameters:\n path : Parameters:\n data : /workspace/hd/\n tmp : /workspace/hd/tmp/\n features : /workspace/nvme/features/\n train : /workspace/nvme/train/\n models : /workspace/hd/models/\n output : /workspace/hd/outputs/\n test : /workspace/nvme/test/\n platform : myserver\n\n\n",
"bugtrack_url": null,
"license": "Apache Software License 2.0",
"summary": "General utilities",
"version": "0.0.2",
"split_keywords": [
"nbdev",
"jupyter",
"notebook",
"python"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "dcd1d9438d11810fc6b2636d40e4ffee43555cc2fd3e63352f739cd8c781e90e",
"md5": "f3e93bbf6bcec956e9af8031f2a40a38",
"sha256": "464c68075c2963661eca5a8c7bac61d0554e90a3aa67254469f6c6e7ece14d64"
},
"downloads": -1,
"filename": "reinautils-0.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f3e93bbf6bcec956e9af8031f2a40a38",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 9098,
"upload_time": "2023-04-14T15:23:26",
"upload_time_iso_8601": "2023-04-14T15:23:26.422078Z",
"url": "https://files.pythonhosted.org/packages/dc/d1/d9438d11810fc6b2636d40e4ffee43555cc2fd3e63352f739cd8c781e90e/reinautils-0.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "1ecd390089a1ee3a687286619d3d1e6ace879df0b6744231f92a20f63bacd130",
"md5": "b509c3fcc3a4692586fca14b614884d5",
"sha256": "d50b3113909e885a690e2f7f7a2df7ca3db6b935074ce8046a7037078d528897"
},
"downloads": -1,
"filename": "reinautils-0.0.2.tar.gz",
"has_sig": false,
"md5_digest": "b509c3fcc3a4692586fca14b614884d5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 15840,
"upload_time": "2023-04-14T15:23:29",
"upload_time_iso_8601": "2023-04-14T15:23:29.311481Z",
"url": "https://files.pythonhosted.org/packages/1e/cd/390089a1ee3a687286619d3d1e6ace879df0b6744231f92a20f63bacd130/reinautils-0.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-04-14 15:23:29",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "yuval6957",
"github_project": "reinautils",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "reinautils"
}