File: main.py

package info (click to toggle)
python-laspy 2.5.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,928 kB
  • sloc: python: 9,065; makefile: 20
file content (25 lines) | stat: -rw-r--r-- 410 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
try:
    import rich
    import typer

    HAS_CLI_DEPDS = True
except ModuleNotFoundError:
    HAS_CLI_DEPDS = False


def main():
    if HAS_CLI_DEPDS:
        from .core import app

        app()
    else:
        raise SystemExit(
            """laspy cli needs extra dependencies, install using
`pip install laspy[cli]`
`pip install laspy[cli,lazrs]`
"""
        )


if __name__ == "__main__":
    main()