snakemake.assets package

Module contents

class snakemake.assets.Asset(url, version=None, sha256=None)[source]

Bases: object

get_content()[source]

Get and validate asset content.

Return type:

bytes

sha256: Optional[str] = None
url: str
version: Optional[str] = None
exception snakemake.assets.AssetDownloadError[source]

Bases: Exception

class snakemake.assets.Assets[source]

Bases: object

classmethod base_path()[source]
Return type:

Path

classmethod deploy()[source]
Return type:

None

classmethod get_content(asset_path)[source]
Return type:

str

classmethod get_version(asset_path)[source]
Return type:

Optional[str]

spec: Dict[str, Asset] = {'@types-clone/LICENSE': Asset(url='https://unpkg.com/@types/clone@{version}/LICENSE', version='2.1.1', sha256='c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383'), '@types-estree/LICENSE': Asset(url='https://unpkg.com/@types/estree@{version}/LICENSE', version='0.0.50', sha256='c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383'), 'array-flat-polyfill/LICENSE': Asset(url='https://raw.githubusercontent.com/jonathantneal/array-flat-polyfill/362d855cb6ea2ef12f0676b116c5f9e4233b6f31/LICENSE.md', version='1.0.1', sha256='597756adcb51f243ef4fb386920377f61d012ace0904364e1a8ee9aaec6afc84'), 'clone/LICENSE': Asset(url='https://raw.githubusercontent.com/pvorb/clone/refs/tags/v{version}/LICENSE', version='2.1.2', sha256='3fb0857ef0133928cf72c88dfc464e931486e88778961eedec25585e2321507f'), 'commons-math/LICENSE.txt': Asset(url='https://raw.githubusercontent.com/apache/commons-math/refs/tags/MATH_3_6_1/LICENSE.txt', version='3.6.1', sha256='64f23963615950bad9ddd31569a7f09afbbe11b81d94873ffd9b1cac6081a11d'), 'commons-math/NOTICE.txt': Asset(url='https://raw.githubusercontent.com/apache/commons-math/refs/tags/MATH_3_6_1/NOTICE.txt', version='3.6.1', sha256='5495442a32bfc2b93b4a8f2c34c5c218d16cca434aa5684fb953d9419120e3fa'), 'd3-array/LICENSE': Asset(url='https://raw.githubusercontent.com/d3/d3-array/refs/tags/v{version}/LICENSE', version='2.12.1', sha256='0747bebeb06b10954913149be9b9a8bdf6fad3e6fdcbd9f9524e7a94c13d2cea'), 'd3-color/LICENSE': Asset(url='https://raw.githubusercontent.com/d3/d3-color/refs/tags/v{version}/LICENSE', version='2.0.0', sha256='e1211892da0b0e0585b7aebe8f98c1274fba15bafe47fa1f4ee8a7a502c06304'), 'd3-contour/LICENSE': Asset(url='https://raw.githubusercontent.com/d3/d3-contour/refs/tags/v{version}/LICENSE', version='1.3.2', sha256='5f5dcce265668080a60fbdc513f6f8ef21466780bcaa331e64ee39df19e63b30'), 'd3-delaunay/LICENSE': Asset(url='https://raw.githubusercontent.com/d3/d3-delaunay/refs/tags/v{version}/LICENSE', version='5.2.0', sha256='d19bf35c4080eea32e098a9c8d62540ffd425611ac8dfc856a233f0357d8b02e'), 'd3-dispatch/LICENSE': Asset(url='https://raw.githubusercontent.com/d3/d3-dispatch/refs/tags/v{version}/LICENSE', version='2.0.0', sha256='e1211892da0b0e0585b7aebe8f98c1274fba15bafe47fa1f4ee8a7a502c06304'), 'd3-dsv/LICENSE': Asset(url='https://raw.githubusercontent.com/d3/d3-dsv/refs/tags/v{version}/LICENSE', version='2.0.0', sha256='8b5304265ccedbd17567aa14a0dc6b9bf4013fee44964c46aa54fdf8527d6a68'), 'd3-force/LICENSE': Asset(url='https://raw.githubusercontent.com/d3/d3-force/refs/tags/v{version}/LICENSE', version='2.1.1', sha256='e1211892da0b0e0585b7aebe8f98c1274fba15bafe47fa1f4ee8a7a502c06304'), 'd3-format/LICENSE': Asset(url='https://raw.githubusercontent.com/d3/d3-format/refs/tags/v{version}/LICENSE', version='2.0.0', sha256='7eea8533ea92bd8c32a901e89ecb0305890905bb12711449565ddff96891146d'), 'd3-geo-projection/LICENSE': Asset(url='https://raw.githubusercontent.com/d3/d3-geo-projection/refs/tags/v{version}/LICENSE', version='3.0.0', sha256='4108a126a74cc35d4d5ae39ca5d0cc926fa7c8ec40e459a0c6d3481c69decbd8'), 'd3-geo/LICENSE': Asset(url='https://raw.githubusercontent.com/d3/d3-geo/refs/tags/v{version}/LICENSE', version='2.0.2', sha256='c3c9d41a75b64963748657932167ec4c56404b8fd557d4f89c9eeda6e2fdf39a'), 'd3-hierarchy/LICENSE': Asset(url='https://raw.githubusercontent.com/d3/d3-hierarchy/refs/tags/v{version}/LICENSE', version='2.0.0', sha256='e1211892da0b0e0585b7aebe8f98c1274fba15bafe47fa1f4ee8a7a502c06304'), 'd3-interpolate/LICENSE': Asset(url='https://raw.githubusercontent.com/d3/d3-interpolate/refs/tags/v{version}/LICENSE', version='2.0.1', sha256='e1211892da0b0e0585b7aebe8f98c1274fba15bafe47fa1f4ee8a7a502c06304'), 'd3-path/LICENSE': Asset(url='https://raw.githubusercontent.com/d3/d3-path/refs/tags/v{version}/LICENSE', version='2.0.0', sha256='b8265327ab678f554800e71188b1cc6b1ff57522e292d2b1c0be66f27cf328b6'), 'd3-quadtree/LICENSE': Asset(url='https://raw.githubusercontent.com/d3/d3-quadtree/refs/tags/v{version}/LICENSE', version='2.0.0', sha256='e1211892da0b0e0585b7aebe8f98c1274fba15bafe47fa1f4ee8a7a502c06304'), 'd3-regression/LICENSE': Asset(url='https://raw.githubusercontent.com/HarryStevens/d3-regression/e23d40a663dffba14b92cb42d9989de3a32894b5/LICENSE', version='1.2.1', sha256='d210203f922101502894baf700b9a392e323a26e4b603ab166c57e09a6e773b5'), 'd3-scale/LICENSE': Asset(url='https://raw.githubusercontent.com/d3/d3-scale/refs/tags/v{version}/LICENSE', version='3.3.0', sha256='7eea8533ea92bd8c32a901e89ecb0305890905bb12711449565ddff96891146d'), 'd3-shape/LICENSE': Asset(url='https://raw.githubusercontent.com/d3/d3-shape/refs/tags/v{version}/LICENSE', version='2.1.0', sha256='7eea8533ea92bd8c32a901e89ecb0305890905bb12711449565ddff96891146d'), 'd3-time-format/LICENSE': Asset(url='https://raw.githubusercontent.com/d3/d3-time-format/refs/tags/v{version}/LICENSE', version='3.0.0', sha256='7a3cb0e5055874e67db9aa2d5fe26de23204fa994ffbad198901ffe9c812a717'), 'd3-time/LICENSE': Asset(url='https://raw.githubusercontent.com/d3/d3-time/refs/tags/v{version}/LICENSE', version='2.1.1', sha256='e1211892da0b0e0585b7aebe8f98c1274fba15bafe47fa1f4ee8a7a502c06304'), 'd3-timer/LICENSE': Asset(url='https://raw.githubusercontent.com/d3/d3-timer/refs/tags/v{version}/LICENSE', version='2.0.0', sha256='e1211892da0b0e0585b7aebe8f98c1274fba15bafe47fa1f4ee8a7a502c06304'), 'delaunator/LICENSE': Asset(url='https://raw.githubusercontent.com/mapbox/delaunator/refs/tags/v{version}/LICENSE', version='4.0.1', sha256='27043d1a6a0e1985fde12660decbbd3b23c67de900b00609c90d4f0aa492f425'), 'esprima/LICENSE.BSD': Asset(url='https://raw.githubusercontent.com/jquery/esprima/refs/tags/{version}/LICENSE.BSD', version='2.2.0', sha256='0e74697a68cebdcd61502c30fe80ab7f9e341d995dcd452023654d57133534b1'), 'fabric/LICENSE': Asset(url='https://raw.githubusercontent.com/fabricjs/fabric.js/refs/tags/v{version}/LICENSE', version='2.4.5', sha256='9f6c2cc99aa9c618df93fed7d1cf7279d4e329d92dd2ce5e96173c73ce305055'), 'fast-deep-equal/LICENSE': Asset(url='https://raw.githubusercontent.com/epoberezkin/fast-deep-equal/refs/tags/v{version}/LICENSE', version='3.1.3', sha256='7bf9b2de73a6b356761c948d0e9eeb4be6c1270bd04c79cd489c1e400ffdfc1a'), 'fast-json-patch/LICENSE': Asset(url='https://raw.githubusercontent.com/Starcounter-Jack/JSON-Patch/refs/tags/v{version}/LICENSE.txt', version='3.1.0', sha256='26593d78926902a82eb9bc7e40d1811fc381055f23516b92fe48ca8399bf02df'), 'fast-json-stable-stringify/LICENSE': Asset(url='https://raw.githubusercontent.com/epoberezkin/fast-json-stable-stringify/refs/tags/v{version}/LICENSE', version='2.1.0', sha256='a833d366242c298cf1b10263516572fb8dcbe68eb5072cdcac2b4546e2b4eb36'), 'hashlru/LICENSE': Asset(url='https://raw.githubusercontent.com/dominictarr/hashlru/refs/tags/v{version}/LICENSE', version='1.0.4', sha256='08e4bd7a280eaaf1fbcaad9dad1fb94412477fcdd1cf81660988303297e5e1d1'), 'heroicons/LICENSE': Asset(url='https://raw.githubusercontent.com/tailwindlabs/heroicons/refs/tags/v{version}/LICENSE', version='1.0.3', sha256='75523ddd65d9620bea09f84e89d0c373b4205a3708b8a1e9f9598a5438a3e641'), 'json-stringify-pretty-compact/LICENSE': Asset(url='https://raw.githubusercontent.com/lydell/json-stringify-pretty-compact/refs/tags/v{version}/LICENSE', version='3.0.0', sha256='d0800a7c9b5f723f7fe029f75d3a9ae44173178b9729d1521e18371ab24ae97a'), 'prop-types/LICENSE': Asset(url='https://raw.githubusercontent.com/facebook/prop-types/refs/tags/v{version}/LICENSE', version='15.7.2', sha256='f657f99d3fb9647db92628e96007aabb46e5f04f33e49999075aab8e250ca7ce'), 'prop-types/prop-types.min.js': Asset(url='https://cdnjs.cloudflare.com/ajax/libs/prop-types/{version}/prop-types.min.js', version='15.7.2', sha256='4c88350517ee82aa4f3368e67ef1a453ca6636dcfa6449b4e3d6faa5c877066e'), 'pygments/LICENSE': Asset(url='https://raw.githubusercontent.com/pygments/pygments/master/LICENSE', version=None, sha256='a9d66f1d526df02e29dce73436d34e56e8632f46c275bbdffc70569e882f9f17'), 'quickselect/LICENSE': Asset(url='https://raw.githubusercontent.com/mourner/quickselect/refs/tags/v{version}/LICENSE', version='2.0.0', sha256='597034cb7c11c916ad407344ea99a0b08e3c443a6b4421460f1d23c411c69707'), 'react/LICENSE': Asset(url='https://raw.githubusercontent.com/facebook/react/refs/tags/v{version}/LICENSE', version='18.2.0', sha256='52412d7bc7ce4157ea628bbaacb8829e0a9cb3c58f57f99176126bc8cf2bfc85'), 'react/react-dom.production.min.js': Asset(url='https://cdnjs.cloudflare.com/ajax/libs/react-dom/{version}/umd/react-dom.production.min.js', version='18.2.0', sha256='21758ed084cd0e37e735722ee4f3957ea960628a29dfa6c3ce1a1d47a2d6e4f7'), 'react/react.production.min.js': Asset(url='https://cdnjs.cloudflare.com/ajax/libs/react/{version}/umd/react.production.min.js', version='18.2.0', sha256='4b4969fa4ef3594324da2c6d78ce8766fbbc2fd121fff395aedf997db0a99a06'), 'regression/LICENSE': Asset(url='https://raw.githubusercontent.com/Tom-Alexander/regression-js/refs/tags/{version}/LICENSE', version='2.0.1', sha256='2f932f5cfb9b042cc6c0089ee8004b33e3746ffeab879341dbd453c150524307'), 'science/LICENSE': Asset(url='https://raw.githubusercontent.com/jasondavies/science.js/refs/tags/v{version}/LICENSE', version='1.9.3', sha256='3bd1fdf686ffcad175daddcb36ee28599ac8f090b6cec2c7654118c8a6f3d4c9'), 'semver/LICENSE': Asset(url='https://raw.githubusercontent.com/npm/node-semver/refs/tags/v{version}/LICENSE', version='7.3.5', sha256='4ec3d4c66cd87f5c8d8ad911b10f99bf27cb00cdfcff82621956e379186b016b'), 'shapefile/LICENSE': Asset(url='https://raw.githubusercontent.com/mbostock/shapefile/refs/tags/v{version}/LICENSE.txt', version='0.6.2', sha256='c16529a9d5b8802982abd714a6823344e24b0cb5131596bc343927ead605d708'), 'snakemake/LICENSE.md': Asset(url='https://raw.githubusercontent.com/snakemake/snakemake/main/LICENSE.md', version=None, sha256='84a1a82b05c80637744d3fe8257235c15380efa6cc32608adf4b21f17af5d2b8'), 'tailwindcss/LICENSE': Asset(url='https://raw.githubusercontent.com/tailwindlabs/tailwindcss/refs/tags/v{version}/LICENSE', version='3.0.23', sha256='60e0b68c0f35c078eef3a5d29419d0b03ff84ec1df9c3f9d6e39a519a5ae7985'), 'tailwindcss/tailwind.css': Asset(url='https://cdn.tailwindcss.com/{version}?plugins=forms@0.5.9,typography@0.5.2', version='3.4.16', sha256=None), 'topojson-client/LICENSE': Asset(url='https://raw.githubusercontent.com/topojson/topojson-client/refs/tags/v{version}/LICENSE', version='3.1.0', sha256='4c4d15b635e04e691825a76db7d33f7f2033b55669a7430011694f31e6c65999'), 'vega-embed/LICENSE': Asset(url='https://raw.githubusercontent.com/vega/vega-embed/refs/tags/v{version}/LICENSE', version='6.20.8', sha256='32df67148f0fc3db0eb9e263a7b75d07f1eb14c61955005a4a39c6918d10d137'), 'vega-embed/vega-embed.js': Asset(url='https://cdnjs.cloudflare.com/ajax/libs/vega-embed/{version}/vega-embed.js', version='6.20.8', sha256='4e546c1f86eb200333606440e92f76e2940b905757018d9672cd1708e4e6ff0a'), 'vega-lite/LICENSE': Asset(url='https://raw.githubusercontent.com/vega/vega-lite/refs/tags/v{version}/LICENSE', version='5.2.0', sha256='f618900fd0d64046963b29f40590cdd1e341a2f41449f99110d82fd81fea808c'), 'vega-lite/vega-lite.js': Asset(url='https://cdnjs.cloudflare.com/ajax/libs/vega-lite/{version}/vega-lite.js', version='5.2.0', sha256='6eb7f93121cd9f44cf8640244f87c5e143f87c7a0b6cd113da4a9e41e3adf0aa'), 'vega-schema-url-parser/LICENSE': Asset(url='https://unpkg.com/vega-schema-url-parser@{version}/LICENSE', version='2.2.0', sha256='eeb1606fda238f623c36d1eb5e27c33b986a446445340b220c141097424af045'), 'vega-themes/LICENSE': Asset(url='https://raw.githubusercontent.com/vega/vega-themes/refs/tags/v{version}/LICENSE', version='2.10.0', sha256='ceb75fa4fbebbc381c0465442a502ffc13b73f36ccb385a66bcd5f55869e3979'), 'vega-tooltip/LICENSE': Asset(url='https://raw.githubusercontent.com/vega/vega-tooltip/refs/tags/v{version}/LICENSE', version='0.28.0', sha256='93cd20d9cee8c77c080d1a585e3b07644ad2c8e9ccdfc86e350136884d62d935'), 'vega/LICENSE': Asset(url='https://raw.githubusercontent.com/vega/vega/refs/tags/v{version}/LICENSE', version='5.21.0', sha256='b75f7ed0af20dedadf92c52bc236161bcf0d294ff2e6e34ca76403203349f71d'), 'vega/vega.js': Asset(url='https://cdnjs.cloudflare.com/ajax/libs/vega/{version}/vega.js', version='5.21.0', sha256='b34c43055ef5d39a093e937522955dc359fbaec6c5b0259ae2de4c9da698e9fe')}