# ds_tut
<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->
Some basic infrastructure for a [Data Science
Tutorial](https://github.com/ephes/data_science_tutorial)
## Install
``` sh
pip install ds_tut
```
## Install Development Version
``` sh
git clone https://github.com/ephes/ds_tut
cd ds_tut
python -m pip install -e ".[dev]"
```
## How to use
### Download Datasets
``` python
from pathlib import Path
archive_name = "reuters21578.tar.gz"
training_data_url = "http://www.daviddlewis.com/resources/testcollections/reuters21578/{}".format(archive_name)
data_root = Path.cwd() / "data"
training_data_path = data_root / archive_name
data_size = download_from_url(training_data_url, training_data_path)
print(data_size)
```
8150596
Raw data
{
"_id": null,
"home_page": "https://github.com/ephes/ds_tut",
"name": "ds-tut",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": "",
"keywords": "nbdev jupyter notebook python",
"author": "Jochen Wersd\u00f6rfer",
"author_email": "jochen@wersdoerfer.de",
"download_url": "https://files.pythonhosted.org/packages/2b/c6/49b662066d7c52370dbb9654c7b97dae2e0001e3dd5e10c69f21245fb8be/ds_tut-0.0.10.tar.gz",
"platform": null,
"description": "# ds_tut\n\n<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->\n\nSome basic infrastructure for a [Data Science\nTutorial](https://github.com/ephes/data_science_tutorial)\n\n## Install\n\n``` sh\npip install ds_tut\n```\n\n## Install Development Version\n\n``` sh\ngit clone https://github.com/ephes/ds_tut\ncd ds_tut\npython -m pip install -e \".[dev]\"\n```\n\n## How to use\n\n### Download Datasets\n\n``` python\nfrom pathlib import Path\n\narchive_name = \"reuters21578.tar.gz\"\ntraining_data_url = \"http://www.daviddlewis.com/resources/testcollections/reuters21578/{}\".format(archive_name)\ndata_root = Path.cwd() / \"data\"\ntraining_data_path = data_root / archive_name\ndata_size = download_from_url(training_data_url, training_data_path)\nprint(data_size)\n```\n\n 8150596\n",
"bugtrack_url": null,
"license": "Apache Software License 2.0",
"summary": "Base infrastructure for data science tutorials",
"version": "0.0.10",
"project_urls": {
"Homepage": "https://github.com/ephes/ds_tut"
},
"split_keywords": [
"nbdev",
"jupyter",
"notebook",
"python"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "eeabe89a3b7dcbf3cec549e47580fa959bf4824972c8adccf0d5aa1d2acb07cc",
"md5": "9decc10050300caad51e82b7d31d8e4d",
"sha256": "ed6d48d3e8f4f3055a5ae492679c071b7ef7352684890cbf60a1c66d4bc475d1"
},
"downloads": -1,
"filename": "ds_tut-0.0.10-py3-none-any.whl",
"has_sig": false,
"md5_digest": "9decc10050300caad51e82b7d31d8e4d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 11933,
"upload_time": "2023-10-30T07:57:15",
"upload_time_iso_8601": "2023-10-30T07:57:15.829954Z",
"url": "https://files.pythonhosted.org/packages/ee/ab/e89a3b7dcbf3cec549e47580fa959bf4824972c8adccf0d5aa1d2acb07cc/ds_tut-0.0.10-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "2bc649b662066d7c52370dbb9654c7b97dae2e0001e3dd5e10c69f21245fb8be",
"md5": "d5dcb41f0b2159f46f78234ce0ecd794",
"sha256": "8fb0d4c0ddd404af34db15e55d2c6ec4e76527aab9e9bc571c4d45d6366fec3a"
},
"downloads": -1,
"filename": "ds_tut-0.0.10.tar.gz",
"has_sig": false,
"md5_digest": "d5dcb41f0b2159f46f78234ce0ecd794",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 12354,
"upload_time": "2023-10-30T07:57:18",
"upload_time_iso_8601": "2023-10-30T07:57:18.265159Z",
"url": "https://files.pythonhosted.org/packages/2b/c6/49b662066d7c52370dbb9654c7b97dae2e0001e3dd5e10c69f21245fb8be/ds_tut-0.0.10.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-10-30 07:57:18",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ephes",
"github_project": "ds_tut",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "ds-tut"
}