opper / jump Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
add types wherever possible and reformat code to fit those types.
right now the install.sh script clones the repo, creates a virtualenv and installs requirements but i feel like there must be a better way of doing this. especially since for the jumpgate to work, there needs to be a .env file with some values populated in it.
readme was written before the new install procedure was in place and so it needs updating.
i feel like the code for that function (in jump/menu.py) could be refactored. gotta take a look at it.
in order to make it easier to publish the package to pypi, i think adding a cli argument to the script where a path to an .env file can be specified would help.
what i mean by this:
.jump
for an .env
fileadd some documentation both in the python file and in the readme. add some installation instructions, screenshots, stuff like that
there's an exception when running the jumpgate:
Traceback (most recent call last):
File "~/jump/venv/bin/jump", line 11, in <module>
load_entry_point('jump', 'console_scripts', 'jump')()
File "~/jump/jump/menu.py", line 103, in main
Jump()
File "~/jump/jump/menu.py", line 22, in __init__
self.run()
File "~/jump/jump/menu.py", line 68, in run
code, app = self.create_menu('Choose an application', self.formatted_menu_items, 'Exit')
File "~/jump/jump/menu.py", line 45, in create_menu
cancel_label=cancel_label,
File "~/jump/venv/lib/python3.7/site-packages/dialog.py", line 2911, in menu
cmd, kwargs, strip_xdialog_newline=True)
File "~/jump/venv/lib/python3.7/site-packages/dialog.py", line 1703, in _widget_with_string_output
code, output = self._perform(args, **kwargs)
File "~/jump/venv/lib/python3.7/site-packages/dialog.py", line 1504, in _perform
args_file)
File "~/jump/venv/lib/python3.7/site-packages/dialog.py", line 1469, in _handle_program_exit
child_output_rfd)
File "~/jump/venv/lib/python3.7/site-packages/dialog.py", line 1421, in _wait_for_program_termination
child_output.strip()))
dialog.DialogError: dialog-like terminated due to an error: the dialog-like program exited with status 3 (which was passed to it as the DIALOG_ERROR environment variable). Sometimes, the reason is simply that dialog was given a height or width parameter that is too big for the terminal in use. Its output, with leading and trailing whitespace stripped, was:
Error: Expected at least 5 tokens for --menu, have 4.
Use --help to list options.
could be because of the new python version? or it was somehow introduced after #7.
write some sort of script that can automagically install the jumpgate somewhere. maybe uploading it to pypi for easy installation using pip?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.