Giter Site home page Giter Site logo

convertlycli's Introduction

Convertly

A command line tool to execute simple file conversions, image/video manipulations and folder changes. Use with conv <query>. Note that your outputs are being used to constantly being fine-tune a model to make it work better over time.

Installation

pip install convertly

Configuration

you will be prompted to configure the tool using your own OpenAI key.

Usage

To use Convertly, you can run the command followed by your query. For example:

> conv convert file.webp to file.png
* dwebp file.webp -o file.png

View the history of your queries with:

conv --history

Or reset your history with:

conv --clear

Example Use Cases

> conv a video in /path/to/video.mp4 to a gif
* ffmpeg -i /path/to/video.mp4 /path/to/video.gif
> conv copy all of Documents/Screenshots to a folder called Screenshots2 in the same directory
* cp -a Documents/Screenshots Documents/test
> conv rotate image.png by 90 degrees
* brew install imagemagick
* convert image.png -rotate 90 rotated_file.png

Support

Convertly wont be perfect; if you run into any issues, please send me a message or create an issue.

convertlycli's People

Contributors

hudzah avatar

Stargazers

donald avatar Max Hager avatar Panos Triantafyllidis avatar Rishi Gurjar avatar  avatar Monta avatar Shariq Malik avatar Scott Hatcher avatar Shaan Bhambra avatar Claudio Canales avatar Andrew Schmitz avatar Parth Sareen avatar Adriana Ceric avatar yash karthik avatar  avatar Alex Boden avatar Brian Machado avatar

Watchers

 avatar

convertlycli's Issues

insufficient prerequisites for windows and linux

ModuleNotFoundError: No module named 'requests'.

PS W:\Leaf Link\Backend> conv convert Slogan.png from W:\Leaf Link to jpg
Querying: convert Slogan.png from W:\Leaf Link to jpg
Traceback (most recent call last):
File "C:\Users\Hamzah\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Hamzah\AppData\Local\Programs\Python\Python312\Lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Hamzah\AppData\Local\Programs\Python\Python312\Lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Hamzah\AppData\Local\Programs\Python\Python312\Lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\Hamzah\AppData\Local\Programs\Python\Python312\Scripts\conv.exe_main
.py", line 7, in
File "C:\Users\Hamzah\AppData\Local\Programs\Python\Python312\Lib\site-packages\file_converter\convertly.py", line 226, in main
system_command = command_parser.parse()
File "C:\Users\Hamzah\AppData\Local\Programs\Python\Python312\Lib\site-packages\file_converter\convertly.py", line 74, in parse
response, status_code = self.get_command(api_key, messages)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Hamzah\AppData\Local\Programs\Python\Python312\Lib\site-packages\file_converter\convertly.py", line 41, in get_command
data = requests.post(url, json=data).json()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Hamzah\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.