add command line entrypoint

This commit is contained in:
Tom 2025-02-12 18:48:45 +00:00
parent 516a4abb85
commit 1ab51646b9
2 changed files with 4 additions and 0 deletions

View File

@ -20,6 +20,9 @@ dependencies = [
"frozendict",
]
[project.scripts]
qubed = "qubed.__main__:main"
[tool.maturin]
python-source = "src/python"
module-name = "qubed.rust"

View File

@ -29,6 +29,7 @@ def main():
# Read from standard input
l = 0
for line in sys.stdin.readlines():
l += 1
# Process data (For now, just echoing the input)