Skip to main content

Genie for Alfred

Project description

Genie for Alfred

GitHub license Twitter Follow

image0

Using from Alfred

Install Alfred Genie.alfredworkflow in Alfred and use the genie command to use any available function.

image1

Using from Command line

$ pip install alfred-genie

Then the following commands will be available

$ alfred-genie
Usage: alfred-genie [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  base64-decode
  base64-encode
  commands # ignore this as this is only used from Alfred
  format-json
  minify-json

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

You’ll need a working version of Python3 to run these scripts.

  1. Create and use new virtual env

python3 -m venv venv
source venv/bin/activate
  1. Install required dependencies

$ pip install -r requirements.txt
  1. Run locally

$ python local_main.py ...

Creating Alfred Workflow

For publishing it in workflow, we need to perform following additional steps

  • [ ] Open workflow file in Alfred

  • [ ] Open workflow directory in Terminal

  • [ ] Apply any changes from this directory to workflow directory

  • [ ] Install dependencies in workflow directory pip install --target=. click

  • [ ] Export workflow and publish to Github

Publishing Updates to PyPi

$ make package

Enter the username and password for pypi.org repo when prompted

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

alfred-genie-0.1.20211114.tar.gz (4.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page