pyjourney


Namepyjourney JSON
Version 0.1.7 PyPI version JSON
download
home_pagehttps://github.com/agentd00nut/pyjourney
SummaryPython module for interacting with the MidJourney API
upload_time2023-05-09 00:32:29
maintainer
docs_urlNone
authoragentd00nut
requires_python>=3.10,<4.0
licenseMIT
keywords journey midjourney api python
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # PyJourney

A python module for calling the Midjourney API to get job details and for creating jobs.

Currently just trying to fix [midjourney-graph](https://github.com/agentd00nut/midjourney-graph) and figured i'd break out the api calls into a module.

[pypi](https://pypi.org/project/pyjourney/)

## TODO

- [ ] more than 35 jobs at a time.
- [ ] jobs by date range, type, and for other users
- [ ] get sepcific job details for a job and a list of jobs
- [ ] get the list of community jobs by hot, new, trending, etc.
- [ ] Searching for jobs by title, description, and tags

## Installation

```bash
pip install pyjourney
```

## Setup

Create a .env file in the root of your project and add the following:

```bash
MIDJOURNEY_COOKIE=your_cookie
MIDJOURNEY_USERID=your_userId
```

The userID should be the newer GUID version of the userid, not the old integer version.
The cookie can be taken from the cookie header in your browser when you're logged in to Midjourney for any request against the API.

## Usage

```python
from pyjourney import MidjourneyAPI


api = MidjourneyAPI()        #Loads your cookie and userId from the .env file  (required for now.)
request = api.recent_jobs()  # Defaults to fetching the most recent 35 jobs you've done.
print(request.status_code)  # request.json() should work if this is 200 :)
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/agentd00nut/pyjourney",
    "name": "pyjourney",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10,<4.0",
    "maintainer_email": "",
    "keywords": "journey,midjourney,api,python",
    "author": "agentd00nut",
    "author_email": "agentd00nut@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/ec/ce/b529bf0bf7b36bd9a34578e25e301527a6250008ff389bc14130378bc371/pyjourney-0.1.7.tar.gz",
    "platform": null,
    "description": "# PyJourney\n\nA python module for calling the Midjourney API to get job details and for creating jobs.\n\nCurrently just trying to fix [midjourney-graph](https://github.com/agentd00nut/midjourney-graph) and figured i'd break out the api calls into a module.\n\n[pypi](https://pypi.org/project/pyjourney/)\n\n## TODO\n\n- [ ] more than 35 jobs at a time.\n- [ ] jobs by date range, type, and for other users\n- [ ] get sepcific job details for a job and a list of jobs\n- [ ] get the list of community jobs by hot, new, trending, etc.\n- [ ] Searching for jobs by title, description, and tags\n\n## Installation\n\n```bash\npip install pyjourney\n```\n\n## Setup\n\nCreate a .env file in the root of your project and add the following:\n\n```bash\nMIDJOURNEY_COOKIE=your_cookie\nMIDJOURNEY_USERID=your_userId\n```\n\nThe userID should be the newer GUID version of the userid, not the old integer version.\nThe cookie can be taken from the cookie header in your browser when you're logged in to Midjourney for any request against the API.\n\n## Usage\n\n```python\nfrom pyjourney import MidjourneyAPI\n\n\napi = MidjourneyAPI()        #Loads your cookie and userId from the .env file  (required for now.)\nrequest = api.recent_jobs()  # Defaults to fetching the most recent 35 jobs you've done.\nprint(request.status_code)  # request.json() should work if this is 200 :)\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Python module for interacting with the MidJourney API",
    "version": "0.1.7",
    "project_urls": {
        "Homepage": "https://github.com/agentd00nut/pyjourney",
        "Repository": "https://github.com/agentd00nut/pyjourney"
    },
    "split_keywords": [
        "journey",
        "midjourney",
        "api",
        "python"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cbb47325afd2edfc8a64db1e86f291e055544a8aaae231ac959cedebdb29a6f7",
                "md5": "5549b065c247a6cf6db1fb331a02e798",
                "sha256": "8b044411e8a34d63473bb0448962f113b5c17c504a0bfccd6ac778418d66aa2f"
            },
            "downloads": -1,
            "filename": "pyjourney-0.1.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5549b065c247a6cf6db1fb331a02e798",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10,<4.0",
            "size": 4954,
            "upload_time": "2023-05-09T00:32:27",
            "upload_time_iso_8601": "2023-05-09T00:32:27.858855Z",
            "url": "https://files.pythonhosted.org/packages/cb/b4/7325afd2edfc8a64db1e86f291e055544a8aaae231ac959cedebdb29a6f7/pyjourney-0.1.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ecceb529bf0bf7b36bd9a34578e25e301527a6250008ff389bc14130378bc371",
                "md5": "5dd1d42a69940d5d98f6eff480b777ba",
                "sha256": "c6b88afbdfdea73c83b2e9ee6eec9341583b277d8a920a177f341749249b55f6"
            },
            "downloads": -1,
            "filename": "pyjourney-0.1.7.tar.gz",
            "has_sig": false,
            "md5_digest": "5dd1d42a69940d5d98f6eff480b777ba",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10,<4.0",
            "size": 4025,
            "upload_time": "2023-05-09T00:32:29",
            "upload_time_iso_8601": "2023-05-09T00:32:29.699851Z",
            "url": "https://files.pythonhosted.org/packages/ec/ce/b529bf0bf7b36bd9a34578e25e301527a6250008ff389bc14130378bc371/pyjourney-0.1.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-09 00:32:29",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "agentd00nut",
    "github_project": "pyjourney",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "pyjourney"
}
        
Elapsed time: 0.06319s