dtool-http 0.5.0__tar.gz → 0.5.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- dtool_http-0.5.2/.github/dependabot.yml +17 -0
- dtool_http-0.5.2/.github/workflows/publish.yml +140 -0
- dtool_http-0.5.2/.github/workflows/test.yml +47 -0
- dtool_http-0.5.2/.gitignore +16 -0
- dtool_http-0.5.2/.travis.yml +9 -0
- dtool_http-0.5.2/CHANGELOG.rst +125 -0
- dtool_http-0.5.2/LICENSE.rst +22 -0
- dtool_http-0.5.2/MANIFEST.in +1 -0
- dtool_http-0.5.2/PKG-INFO +128 -0
- {dtool-http-0.5.0 → dtool_http-0.5.2}/README.rst +110 -108
- dtool_http-0.5.2/dtool_http/__init__.py +16 -0
- {dtool-http-0.5.0 → dtool_http-0.5.2}/dtool_http/publish.py +53 -53
- {dtool-http-0.5.0 → dtool_http-0.5.2}/dtool_http/server.py +130 -126
- {dtool-http-0.5.0 → dtool_http-0.5.2}/dtool_http/storagebroker.py +195 -189
- dtool_http-0.5.2/dtool_http/version.py +21 -0
- dtool_http-0.5.2/dtool_http.egg-info/PKG-INFO +128 -0
- dtool_http-0.5.2/dtool_http.egg-info/SOURCES.txt +36 -0
- {dtool-http-0.5.0 → dtool_http-0.5.2}/dtool_http.egg-info/entry_points.txt +1 -2
- dtool_http-0.5.2/dtool_http.egg-info/requires.txt +7 -0
- dtool_http-0.5.2/icons/22x22/dtool_logo.png +0 -0
- dtool_http-0.5.2/pyproject.toml +45 -0
- dtool_http-0.5.2/requirements.txt +1 -0
- dtool_http-0.5.2/scripts/share_data.py +142 -0
- {dtool-http-0.5.0 → dtool_http-0.5.2}/setup.cfg +14 -14
- dtool_http-0.5.2/tests/__init__.py +107 -0
- dtool_http-0.5.2/tests/data/actually_a_png.txt +0 -0
- dtool_http-0.5.2/tests/data/actually_a_text_file.jpg +1 -0
- dtool_http-0.5.2/tests/data/another_file.txt +1 -0
- dtool_http-0.5.2/tests/data/empty_file +0 -0
- dtool_http-0.5.2/tests/data/random_bytes +0 -0
- dtool_http-0.5.2/tests/data/real_text_file.txt +1 -0
- dtool_http-0.5.2/tests/data/tiny.png +0 -0
- dtool_http-0.5.2/tests/test_dtool_http_server.py +43 -0
- dtool_http-0.5.2/tests/test_publish.py +18 -0
- dtool_http-0.5.2/tox.ini +16 -0
- dtool-http-0.5.0/PKG-INFO +0 -119
- dtool-http-0.5.0/dtool_http/__init__.py +0 -7
- dtool-http-0.5.0/dtool_http.egg-info/PKG-INFO +0 -119
- dtool-http-0.5.0/dtool_http.egg-info/SOURCES.txt +0 -13
- dtool-http-0.5.0/dtool_http.egg-info/requires.txt +0 -2
- dtool-http-0.5.0/setup.py +0 -36
- {dtool-http-0.5.0 → dtool_http-0.5.2}/dtool_http.egg-info/dependency_links.txt +0 -0
- {dtool-http-0.5.0 → dtool_http-0.5.2}/dtool_http.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# To get started with Dependabot version updates, you'll need to specify which
|
|
2
|
+
# package ecosystems to update and where the package manifests are located.
|
|
3
|
+
# Please see the documentation for all configuration options:
|
|
4
|
+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
|
5
|
+
|
|
6
|
+
version: 2
|
|
7
|
+
updates:
|
|
8
|
+
# Maintain dependencies for GitHub Actions
|
|
9
|
+
- package-ecosystem: "github-actions"
|
|
10
|
+
directory: "/"
|
|
11
|
+
schedule:
|
|
12
|
+
interval: "daily"
|
|
13
|
+
|
|
14
|
+
- package-ecosystem: "pip"
|
|
15
|
+
directory: "/"
|
|
16
|
+
schedule:
|
|
17
|
+
interval: "daily"
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
name: publish
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
- master
|
|
8
|
+
tags:
|
|
9
|
+
- '*'
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
|
|
13
|
+
build:
|
|
14
|
+
name: Build
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v4
|
|
19
|
+
with:
|
|
20
|
+
fetch-depth: 0
|
|
21
|
+
|
|
22
|
+
- name: Set up Python 3.12
|
|
23
|
+
uses: actions/setup-python@v5
|
|
24
|
+
with:
|
|
25
|
+
python-version: 3.12
|
|
26
|
+
|
|
27
|
+
- name: Install requirements
|
|
28
|
+
run: |
|
|
29
|
+
pip install --upgrade build
|
|
30
|
+
pip install --upgrade setuptools wheel setuptools-scm[toml]
|
|
31
|
+
pip list
|
|
32
|
+
|
|
33
|
+
- name: Package distribution
|
|
34
|
+
run: |
|
|
35
|
+
python -m build
|
|
36
|
+
|
|
37
|
+
- name: Upload artifact
|
|
38
|
+
uses: actions/upload-artifact@v4
|
|
39
|
+
with:
|
|
40
|
+
name: python-package-distributions
|
|
41
|
+
path: dist/
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
publish-to-testpypi:
|
|
45
|
+
name: Publish to TestPyPI
|
|
46
|
+
needs:
|
|
47
|
+
- build
|
|
48
|
+
runs-on: ubuntu-latest
|
|
49
|
+
|
|
50
|
+
environment:
|
|
51
|
+
name: testpypi
|
|
52
|
+
url: https://test.pypi.org/p/dtool-http
|
|
53
|
+
|
|
54
|
+
permissions:
|
|
55
|
+
id-token: write # IMPORTANT: mandatory for trusted publishing
|
|
56
|
+
|
|
57
|
+
steps:
|
|
58
|
+
- name: Download all the dists
|
|
59
|
+
uses: actions/download-artifact@v4
|
|
60
|
+
with:
|
|
61
|
+
name: python-package-distributions
|
|
62
|
+
path: dist/
|
|
63
|
+
|
|
64
|
+
- name: Publish distribution 📦 to TestPyPI
|
|
65
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
66
|
+
with:
|
|
67
|
+
repository-url: https://test.pypi.org/legacy/
|
|
68
|
+
verbose: true
|
|
69
|
+
skip-existing: true
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
publish-to-pypi:
|
|
73
|
+
name: Publish to PyPI
|
|
74
|
+
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
|
|
75
|
+
needs:
|
|
76
|
+
- build
|
|
77
|
+
runs-on: ubuntu-latest
|
|
78
|
+
environment:
|
|
79
|
+
name: pypi
|
|
80
|
+
url: https://pypi.org/p/dtool-http # Replace <package-name> with your PyPI project name
|
|
81
|
+
permissions:
|
|
82
|
+
id-token: write # IMPORTANT: mandatory for trusted publishing
|
|
83
|
+
|
|
84
|
+
steps:
|
|
85
|
+
- name: Download artifact
|
|
86
|
+
uses: actions/download-artifact@v4
|
|
87
|
+
with:
|
|
88
|
+
name: python-package-distributions
|
|
89
|
+
path: dist/
|
|
90
|
+
|
|
91
|
+
- name: Publish distribution to PyPI
|
|
92
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
93
|
+
with:
|
|
94
|
+
verbose: true
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
github-release:
|
|
98
|
+
name: >-
|
|
99
|
+
Make github release
|
|
100
|
+
needs:
|
|
101
|
+
- publish-to-pypi
|
|
102
|
+
runs-on: ubuntu-latest
|
|
103
|
+
|
|
104
|
+
permissions:
|
|
105
|
+
contents: write # IMPORTANT: mandatory for making GitHub Releases
|
|
106
|
+
id-token: write # IMPORTANT: mandatory for sigstore
|
|
107
|
+
|
|
108
|
+
steps:
|
|
109
|
+
- name: Download artifact
|
|
110
|
+
uses: actions/download-artifact@v4
|
|
111
|
+
with:
|
|
112
|
+
name: python-package-distributions
|
|
113
|
+
path: dist/
|
|
114
|
+
|
|
115
|
+
- name: Sign with Sigstore
|
|
116
|
+
uses: sigstore/gh-action-sigstore-python@v3.0.0
|
|
117
|
+
with:
|
|
118
|
+
inputs: >-
|
|
119
|
+
./dist/*.tar.gz
|
|
120
|
+
./dist/*.whl
|
|
121
|
+
|
|
122
|
+
- name: Create GitHub Release
|
|
123
|
+
env:
|
|
124
|
+
GITHUB_TOKEN: ${{ github.token }}
|
|
125
|
+
run: >-
|
|
126
|
+
gh release create
|
|
127
|
+
'${{ github.ref_name }}'
|
|
128
|
+
--repo '${{ github.repository }}'
|
|
129
|
+
--notes ""
|
|
130
|
+
|
|
131
|
+
- name: Upload artifact signatures to GitHub Release
|
|
132
|
+
env:
|
|
133
|
+
GITHUB_TOKEN: ${{ github.token }}
|
|
134
|
+
# Upload to GitHub Release using the `gh` CLI.
|
|
135
|
+
# `dist/` contains the built packages, and the
|
|
136
|
+
# sigstore-produced signatures and certificates.
|
|
137
|
+
run: >-
|
|
138
|
+
gh release upload
|
|
139
|
+
'${{ github.ref_name }}' dist/**
|
|
140
|
+
--repo '${{ github.repository }}'
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
name: test
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
- master
|
|
8
|
+
tags:
|
|
9
|
+
- '*'
|
|
10
|
+
pull_request:
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
test:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
|
|
16
|
+
strategy:
|
|
17
|
+
matrix:
|
|
18
|
+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
|
|
19
|
+
|
|
20
|
+
steps:
|
|
21
|
+
- name: Git checkout
|
|
22
|
+
uses: actions/checkout@v4
|
|
23
|
+
|
|
24
|
+
- name: Set up python3 ${{ matrix.python-version }}
|
|
25
|
+
uses: actions/setup-python@v5
|
|
26
|
+
with:
|
|
27
|
+
python-version: ${{ matrix.python-version }}
|
|
28
|
+
|
|
29
|
+
- name: Install requirements
|
|
30
|
+
run: |
|
|
31
|
+
python -m pip install --upgrade pip
|
|
32
|
+
pip install --upgrade setuptools wheel setuptools-scm[toml] importlib-metadata
|
|
33
|
+
pip install flake8 pytest pytest-cov pytz
|
|
34
|
+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
|
35
|
+
pip install .
|
|
36
|
+
pip list
|
|
37
|
+
|
|
38
|
+
- name: Test with pytest
|
|
39
|
+
run: |
|
|
40
|
+
pytest -sv
|
|
41
|
+
|
|
42
|
+
- name: Lint with flake8
|
|
43
|
+
run: |
|
|
44
|
+
# stop the build if there are Python syntax errors or undefined names
|
|
45
|
+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
|
46
|
+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
|
47
|
+
flake8 . --count --exit-zero --max-complexity=12 --max-line-length=127 --statistics
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
CHANGELOG
|
|
2
|
+
=========
|
|
3
|
+
|
|
4
|
+
This project uses `semantic versioning <http://semver.org/>`_.
|
|
5
|
+
This change log uses principles from `keep a changelog <http://keepachangelog.com/>`_.
|
|
6
|
+
|
|
7
|
+
[Unreleased]
|
|
8
|
+
------------
|
|
9
|
+
|
|
10
|
+
Added
|
|
11
|
+
^^^^^
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
Changed
|
|
15
|
+
^^^^^^^
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
Deprecated
|
|
19
|
+
^^^^^^^^^^
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
Removed
|
|
23
|
+
^^^^^^^
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
Fixed
|
|
27
|
+
^^^^^
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
Security
|
|
31
|
+
^^^^^^^^
|
|
32
|
+
|
|
33
|
+
[0.5.2] - 2025-03-31
|
|
34
|
+
--------------------
|
|
35
|
+
|
|
36
|
+
Added
|
|
37
|
+
^^^^^
|
|
38
|
+
|
|
39
|
+
- GitHub CI test and publication workflows
|
|
40
|
+
- Dynamic versioning
|
|
41
|
+
|
|
42
|
+
Changed
|
|
43
|
+
^^^^^^^
|
|
44
|
+
|
|
45
|
+
- Transitoned from ``setup.py`` to ``pyporject.toml``
|
|
46
|
+
|
|
47
|
+
Fixed
|
|
48
|
+
^^^^^
|
|
49
|
+
|
|
50
|
+
- Generation of HTTP manifest URLs for base uris with signatures
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
[0.5.1] - 2021-06-23
|
|
54
|
+
--------------------
|
|
55
|
+
|
|
56
|
+
Fixed
|
|
57
|
+
^^^^^
|
|
58
|
+
|
|
59
|
+
- Licence file now included in release thanks to Jan Janssen (https://github.com/jan-janssen)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
[0.5.0] - 2020-03-19
|
|
63
|
+
--------------------
|
|
64
|
+
|
|
65
|
+
This code was lost in a local branch, but was reimplemented and added to GitHub on 2021-06-21.
|
|
66
|
+
|
|
67
|
+
Added
|
|
68
|
+
^^^^^
|
|
69
|
+
|
|
70
|
+
- Added support for dataset tags
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
[0.4.0] - 2019-10-31
|
|
74
|
+
--------------------
|
|
75
|
+
|
|
76
|
+
Added
|
|
77
|
+
^^^^^
|
|
78
|
+
|
|
79
|
+
- Added support for dataset annotations
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
[0.3.0] - 2019-04-25
|
|
83
|
+
--------------------
|
|
84
|
+
|
|
85
|
+
Changed
|
|
86
|
+
^^^^^^^
|
|
87
|
+
|
|
88
|
+
- Cache environment variable changed from DTOOL_HTTP_CACHE_DIRECTORY to
|
|
89
|
+
DTOOL_CACHE_DIRECTORY
|
|
90
|
+
- Default cache directory changed from ``~/.cache/dtool/http`` to
|
|
91
|
+
``~/.cache/dtool``
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
[0.2.1] - 2019-03-29
|
|
95
|
+
--------------------
|
|
96
|
+
|
|
97
|
+
Added
|
|
98
|
+
^^^^^
|
|
99
|
+
|
|
100
|
+
- Added MIT licence file
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
[0.2.0] - 2018-07-09
|
|
104
|
+
--------------------
|
|
105
|
+
|
|
106
|
+
Added
|
|
107
|
+
^^^^^
|
|
108
|
+
|
|
109
|
+
- Added ability to deal with redirects to enable working with shortened URLs
|
|
110
|
+
|
|
111
|
+
Fixed
|
|
112
|
+
^^^^^
|
|
113
|
+
|
|
114
|
+
- Made download to DTOOL_HTTP_CACHE_DIRECTORY more robust
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
[0.1.0] - 2018-07-05
|
|
118
|
+
--------------------
|
|
119
|
+
|
|
120
|
+
Initial release:
|
|
121
|
+
|
|
122
|
+
- HTTPStorageBackend
|
|
123
|
+
- HTTPSStorageBackend
|
|
124
|
+
- dtool_publish_dataset command line utility
|
|
125
|
+
- dtool_serve_dataset command line utility
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
===========
|
|
3
|
+
|
|
4
|
+
Copyright (c) 2018 Tjelvar Olsson
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
include LICENSE.rst
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: dtool-http
|
|
3
|
+
Version: 0.5.2
|
|
4
|
+
Summary: Add HTTP read only dataset support to dtool
|
|
5
|
+
Author-email: Tjelvar Olsson <tjelvar.olsson@gmail.com>
|
|
6
|
+
Project-URL: Documentation, https://github.com/jic-dtool/dtool-http/blob/master/README.rst
|
|
7
|
+
Project-URL: Repository, https://github.com/jic-dtool/dtool-http
|
|
8
|
+
Project-URL: Changelog, https://github.com/jic-dtool/dtool-http/blob/master/CHANGELOG.rst
|
|
9
|
+
Description-Content-Type: text/x-rst
|
|
10
|
+
License-File: LICENSE.rst
|
|
11
|
+
Requires-Dist: dtoolcore>=3.13
|
|
12
|
+
Requires-Dist: requests
|
|
13
|
+
Provides-Extra: test
|
|
14
|
+
Requires-Dist: pytest; extra == "test"
|
|
15
|
+
Requires-Dist: pytest-cov; extra == "test"
|
|
16
|
+
Requires-Dist: pytz; extra == "test"
|
|
17
|
+
Dynamic: license-file
|
|
18
|
+
|
|
19
|
+
Add HTTP support to dtool for read only access to datasets
|
|
20
|
+
==========================================================
|
|
21
|
+
|
|
22
|
+
.. |dtool| image:: https://github.com/jic-dtool/dtool-http/blob/master/icons/22x22/dtool_logo.png?raw=True
|
|
23
|
+
:height: 20px
|
|
24
|
+
:target: https://github.com/jic-dtool/dtool-http
|
|
25
|
+
.. |pypi| image:: https://img.shields.io/pypi/v/dtool-http
|
|
26
|
+
:target: https://pypi.org/project/dtool-http/
|
|
27
|
+
.. |tag| image:: https://img.shields.io/github/v/tag/jic-dtool/dtool-http
|
|
28
|
+
:target: https://github.com/jic-dtool/dtool-http/tags
|
|
29
|
+
.. |test| image:: https://img.shields.io/github/actions/workflow/status/jic-dtool/dtool-http/test.yml?branch=master&label=tests
|
|
30
|
+
:target: https://github.com/jic-dtool/dtool-http/actions/workflows/test.yml
|
|
31
|
+
.. |coverage| image:: https://codecov.io/github/jic-dtool/dtool-http/coverage.svg?branch=master
|
|
32
|
+
:target: https://codecov.io/github/jic-dtool/dtool-http?branch=master
|
|
33
|
+
|
|
34
|
+
|dtool| |pypi| |tag| |test| |coverage|
|
|
35
|
+
|
|
36
|
+
- GitHub: https://github.com/jic-dtool/dtool-http
|
|
37
|
+
- Free software: MIT License
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
Features
|
|
41
|
+
--------
|
|
42
|
+
|
|
43
|
+
- Publish dtool datasets by making them accessible via HTTP(S)
|
|
44
|
+
- Interact with dtool datasets over HTTP(S)
|
|
45
|
+
- Copy a dataset over HTTP(S)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
Installation
|
|
49
|
+
------------
|
|
50
|
+
|
|
51
|
+
To install the dtool-http package.
|
|
52
|
+
|
|
53
|
+
.. code-block:: bash
|
|
54
|
+
|
|
55
|
+
cd dtool-http
|
|
56
|
+
python setup.py install
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
Usage
|
|
60
|
+
-----
|
|
61
|
+
|
|
62
|
+
To publish a dataset hosted in Amazon S3 or Microsoft Azure Storage use the
|
|
63
|
+
``dtool_publish_dataset`` command line utility::
|
|
64
|
+
|
|
65
|
+
$ dtool_publish_dataset azure://jicinformatics/c58038a4-3a54-425e-9087-144d0733387f
|
|
66
|
+
Dataset accessible at: https://jicinformatics.blob.core.windows.net/c58038a4-3a54-425e-9087-144d0733387f
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
To show the descriptive metadata of the published dataset::
|
|
70
|
+
|
|
71
|
+
$ dtool readme show https://jicinformatics.blob.core.windows.net/c58038a4-3a54-425e-9087-144d0733387f
|
|
72
|
+
---
|
|
73
|
+
description: Enterobacteria phage lambda, complete genome
|
|
74
|
+
creation_date: 2018-02-06
|
|
75
|
+
accession: NC_001416.1
|
|
76
|
+
link: https://www.ncbi.nlm.nih.gov/nuccore/NC_001416.1
|
|
77
|
+
reference: |
|
|
78
|
+
Nucleotide [Internet]. Bethesda (MD):
|
|
79
|
+
National Library of Medicine (US),
|
|
80
|
+
National Center for Biotechnology Information; [1988] - .
|
|
81
|
+
Accession No. NC_001416.1, Enterobacteria phage lambda, complete genome
|
|
82
|
+
[cited 2018 Feb 06]
|
|
83
|
+
Available from: https://www.ncbi.nlm.nih.gov/nuccore/NC_001416.1
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
To copy the dataset to local disk::
|
|
87
|
+
|
|
88
|
+
$ dtool copy https://jicinformatics.blob.core.windows.net/c58038a4-3a54-425e-9087-144d0733387f ~/my_datasets
|
|
89
|
+
Dataset copied to:
|
|
90
|
+
file:///Users/olssont/my_datasets/lamda-phage-genome
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
Serving a directory of datasets over HTTP
|
|
94
|
+
-----------------------------------------
|
|
95
|
+
|
|
96
|
+
There is a simple utility for serving datasets in a directory over HTTP called
|
|
97
|
+
``dtool_serve_direcotry``. This is mainly useful for testing purposes.
|
|
98
|
+
|
|
99
|
+
Usage::
|
|
100
|
+
|
|
101
|
+
$ dtool_serve_directory ~/my_datasets
|
|
102
|
+
|
|
103
|
+
The default port used is 8081. To show the descriptive metadata in the README
|
|
104
|
+
one can use dtool::
|
|
105
|
+
|
|
106
|
+
$ dtool readme show http://localhost:8081/lamda-phage-genome
|
|
107
|
+
---
|
|
108
|
+
description: Enterobacteria phage lambda, complete genome
|
|
109
|
+
creation_date: 2018-02-06
|
|
110
|
+
accession: NC_001416.1
|
|
111
|
+
link: https://www.ncbi.nlm.nih.gov/nuccore/NC_001416.1
|
|
112
|
+
reference: |
|
|
113
|
+
Nucleotide [Internet]. Bethesda (MD):
|
|
114
|
+
National Library of Medicine (US),
|
|
115
|
+
National Center for Biotechnology Information; [1988] - .
|
|
116
|
+
Accession No. NC_001416.1, Enterobacteria phage lambda, complete genome
|
|
117
|
+
[cited 2018 Feb 06]
|
|
118
|
+
Available from: https://www.ncbi.nlm.nih.gov/nuccore/NC_001416.1
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
Related packages
|
|
122
|
+
----------------
|
|
123
|
+
|
|
124
|
+
- `dtoolcore <https://github.com/jic-dtool/dtoolcore>`_
|
|
125
|
+
- `dtool-cli <https://github.com/jic-dtool/dtool-cli>`_
|
|
126
|
+
- `dtool-info <https://github.com/jic-dtool/dtool-info>`_
|
|
127
|
+
- `dtool-s3 <https://github.com/jic-dtool/dtool-s3>`_
|
|
128
|
+
- `dtool-azure <https://github.com/jic-dtool/dtool-azure>`_
|