How to install globally?
toloco opened this issue · 6 comments
As a user, I would like to run the command globally without using the full path.
E.g.
cloudgrep --bucket test-s3-access-logs --query 9RXXKPREHHTFQD77
Why:
Well this tool can be used by users to integrate with bigger scripts.
If you need help with that I could help.
Hi @toloco sure please feel free to send over a PR.
If you're on Linux/OSX I'd just use an alias for now, i.e.
alias cloudgrep="python3 /home/cloudgrep.py"
Note you can now also run as a compiled binary which may make this easier
https://github.com/cado-security/cloudgrep/releases/tag/Latest
I.e. You may be able to just place the binary (or link to it) in /usr/bin etc.
@chrisdoman thanks for answering!,
I suggest using something like entry points/console scripts from setup.py.
https://packaging.python.org/en/latest/specifications/entry-points/
That way you get a well-rounded application, that can be set up using standard tools like Pypi and gives you the alias in one go.
See how pytest guys are going it here: https://github.com/pytest-dev/pytest/blob/main/setup.cfg#L63.
I've merged in your PR now along with the test fixes. Thank-you!
sure!
Happy its better