holoscan 0.0.0.post1__py3-none-any.whl → 3.7.0__py3-none-any.whl

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.
@@ -0,0 +1,48 @@
1
+ Metadata-Version: 2.4
2
+ Name: holoscan
3
+ Version: 3.7.0
4
+ Summary: The Holoscan SDK: a meta-package for installing CUDA-specific versions
5
+ Author: NVIDIA Corporation
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/nvidia-holoscan
8
+ Classifier: Development Status :: 5 - Production/Stable
9
+ Classifier: Environment :: Console
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Operating System :: POSIX :: Linux
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
14
+ Requires-Python: >=3.9
15
+ Description-Content-Type: text/markdown
16
+ Requires-Dist: holoscan-cu12==3.7.0
17
+ Dynamic: requires-dist
18
+
19
+ # Holoscan SDK
20
+
21
+ The **Holoscan SDK Python Wheel** is part of [NVIDIA Holoscan](https://developer.nvidia.com/holoscan-sdk), the AI sensor processing platform that combines hardware systems for low-latency sensor and network connectivity, optimized libraries for data processing and AI, and core microservices to run streaming, imaging, and other applications, from embedded to edge to cloud. It can be used to build streaming AI pipelines for a variety of domains, including Medical Devices, High Performance Computing at the Edge, Industrial Inspection and more.
22
+
23
+ ## Getting Started
24
+
25
+ Visit the Holoscan User Guide to [get started](https://docs.nvidia.com/holoscan/sdk-user-guide/getting_started.html) with the Holoscan SDK.
26
+
27
+ ## Installation
28
+
29
+ Please refer to the Holoscan SDK packages below for detailed instructions and guidance.
30
+
31
+ ### CUDA 12
32
+
33
+ The `holoscan` package is an alias for the [`holoscan-cu12`](https://pypi.org/project/holoscan-cu12/) distribution. The following
34
+ commands are equivalent to install Holoscan SDK in a CUDA 12 based Python environment:
35
+ ```sh
36
+ pip install holoscan
37
+ ```
38
+ __or__
39
+ ```sh
40
+ pip install holoscan-cu12
41
+ ```
42
+
43
+ ### CUDA 13
44
+
45
+ Holoscan SDK CUDA 13 packages are available at [`holoscan-cu13`](https://pypi.org/project/holoscan-cu13/):
46
+ ```sh
47
+ pip install holoscan-cu13
48
+ ```
@@ -0,0 +1,4 @@
1
+ holoscan-3.7.0.dist-info/METADATA,sha256=9RPaO4Oknu071Eh52Z2SY0BJ_EA0a-Z7b7eH_TtPj7I,1964
2
+ holoscan-3.7.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
3
+ holoscan-3.7.0.dist-info/top_level.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
4
+ holoscan-3.7.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.37.1)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -0,0 +1 @@
1
+
holoscan/__init__.py DELETED
@@ -1,3 +0,0 @@
1
-
2
- from . import _version
3
- __version__ = _version.get_versions()['version']
holoscan/_version.py DELETED
@@ -1,21 +0,0 @@
1
-
2
- # This file was generated by 'versioneer.py' (0.19) from
3
- # revision-control system data, or from the parent directory name of an
4
- # unpacked source archive. Distribution tarballs contain a pre-generated copy
5
- # of this file.
6
-
7
- import json
8
-
9
- version_json = '''
10
- {
11
- "date": "2022-01-31T13:51:08-0800",
12
- "dirty": false,
13
- "error": null,
14
- "full-revisionid": "663a48fa475f757c4bcc433bf1cb5ea5233b42b5",
15
- "version": "0.0.0.post1"
16
- }
17
- ''' # END VERSION_JSON
18
-
19
-
20
- def get_versions():
21
- return json.loads(version_json)
holoscan/cli/__init__.py DELETED
File without changes
holoscan/cli/_version.py DELETED
@@ -1,644 +0,0 @@
1
-
2
- # This file helps to compute a version number in source trees obtained from
3
- # git-archive tarball (such as those provided by githubs download-from-tag
4
- # feature). Distribution tarballs (built by setup.py sdist) and build
5
- # directories (produced by setup.py build) will contain a much shorter file
6
- # that just contains the computed version number.
7
-
8
- # This file is released into the public domain. Generated by
9
- # versioneer-0.21 (https://github.com/python-versioneer/python-versioneer)
10
-
11
- """Git implementation of _version.py."""
12
-
13
- import errno
14
- import os
15
- import re
16
- import subprocess
17
- import sys
18
- from typing import Callable, Dict
19
-
20
-
21
- def get_keywords():
22
- """Get the keywords needed to look up the version information."""
23
- # these strings will be replaced by git during git-archive.
24
- # setup.py/versioneer.py will grep for the variable names, so they must
25
- # each be defined on a line of their own. _version.py will just call
26
- # get_keywords().
27
- git_refnames = "$Format:%d$"
28
- git_full = "$Format:%H$"
29
- git_date = "$Format:%ci$"
30
- keywords = {"refnames": git_refnames, "full": git_full, "date": git_date}
31
- return keywords
32
-
33
-
34
- class VersioneerConfig:
35
- """Container for Versioneer configuration parameters."""
36
-
37
-
38
- def get_config():
39
- """Create, populate and return the VersioneerConfig() object."""
40
- # these strings are filled in when 'setup.py versioneer' creates
41
- # _version.py
42
- cfg = VersioneerConfig()
43
- cfg.VCS = "git"
44
- cfg.style = "pep440"
45
- cfg.tag_prefix = ""
46
- cfg.parentdir_prefix = ""
47
- cfg.versionfile_source = "holoscan/_version.py"
48
- cfg.verbose = False
49
- return cfg
50
-
51
-
52
- class NotThisMethod(Exception):
53
- """Exception raised if a method is not valid for the current scenario."""
54
-
55
-
56
- LONG_VERSION_PY: Dict[str, str] = {}
57
- HANDLERS: Dict[str, Dict[str, Callable]] = {}
58
-
59
-
60
- def register_vcs_handler(vcs, method): # decorator
61
- """Create decorator to mark a method as the handler of a VCS."""
62
- def decorate(f):
63
- """Store f in HANDLERS[vcs][method]."""
64
- if vcs not in HANDLERS:
65
- HANDLERS[vcs] = {}
66
- HANDLERS[vcs][method] = f
67
- return f
68
- return decorate
69
-
70
-
71
- def run_command(commands, args, cwd=None, verbose=False, hide_stderr=False,
72
- env=None):
73
- """Call the given command(s)."""
74
- assert isinstance(commands, list)
75
- process = None
76
- for command in commands:
77
- try:
78
- dispcmd = str([command] + args)
79
- # remember shell=False, so use git.cmd on windows, not just git
80
- process = subprocess.Popen([command] + args, cwd=cwd, env=env,
81
- stdout=subprocess.PIPE,
82
- stderr=(subprocess.PIPE if hide_stderr
83
- else None))
84
- break
85
- except OSError:
86
- e = sys.exc_info()[1]
87
- if e.errno == errno.ENOENT:
88
- continue
89
- if verbose:
90
- print("unable to run %s" % dispcmd)
91
- print(e)
92
- return None, None
93
- else:
94
- if verbose:
95
- print("unable to find command, tried %s" % (commands,))
96
- return None, None
97
- stdout = process.communicate()[0].strip().decode()
98
- if process.returncode != 0:
99
- if verbose:
100
- print("unable to run %s (error)" % dispcmd)
101
- print("stdout was %s" % stdout)
102
- return None, process.returncode
103
- return stdout, process.returncode
104
-
105
-
106
- def versions_from_parentdir(parentdir_prefix, root, verbose):
107
- """Try to determine the version from the parent directory name.
108
-
109
- Source tarballs conventionally unpack into a directory that includes both
110
- the project name and a version string. We will also support searching up
111
- two directory levels for an appropriately named parent directory
112
- """
113
- rootdirs = []
114
-
115
- for _ in range(3):
116
- dirname = os.path.basename(root)
117
- if dirname.startswith(parentdir_prefix):
118
- return {"version": dirname[len(parentdir_prefix):],
119
- "full-revisionid": None,
120
- "dirty": False, "error": None, "date": None}
121
- rootdirs.append(root)
122
- root = os.path.dirname(root) # up a level
123
-
124
- if verbose:
125
- print("Tried directories %s but none started with prefix %s" %
126
- (str(rootdirs), parentdir_prefix))
127
- raise NotThisMethod("rootdir doesn't start with parentdir_prefix")
128
-
129
-
130
- @register_vcs_handler("git", "get_keywords")
131
- def git_get_keywords(versionfile_abs):
132
- """Extract version information from the given file."""
133
- # the code embedded in _version.py can just fetch the value of these
134
- # keywords. When used from setup.py, we don't want to import _version.py,
135
- # so we do it with a regexp instead. This function is not used from
136
- # _version.py.
137
- keywords = {}
138
- try:
139
- with open(versionfile_abs, "r") as fobj:
140
- for line in fobj:
141
- if line.strip().startswith("git_refnames ="):
142
- mo = re.search(r'=\s*"(.*)"', line)
143
- if mo:
144
- keywords["refnames"] = mo.group(1)
145
- if line.strip().startswith("git_full ="):
146
- mo = re.search(r'=\s*"(.*)"', line)
147
- if mo:
148
- keywords["full"] = mo.group(1)
149
- if line.strip().startswith("git_date ="):
150
- mo = re.search(r'=\s*"(.*)"', line)
151
- if mo:
152
- keywords["date"] = mo.group(1)
153
- except OSError:
154
- pass
155
- return keywords
156
-
157
-
158
- @register_vcs_handler("git", "keywords")
159
- def git_versions_from_keywords(keywords, tag_prefix, verbose):
160
- """Get version information from git keywords."""
161
- if "refnames" not in keywords:
162
- raise NotThisMethod("Short version file found")
163
- date = keywords.get("date")
164
- if date is not None:
165
- # Use only the last line. Previous lines may contain GPG signature
166
- # information.
167
- date = date.splitlines()[-1]
168
-
169
- # git-2.2.0 added "%cI", which expands to an ISO-8601 -compliant
170
- # datestamp. However we prefer "%ci" (which expands to an "ISO-8601
171
- # -like" string, which we must then edit to make compliant), because
172
- # it's been around since git-1.5.3, and it's too difficult to
173
- # discover which version we're using, or to work around using an
174
- # older one.
175
- date = date.strip().replace(" ", "T", 1).replace(" ", "", 1)
176
- refnames = keywords["refnames"].strip()
177
- if refnames.startswith("$Format"):
178
- if verbose:
179
- print("keywords are unexpanded, not using")
180
- raise NotThisMethod("unexpanded keywords, not a git-archive tarball")
181
- refs = {r.strip() for r in refnames.strip("()").split(",")}
182
- # starting in git-1.8.3, tags are listed as "tag: foo-1.0" instead of
183
- # just "foo-1.0". If we see a "tag: " prefix, prefer those.
184
- TAG = "tag: "
185
- tags = {r[len(TAG):] for r in refs if r.startswith(TAG)}
186
- if not tags:
187
- # Either we're using git < 1.8.3, or there really are no tags. We use
188
- # a heuristic: assume all version tags have a digit. The old git %d
189
- # expansion behaves like git log --decorate=short and strips out the
190
- # refs/heads/ and refs/tags/ prefixes that would let us distinguish
191
- # between branches and tags. By ignoring refnames without digits, we
192
- # filter out many common branch names like "release" and
193
- # "stabilization", as well as "HEAD" and "master".
194
- tags = {r for r in refs if re.search(r'\d', r)}
195
- if verbose:
196
- print("discarding '%s', no digits" % ",".join(refs - tags))
197
- if verbose:
198
- print("likely tags: %s" % ",".join(sorted(tags)))
199
- for ref in sorted(tags):
200
- # sorting will prefer e.g. "2.0" over "2.0rc1"
201
- if ref.startswith(tag_prefix):
202
- r = ref[len(tag_prefix):]
203
- # Filter out refs that exactly match prefix or that don't start
204
- # with a number once the prefix is stripped (mostly a concern
205
- # when prefix is '')
206
- if not re.match(r'\d', r):
207
- continue
208
- if verbose:
209
- print("picking %s" % r)
210
- return {"version": r,
211
- "full-revisionid": keywords["full"].strip(),
212
- "dirty": False, "error": None,
213
- "date": date}
214
- # no suitable tags, so version is "0+unknown", but full hex is still there
215
- if verbose:
216
- print("no suitable tags, using unknown + full revision id")
217
- return {"version": "0+unknown",
218
- "full-revisionid": keywords["full"].strip(),
219
- "dirty": False, "error": "no suitable tags", "date": None}
220
-
221
-
222
- @register_vcs_handler("git", "pieces_from_vcs")
223
- def git_pieces_from_vcs(tag_prefix, root, verbose, runner=run_command):
224
- """Get version from 'git describe' in the root of the source tree.
225
-
226
- This only gets called if the git-archive 'subst' keywords were *not*
227
- expanded, and _version.py hasn't already been rewritten with a short
228
- version string, meaning we're inside a checked out source tree.
229
- """
230
- GITS = ["git"]
231
- TAG_PREFIX_REGEX = "*"
232
- if sys.platform == "win32":
233
- GITS = ["git.cmd", "git.exe"]
234
- TAG_PREFIX_REGEX = r"\*"
235
-
236
- _, rc = runner(GITS, ["rev-parse", "--git-dir"], cwd=root,
237
- hide_stderr=True)
238
- if rc != 0:
239
- if verbose:
240
- print("Directory %s not under git control" % root)
241
- raise NotThisMethod("'git rev-parse --git-dir' returned error")
242
-
243
- # if there is a tag matching tag_prefix, this yields TAG-NUM-gHEX[-dirty]
244
- # if there isn't one, this yields HEX[-dirty] (no NUM)
245
- describe_out, rc = runner(GITS, ["describe", "--tags", "--dirty",
246
- "--always", "--long",
247
- "--match",
248
- "%s%s" % (tag_prefix, TAG_PREFIX_REGEX)],
249
- cwd=root)
250
- # --long was added in git-1.5.5
251
- if describe_out is None:
252
- raise NotThisMethod("'git describe' failed")
253
- describe_out = describe_out.strip()
254
- full_out, rc = runner(GITS, ["rev-parse", "HEAD"], cwd=root)
255
- if full_out is None:
256
- raise NotThisMethod("'git rev-parse' failed")
257
- full_out = full_out.strip()
258
-
259
- pieces = {}
260
- pieces["long"] = full_out
261
- pieces["short"] = full_out[:7] # maybe improved later
262
- pieces["error"] = None
263
-
264
- branch_name, rc = runner(GITS, ["rev-parse", "--abbrev-ref", "HEAD"],
265
- cwd=root)
266
- # --abbrev-ref was added in git-1.6.3
267
- if rc != 0 or branch_name is None:
268
- raise NotThisMethod("'git rev-parse --abbrev-ref' returned error")
269
- branch_name = branch_name.strip()
270
-
271
- if branch_name == "HEAD":
272
- # If we aren't exactly on a branch, pick a branch which represents
273
- # the current commit. If all else fails, we are on a branchless
274
- # commit.
275
- branches, rc = runner(GITS, ["branch", "--contains"], cwd=root)
276
- # --contains was added in git-1.5.4
277
- if rc != 0 or branches is None:
278
- raise NotThisMethod("'git branch --contains' returned error")
279
- branches = branches.split("\n")
280
-
281
- # Remove the first line if we're running detached
282
- if "(" in branches[0]:
283
- branches.pop(0)
284
-
285
- # Strip off the leading "* " from the list of branches.
286
- branches = [branch[2:] for branch in branches]
287
- if "master" in branches:
288
- branch_name = "master"
289
- elif not branches:
290
- branch_name = None
291
- else:
292
- # Pick the first branch that is returned. Good or bad.
293
- branch_name = branches[0]
294
-
295
- pieces["branch"] = branch_name
296
-
297
- # parse describe_out. It will be like TAG-NUM-gHEX[-dirty] or HEX[-dirty]
298
- # TAG might have hyphens.
299
- git_describe = describe_out
300
-
301
- # look for -dirty suffix
302
- dirty = git_describe.endswith("-dirty")
303
- pieces["dirty"] = dirty
304
- if dirty:
305
- git_describe = git_describe[:git_describe.rindex("-dirty")]
306
-
307
- # now we have TAG-NUM-gHEX or HEX
308
-
309
- if "-" in git_describe:
310
- # TAG-NUM-gHEX
311
- mo = re.search(r'^(.+)-(\d+)-g([0-9a-f]+)$', git_describe)
312
- if not mo:
313
- # unparsable. Maybe git-describe is misbehaving?
314
- pieces["error"] = ("unable to parse git-describe output: '%s'"
315
- % describe_out)
316
- return pieces
317
-
318
- # tag
319
- full_tag = mo.group(1)
320
- if not full_tag.startswith(tag_prefix):
321
- if verbose:
322
- fmt = "tag '%s' doesn't start with prefix '%s'"
323
- print(fmt % (full_tag, tag_prefix))
324
- pieces["error"] = ("tag '%s' doesn't start with prefix '%s'"
325
- % (full_tag, tag_prefix))
326
- return pieces
327
- pieces["closest-tag"] = full_tag[len(tag_prefix):]
328
-
329
- # distance: number of commits since tag
330
- pieces["distance"] = int(mo.group(2))
331
-
332
- # commit: short hex revision ID
333
- pieces["short"] = mo.group(3)
334
-
335
- else:
336
- # HEX: no tags
337
- pieces["closest-tag"] = None
338
- count_out, rc = runner(GITS, ["rev-list", "HEAD", "--count"], cwd=root)
339
- pieces["distance"] = int(count_out) # total number of commits
340
-
341
- # commit date: see ISO-8601 comment in git_versions_from_keywords()
342
- date = runner(GITS, ["show", "-s", "--format=%ci", "HEAD"], cwd=root)[0].strip()
343
- # Use only the last line. Previous lines may contain GPG signature
344
- # information.
345
- date = date.splitlines()[-1]
346
- pieces["date"] = date.strip().replace(" ", "T", 1).replace(" ", "", 1)
347
-
348
- return pieces
349
-
350
-
351
- def plus_or_dot(pieces):
352
- """Return a + if we don't already have one, else return a ."""
353
- if "+" in pieces.get("closest-tag", ""):
354
- return "."
355
- return "+"
356
-
357
-
358
- def render_pep440(pieces):
359
- """Build up version string, with post-release "local version identifier".
360
-
361
- Our goal: TAG[+DISTANCE.gHEX[.dirty]] . Note that if you
362
- get a tagged build and then dirty it, you'll get TAG+0.gHEX.dirty
363
-
364
- Exceptions:
365
- 1: no tags. git_describe was just HEX. 0+untagged.DISTANCE.gHEX[.dirty]
366
- """
367
- if pieces["closest-tag"]:
368
- rendered = pieces["closest-tag"]
369
- if pieces["distance"] or pieces["dirty"]:
370
- rendered += plus_or_dot(pieces)
371
- rendered += "%d.g%s" % (pieces["distance"], pieces["short"])
372
- if pieces["dirty"]:
373
- rendered += ".dirty"
374
- else:
375
- # exception #1
376
- rendered = "0+untagged.%d.g%s" % (pieces["distance"],
377
- pieces["short"])
378
- if pieces["dirty"]:
379
- rendered += ".dirty"
380
- return rendered
381
-
382
-
383
- def render_pep440_branch(pieces):
384
- """TAG[[.dev0]+DISTANCE.gHEX[.dirty]] .
385
-
386
- The ".dev0" means not master branch. Note that .dev0 sorts backwards
387
- (a feature branch will appear "older" than the master branch).
388
-
389
- Exceptions:
390
- 1: no tags. 0[.dev0]+untagged.DISTANCE.gHEX[.dirty]
391
- """
392
- if pieces["closest-tag"]:
393
- rendered = pieces["closest-tag"]
394
- if pieces["distance"] or pieces["dirty"]:
395
- if pieces["branch"] != "master":
396
- rendered += ".dev0"
397
- rendered += plus_or_dot(pieces)
398
- rendered += "%d.g%s" % (pieces["distance"], pieces["short"])
399
- if pieces["dirty"]:
400
- rendered += ".dirty"
401
- else:
402
- # exception #1
403
- rendered = "0"
404
- if pieces["branch"] != "master":
405
- rendered += ".dev0"
406
- rendered += "+untagged.%d.g%s" % (pieces["distance"],
407
- pieces["short"])
408
- if pieces["dirty"]:
409
- rendered += ".dirty"
410
- return rendered
411
-
412
-
413
- def pep440_split_post(ver):
414
- """Split pep440 version string at the post-release segment.
415
-
416
- Returns the release segments before the post-release and the
417
- post-release version number (or -1 if no post-release segment is present).
418
- """
419
- vc = str.split(ver, ".post")
420
- return vc[0], int(vc[1] or 0) if len(vc) == 2 else None
421
-
422
-
423
- def render_pep440_pre(pieces):
424
- """TAG[.postN.devDISTANCE] -- No -dirty.
425
-
426
- Exceptions:
427
- 1: no tags. 0.post0.devDISTANCE
428
- """
429
- if pieces["closest-tag"]:
430
- if pieces["distance"]:
431
- # update the post release segment
432
- tag_version, post_version = pep440_split_post(pieces["closest-tag"])
433
- rendered = tag_version
434
- if post_version is not None:
435
- rendered += ".post%d.dev%d" % (post_version+1, pieces["distance"])
436
- else:
437
- rendered += ".post0.dev%d" % (pieces["distance"])
438
- else:
439
- # no commits, use the tag as the version
440
- rendered = pieces["closest-tag"]
441
- else:
442
- # exception #1
443
- rendered = "0.post0.dev%d" % pieces["distance"]
444
- return rendered
445
-
446
-
447
- def render_pep440_post(pieces):
448
- """TAG[.postDISTANCE[.dev0]+gHEX] .
449
-
450
- The ".dev0" means dirty. Note that .dev0 sorts backwards
451
- (a dirty tree will appear "older" than the corresponding clean one),
452
- but you shouldn't be releasing software with -dirty anyways.
453
-
454
- Exceptions:
455
- 1: no tags. 0.postDISTANCE[.dev0]
456
- """
457
- if pieces["closest-tag"]:
458
- rendered = pieces["closest-tag"]
459
- if pieces["distance"] or pieces["dirty"]:
460
- rendered += ".post%d" % pieces["distance"]
461
- if pieces["dirty"]:
462
- rendered += ".dev0"
463
- rendered += plus_or_dot(pieces)
464
- rendered += "g%s" % pieces["short"]
465
- else:
466
- # exception #1
467
- rendered = "0.post%d" % pieces["distance"]
468
- if pieces["dirty"]:
469
- rendered += ".dev0"
470
- rendered += "+g%s" % pieces["short"]
471
- return rendered
472
-
473
-
474
- def render_pep440_post_branch(pieces):
475
- """TAG[.postDISTANCE[.dev0]+gHEX[.dirty]] .
476
-
477
- The ".dev0" means not master branch.
478
-
479
- Exceptions:
480
- 1: no tags. 0.postDISTANCE[.dev0]+gHEX[.dirty]
481
- """
482
- if pieces["closest-tag"]:
483
- rendered = pieces["closest-tag"]
484
- if pieces["distance"] or pieces["dirty"]:
485
- rendered += ".post%d" % pieces["distance"]
486
- if pieces["branch"] != "master":
487
- rendered += ".dev0"
488
- rendered += plus_or_dot(pieces)
489
- rendered += "g%s" % pieces["short"]
490
- if pieces["dirty"]:
491
- rendered += ".dirty"
492
- else:
493
- # exception #1
494
- rendered = "0.post%d" % pieces["distance"]
495
- if pieces["branch"] != "master":
496
- rendered += ".dev0"
497
- rendered += "+g%s" % pieces["short"]
498
- if pieces["dirty"]:
499
- rendered += ".dirty"
500
- return rendered
501
-
502
-
503
- def render_pep440_old(pieces):
504
- """TAG[.postDISTANCE[.dev0]] .
505
-
506
- The ".dev0" means dirty.
507
-
508
- Exceptions:
509
- 1: no tags. 0.postDISTANCE[.dev0]
510
- """
511
- if pieces["closest-tag"]:
512
- rendered = pieces["closest-tag"]
513
- if pieces["distance"] or pieces["dirty"]:
514
- rendered += ".post%d" % pieces["distance"]
515
- if pieces["dirty"]:
516
- rendered += ".dev0"
517
- else:
518
- # exception #1
519
- rendered = "0.post%d" % pieces["distance"]
520
- if pieces["dirty"]:
521
- rendered += ".dev0"
522
- return rendered
523
-
524
-
525
- def render_git_describe(pieces):
526
- """TAG[-DISTANCE-gHEX][-dirty].
527
-
528
- Like 'git describe --tags --dirty --always'.
529
-
530
- Exceptions:
531
- 1: no tags. HEX[-dirty] (note: no 'g' prefix)
532
- """
533
- if pieces["closest-tag"]:
534
- rendered = pieces["closest-tag"]
535
- if pieces["distance"]:
536
- rendered += "-%d-g%s" % (pieces["distance"], pieces["short"])
537
- else:
538
- # exception #1
539
- rendered = pieces["short"]
540
- if pieces["dirty"]:
541
- rendered += "-dirty"
542
- return rendered
543
-
544
-
545
- def render_git_describe_long(pieces):
546
- """TAG-DISTANCE-gHEX[-dirty].
547
-
548
- Like 'git describe --tags --dirty --always -long'.
549
- The distance/hash is unconditional.
550
-
551
- Exceptions:
552
- 1: no tags. HEX[-dirty] (note: no 'g' prefix)
553
- """
554
- if pieces["closest-tag"]:
555
- rendered = pieces["closest-tag"]
556
- rendered += "-%d-g%s" % (pieces["distance"], pieces["short"])
557
- else:
558
- # exception #1
559
- rendered = pieces["short"]
560
- if pieces["dirty"]:
561
- rendered += "-dirty"
562
- return rendered
563
-
564
-
565
- def render(pieces, style):
566
- """Render the given version pieces into the requested style."""
567
- if pieces["error"]:
568
- return {"version": "unknown",
569
- "full-revisionid": pieces.get("long"),
570
- "dirty": None,
571
- "error": pieces["error"],
572
- "date": None}
573
-
574
- if not style or style == "default":
575
- style = "pep440" # the default
576
-
577
- if style == "pep440":
578
- rendered = render_pep440(pieces)
579
- elif style == "pep440-branch":
580
- rendered = render_pep440_branch(pieces)
581
- elif style == "pep440-pre":
582
- rendered = render_pep440_pre(pieces)
583
- elif style == "pep440-post":
584
- rendered = render_pep440_post(pieces)
585
- elif style == "pep440-post-branch":
586
- rendered = render_pep440_post_branch(pieces)
587
- elif style == "pep440-old":
588
- rendered = render_pep440_old(pieces)
589
- elif style == "git-describe":
590
- rendered = render_git_describe(pieces)
591
- elif style == "git-describe-long":
592
- rendered = render_git_describe_long(pieces)
593
- else:
594
- raise ValueError("unknown style '%s'" % style)
595
-
596
- return {"version": rendered, "full-revisionid": pieces["long"],
597
- "dirty": pieces["dirty"], "error": None,
598
- "date": pieces.get("date")}
599
-
600
-
601
- def get_versions():
602
- """Get version information or return default if unable to do so."""
603
- # I am in _version.py, which lives at ROOT/VERSIONFILE_SOURCE. If we have
604
- # __file__, we can work backwards from there to the root. Some
605
- # py2exe/bbfreeze/non-CPython implementations don't do __file__, in which
606
- # case we can only use expanded keywords.
607
-
608
- cfg = get_config()
609
- verbose = cfg.verbose
610
-
611
- try:
612
- return git_versions_from_keywords(get_keywords(), cfg.tag_prefix,
613
- verbose)
614
- except NotThisMethod:
615
- pass
616
-
617
- try:
618
- root = os.path.realpath(__file__)
619
- # versionfile_source is the relative path from the top of the source
620
- # tree (where the .git directory might live) to this file. Invert
621
- # this to find the root from __file__.
622
- for _ in cfg.versionfile_source.split('/'):
623
- root = os.path.dirname(root)
624
- except NameError:
625
- return {"version": "0+unknown", "full-revisionid": None,
626
- "dirty": None,
627
- "error": "unable to find root of source tree",
628
- "date": None}
629
-
630
- try:
631
- pieces = git_pieces_from_vcs(cfg.tag_prefix, root, verbose)
632
- return render(pieces, cfg.style)
633
- except NotThisMethod:
634
- pass
635
-
636
- try:
637
- if cfg.parentdir_prefix:
638
- return versions_from_parentdir(cfg.parentdir_prefix, root, verbose)
639
- except NotThisMethod:
640
- pass
641
-
642
- return {"version": "0+unknown", "full-revisionid": None,
643
- "dirty": None,
644
- "error": "unable to compute version", "date": None}
holoscan/cli/main.py DELETED
@@ -1,39 +0,0 @@
1
- #
2
- # Copyright (c) 2022, NVIDIA CORPORATION.
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
- #
15
-
16
- """
17
- Module that contains the command line app.
18
-
19
- Why does this file exist, and why not put this in __main__?
20
-
21
- You might be tempted to import things from __main__ later, but that will cause
22
- problems: the code will get executed twice:
23
-
24
- - When you run `python -mholoscan` python will execute
25
- ``__main__.py`` as a script. That means there won't be any
26
- ``holoscan.__main__`` in ``sys.modules``.
27
- - When you import __main__ it will get executed again (as a module) because
28
- there's no ``holoscan.__main__`` in ``sys.modules``.
29
-
30
- Also see (1) from http://click.pocoo.org/5/setuptools/#setuptools-integration
31
- """
32
-
33
- import click
34
-
35
-
36
- @click.group()
37
- def main():
38
- """Clara Holoscan SDK"""
39
- pass
@@ -1,203 +0,0 @@
1
- Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.
2
-
3
- Apache License
4
- Version 2.0, January 2004
5
- http://www.apache.org/licenses/
6
-
7
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
8
-
9
- 1. Definitions.
10
-
11
- "License" shall mean the terms and conditions for use, reproduction,
12
- and distribution as defined by Sections 1 through 9 of this document.
13
-
14
- "Licensor" shall mean the copyright owner or entity authorized by
15
- the copyright owner that is granting the License.
16
-
17
- "Legal Entity" shall mean the union of the acting entity and all
18
- other entities that control, are controlled by, or are under common
19
- control with that entity. For the purposes of this definition,
20
- "control" means (i) the power, direct or indirect, to cause the
21
- direction or management of such entity, whether by contract or
22
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
23
- outstanding shares, or (iii) beneficial ownership of such entity.
24
-
25
- "You" (or "Your") shall mean an individual or Legal Entity
26
- exercising permissions granted by this License.
27
-
28
- "Source" form shall mean the preferred form for making modifications,
29
- including but not limited to software source code, documentation
30
- source, and configuration files.
31
-
32
- "Object" form shall mean any form resulting from mechanical
33
- transformation or translation of a Source form, including but
34
- not limited to compiled object code, generated documentation,
35
- and conversions to other media types.
36
-
37
- "Work" shall mean the work of authorship, whether in Source or
38
- Object form, made available under the License, as indicated by a
39
- copyright notice that is included in or attached to the work
40
- (an example is provided in the Appendix below).
41
-
42
- "Derivative Works" shall mean any work, whether in Source or Object
43
- form, that is based on (or derived from) the Work and for which the
44
- editorial revisions, annotations, elaborations, or other modifications
45
- represent, as a whole, an original work of authorship. For the purposes
46
- of this License, Derivative Works shall not include works that remain
47
- separable from, or merely link (or bind by name) to the interfaces of,
48
- the Work and Derivative Works thereof.
49
-
50
- "Contribution" shall mean any work of authorship, including
51
- the original version of the Work and any modifications or additions
52
- to that Work or Derivative Works thereof, that is intentionally
53
- submitted to Licensor for inclusion in the Work by the copyright owner
54
- or by an individual or Legal Entity authorized to submit on behalf of
55
- the copyright owner. For the purposes of this definition, "submitted"
56
- means any form of electronic, verbal, or written communication sent
57
- to the Licensor or its representatives, including but not limited to
58
- communication on electronic mailing lists, source code control systems,
59
- and issue tracking systems that are managed by, or on behalf of, the
60
- Licensor for the purpose of discussing and improving the Work, but
61
- excluding communication that is conspicuously marked or otherwise
62
- designated in writing by the copyright owner as "Not a Contribution."
63
-
64
- "Contributor" shall mean Licensor and any individual or Legal Entity
65
- on behalf of whom a Contribution has been received by Licensor and
66
- subsequently incorporated within the Work.
67
-
68
- 2. Grant of Copyright License. Subject to the terms and conditions of
69
- this License, each Contributor hereby grants to You a perpetual,
70
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
71
- copyright license to reproduce, prepare Derivative Works of,
72
- publicly display, publicly perform, sublicense, and distribute the
73
- Work and such Derivative Works in Source or Object form.
74
-
75
- 3. Grant of Patent License. Subject to the terms and conditions of
76
- this License, each Contributor hereby grants to You a perpetual,
77
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
78
- (except as stated in this section) patent license to make, have made,
79
- use, offer to sell, sell, import, and otherwise transfer the Work,
80
- where such license applies only to those patent claims licensable
81
- by such Contributor that are necessarily infringed by their
82
- Contribution(s) alone or by combination of their Contribution(s)
83
- with the Work to which such Contribution(s) was submitted. If You
84
- institute patent litigation against any entity (including a
85
- cross-claim or counterclaim in a lawsuit) alleging that the Work
86
- or a Contribution incorporated within the Work constitutes direct
87
- or contributory patent infringement, then any patent licenses
88
- granted to You under this License for that Work shall terminate
89
- as of the date such litigation is filed.
90
-
91
- 4. Redistribution. You may reproduce and distribute copies of the
92
- Work or Derivative Works thereof in any medium, with or without
93
- modifications, and in Source or Object form, provided that You
94
- meet the following conditions:
95
-
96
- (a) You must give any other recipients of the Work or
97
- Derivative Works a copy of this License; and
98
-
99
- (b) You must cause any modified files to carry prominent notices
100
- stating that You changed the files; and
101
-
102
- (c) You must retain, in the Source form of any Derivative Works
103
- that You distribute, all copyright, patent, trademark, and
104
- attribution notices from the Source form of the Work,
105
- excluding those notices that do not pertain to any part of
106
- the Derivative Works; and
107
-
108
- (d) If the Work includes a "NOTICE" text file as part of its
109
- distribution, then any Derivative Works that You distribute must
110
- include a readable copy of the attribution notices contained
111
- within such NOTICE file, excluding those notices that do not
112
- pertain to any part of the Derivative Works, in at least one
113
- of the following places: within a NOTICE text file distributed
114
- as part of the Derivative Works; within the Source form or
115
- documentation, if provided along with the Derivative Works; or,
116
- within a display generated by the Derivative Works, if and
117
- wherever such third-party notices normally appear. The contents
118
- of the NOTICE file are for informational purposes only and
119
- do not modify the License. You may add Your own attribution
120
- notices within Derivative Works that You distribute, alongside
121
- or as an addendum to the NOTICE text from the Work, provided
122
- that such additional attribution notices cannot be construed
123
- as modifying the License.
124
-
125
- You may add Your own copyright statement to Your modifications and
126
- may provide additional or different license terms and conditions
127
- for use, reproduction, or distribution of Your modifications, or
128
- for any such Derivative Works as a whole, provided Your use,
129
- reproduction, and distribution of the Work otherwise complies with
130
- the conditions stated in this License.
131
-
132
- 5. Submission of Contributions. Unless You explicitly state otherwise,
133
- any Contribution intentionally submitted for inclusion in the Work
134
- by You to the Licensor shall be under the terms and conditions of
135
- this License, without any additional terms or conditions.
136
- Notwithstanding the above, nothing herein shall supersede or modify
137
- the terms of any separate license agreement you may have executed
138
- with Licensor regarding such Contributions.
139
-
140
- 6. Trademarks. This License does not grant permission to use the trade
141
- names, trademarks, service marks, or product names of the Licensor,
142
- except as required for reasonable and customary use in describing the
143
- origin of the Work and reproducing the content of the NOTICE file.
144
-
145
- 7. Disclaimer of Warranty. Unless required by applicable law or
146
- agreed to in writing, Licensor provides the Work (and each
147
- Contributor provides its Contributions) on an "AS IS" BASIS,
148
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
149
- implied, including, without limitation, any warranties or conditions
150
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
151
- PARTICULAR PURPOSE. You are solely responsible for determining the
152
- appropriateness of using or redistributing the Work and assume any
153
- risks associated with Your exercise of permissions under this License.
154
-
155
- 8. Limitation of Liability. In no event and under no legal theory,
156
- whether in tort (including negligence), contract, or otherwise,
157
- unless required by applicable law (such as deliberate and grossly
158
- negligent acts) or agreed to in writing, shall any Contributor be
159
- liable to You for damages, including any direct, indirect, special,
160
- incidental, or consequential damages of any character arising as a
161
- result of this License or out of the use or inability to use the
162
- Work (including but not limited to damages for loss of goodwill,
163
- work stoppage, computer failure or malfunction, or any and all
164
- other commercial damages or losses), even if such Contributor
165
- has been advised of the possibility of such damages.
166
-
167
- 9. Accepting Warranty or Additional Liability. While redistributing
168
- the Work or Derivative Works thereof, You may choose to offer,
169
- and charge a fee for, acceptance of support, warranty, indemnity,
170
- or other liability obligations and/or rights consistent with this
171
- License. However, in accepting such obligations, You may act only
172
- on Your own behalf and on Your sole responsibility, not on behalf
173
- of any other Contributor, and only if You agree to indemnify,
174
- defend, and hold each Contributor harmless for any liability
175
- incurred by, or claims asserted against, such Contributor by reason
176
- of your accepting any such warranty or additional liability.
177
-
178
- END OF TERMS AND CONDITIONS
179
-
180
- APPENDIX: How to apply the Apache License to your work.
181
-
182
- To apply the Apache License to your work, attach the following
183
- boilerplate notice, with the fields enclosed by brackets "[]"
184
- replaced with your own identifying information. (Don't include
185
- the brackets!) The text should be enclosed in the appropriate
186
- comment syntax for the file format. We also recommend that a
187
- file or class name and description of purpose be included on the
188
- same "printed page" as the copyright notice for easier
189
- identification within third-party archives.
190
-
191
- Copyright [yyyy] [name of copyright owner]
192
-
193
- Licensed under the Apache License, Version 2.0 (the "License");
194
- you may not use this file except in compliance with the License.
195
- You may obtain a copy of the License at
196
-
197
- http://www.apache.org/licenses/LICENSE-2.0
198
-
199
- Unless required by applicable law or agreed to in writing, software
200
- distributed under the License is distributed on an "AS IS" BASIS,
201
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
202
- See the License for the specific language governing permissions and
203
- limitations under the License.
@@ -1,26 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: holoscan
3
- Version: 0.0.0.post1
4
- Summary: NVIDIA Clara™ Holoscan is the AI computing platform for medical devices that combines hardware systems for low-latency sensor and network connectivity, optimized libraries for data processing and AI, and core microservices to run streaming, imaging, and other applications, from embedded to edge to cloud.
5
- Home-page: https://developer.nvidia.com/clara-holoscan-sdk
6
- Author: NVIDIA Corporation
7
- Author-email: claraholoscan@nvidia.com
8
- License: Apache License 2.0
9
- Project-URL: Documentation, https://docs.nvidia.com/clara-holoscan/index.html
10
- Platform: OS Independent
11
- Requires-Python: >=3.7
12
- Description-Content-Type: text/markdown; charset=UTF-8
13
- License-File: LICENSE
14
- Requires-Dist: numpy (>=1.21)
15
- Requires-Dist: tqdm (>=4.0)
16
- Requires-Dist: typeguard (>=2.13.3)
17
- Provides-Extra: all
18
- Requires-Dist: cucim (~=22.02) ; extra == 'all'
19
- Provides-Extra: cucim
20
- Requires-Dist: cucim (~=22.02) ; extra == 'cucim'
21
-
22
- # Clara Holoscan SDK
23
-
24
- [NVIDIA Clara™ Holoscan](https://www.nvidia.com/en-us/clara/medical-devices/) is the AI computing platform for medical devices that combines hardware systems for low-latency sensor and network connectivity, optimized libraries for data processing and AI, and core microservices to run streaming, imaging, and other applications, from embedded to edge to cloud.
25
-
26
-
@@ -1,11 +0,0 @@
1
- holoscan/__init__.py,sha256=i1OTn1AdngdvNxFCdH3rIUEtMcHkWARFlEpONKBbGMI,73
2
- holoscan/_version.py,sha256=MJVopwcXoAAYGSpiGN6CvBQQHNIC6q7gzJ9vT4FwSC4,503
3
- holoscan/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- holoscan/cli/_version.py,sha256=ZEaivLrbauzAO5TwS8EJ9-8kInYwnpU0VUvuIWZe37Y,23175
5
- holoscan/cli/main.py,sha256=gJesa_lDNE8GcKgBg3PpkTs1qiUqPF6yYWgOQZmwjSM,1296
6
- holoscan-0.0.0.post1.dist-info/LICENSE,sha256=PDncZDuIVeoFmtcQPGJmczXyr893cGvQ_B9ojUeNeUw,11419
7
- holoscan-0.0.0.post1.dist-info/METADATA,sha256=JmhqurM4aXBPLLe-u1f3fHtsQThkwiPypQi8qCAfcnM,1353
8
- holoscan-0.0.0.post1.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
9
- holoscan-0.0.0.post1.dist-info/entry_points.txt,sha256=UoTzv5MnaiIkLlWdBAkjxjWk7gZJvutQUQ3lRu1Myyw,53
10
- holoscan-0.0.0.post1.dist-info/top_level.txt,sha256=wDsfPlaBf3MKZnQIkhKbsFAe2nDgXsB0HCmxZOUDqSs,9
11
- holoscan-0.0.0.post1.dist-info/RECORD,,
@@ -1,3 +0,0 @@
1
- [console_scripts]
2
- holoscan = holoscan.cli.main:main
3
-
@@ -1 +0,0 @@
1
- holoscan