Skip to content

An unofficial Midjourney client Library for python

License

Notifications You must be signed in to change notification settings

ASafarzadeh/mjpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stargazers PyPI - Python Version PyPI - Status PyPI - Version PyPI - Downloads

                                                                                              
         _   ___       
  /\/\  (_) / _ \_   _ 
 /    \ | |/ /_)/ | | |
/ /\/\ \| / ___/| |_| |
\/    \// \/     \__, |
      |__/       |___/ 

MjPy(Temporarily stopped)

An unofficial Midjourney client

Quick start

pip install mjpy
mjpy "cute cats playing football" -ch YOUR_CHANNEL_ID -g YOUR_GUILD_ID -t YOUR_TOKEN

Installation

MjPy can be easily installed by pip using:

pip install mjpy

The pip way is recommended because it adds the script to the path automatically in mac and linux, and installs the needed dependencies automatically.
or you can use it using git clone command:

git clone https://github.com/ASafarzadeh/mjpy

The pip way does all the installations for you, but in the git clone way you should install the dependencies if they arent already installed. Mjpy depends on requests python module.

You can install that with the command below:

python -m pip install requests


Now you can navigate to Mjpy directory, and use it as the example below:

python mjpy.py "cute cats playing football" -ch YOUR_CHANNEL_ID -g YOUR_GUILD_ID -t YOUR_TOKEN

Usage

Short Form Long Form Description
prompt The prompt to be used if the command is imagine
-g --guild-id Your GUILD_ID
-c --channel-id Your CHANNEL_ID
-t --token Your Authorization_Token
-v --verbose Enable Verbosity and display the process in realtime(Default: False)
-o --output-dir Where to save the Generated images(Default: current dir(.))
-h --help show the help message and exit

Contributing

Any contributions you make are greatly appreciated!

If you have a suggestion that would make MjPy better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

MjPy is Distributed under the GNU GPL license. take a look at the LICENSE for more information.