Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Python package #1

Closed
0xdabbad00 opened this issue Feb 16, 2018 · 2 comments
Closed

Create Python package #1

0xdabbad00 opened this issue Feb 16, 2018 · 2 comments
Labels
enhancement New feature or request

Comments

@0xdabbad00
Copy link
Collaborator

0xdabbad00 commented Feb 16, 2018

The end result would be the ability to run:

pip install cloudmapper
cloudmapper configure
cloudmapper gather
cloudmapper prepare
cloudmapper serve

The most difficult issue I see with creating a setup.py file is how I handle the web directory. Right now, when you run prepare it is hardcoded to write web/data.json then the web server code is hard-coded to read this data.json file.

I also need to:

  • Convert the collect_data.sh script into something runnable from python.
  • Add a configure command so you don't have to edit the config.json file.
  • Allow for default settings, such as setting an account to be the default account.

For the webserver files, see https://stackoverflow.com/questions/6028000/how-to-read-a-static-file-from-inside-a-python-package/20885799#20885799

@0xdabbad00 0xdabbad00 added the enhancement New feature or request label Feb 16, 2018
@0xdabbad00
Copy link
Collaborator Author

@0xdabbad00
Copy link
Collaborator Author

Due to the difficulties in getting cloudmapper to install as a result of it's dependencies on things like jq, I'm going to give up on this idea in favor of dockerizing it (#287)

0xdabbad00 pushed a commit that referenced this issue Apr 13, 2019
0xdabbad00 pushed a commit that referenced this issue Jul 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant