autorequests


Nameautorequests JSON
Version 2.1.0 PyPI version JSON
download
home_pagehttps://github.com/Hexiro/autorequests
SummaryGenerate Python code to recreate a request from your browser.
upload_time2022-12-24 20:22:15
maintainer
docs_urlNone
authorHexiro
requires_python>=3.7,<4.0
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <h1 align=center>AutoRequests</h1>
<p align=center>
  <span>Generate Python code to recreate a request from your browser.</span>
  <br>

  <a title="PyPI - Version" href="https://pypi.org/project/autorequests/" target="_blank">
    <img src="https://img.shields.io/pypi/v/autorequests?color=390099&style=for-the-badge"/>
  </a>

  <a title="PyPI - Python Version" href="https://www.python.org/downloads/" target="_blank">
     <img src="https://img.shields.io/pypi/pyversions/autorequests?color=B80068&style=for-the-badge&logo=python&logoColor=fff"/>
  </a>

  <a title="License - MIT" href="LICENSE" target="_blank">
    <img src="https://img.shields.io/github/license/Hexiro/autorequests?style=for-the-badge&color=390099&labelColor=474747">
  </a>

  <img alt="GitHub Workflow Status" src="https://img.shields.io/github/workflow/status/Hexiro/autorequests/tests?logo=github&style=for-the-badge&label=tests">
  <br>
</p>

### 📺 Demo

<img alt="Demo" src="https://user-images.githubusercontent.com/42787085/191134993-85750fc2-b13e-4e70-939b-2dcc2f1785b2.gif"/>

### 💼 Example Use Cases

- Creating a foundation for an API wrapper
- Recreating a request outside the browser
- Testing what cookies or headers are required for a server to understand your request

### ✂️ How to Copy

1. Inspect Element
2. Go to `Network` tab
3. Find web request
4. Right-Click
5. Copy
6. Choose one of the following:
   1. Powershell
   2. Node.js fetch

## 📦 Installation

install the package with pip

```
$ pip install autorequests
```

or download the latest development build from GitHub

```
$ pip install -U git+https://github.com/Hexiro/autorequests
```

## 🖥️ Command Line

```console
$ autorequests --help
```

Meta Options

```console
  --file  -f            Optional file to read input from.
  --copy  -c            Copy the output to the clipboard
```

Generation options

```console
  -sync/--async  -s/-a  Generate synchronous or asynchronous code.
  --httpx        -h     Use httpx library to make requests.
  --no-headers   -nh    Don't include headers in the generated output.
  --no-cookies   -nc    Don't include cookies in the generated output.
```

## 🐞 Contributing

see [CONTRIBUTING.md](./CONTRIBUTING.md)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Hexiro/autorequests",
    "name": "autorequests",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7,<4.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "Hexiro",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/0e/9e/6f59fc27b58422bfd642ded3e4ba4f79de89ba77584ebd040e48e556b658/autorequests-2.1.0.tar.gz",
    "platform": null,
    "description": "<h1 align=center>AutoRequests</h1>\n<p align=center>\n  <span>Generate Python code to recreate a request from your browser.</span>\n  <br>\n\n  <a title=\"PyPI - Version\" href=\"https://pypi.org/project/autorequests/\" target=\"_blank\">\n    <img src=\"https://img.shields.io/pypi/v/autorequests?color=390099&style=for-the-badge\"/>\n  </a>\n\n  <a title=\"PyPI - Python Version\" href=\"https://www.python.org/downloads/\" target=\"_blank\">\n     <img src=\"https://img.shields.io/pypi/pyversions/autorequests?color=B80068&style=for-the-badge&logo=python&logoColor=fff\"/>\n  </a>\n\n  <a title=\"License - MIT\" href=\"LICENSE\" target=\"_blank\">\n    <img src=\"https://img.shields.io/github/license/Hexiro/autorequests?style=for-the-badge&color=390099&labelColor=474747\">\n  </a>\n\n  <img alt=\"GitHub Workflow Status\" src=\"https://img.shields.io/github/workflow/status/Hexiro/autorequests/tests?logo=github&style=for-the-badge&label=tests\">\n  <br>\n</p>\n\n### \ud83d\udcfa Demo\n\n<img alt=\"Demo\" src=\"https://user-images.githubusercontent.com/42787085/191134993-85750fc2-b13e-4e70-939b-2dcc2f1785b2.gif\"/>\n\n### \ud83d\udcbc Example Use Cases\n\n- Creating a foundation for an API wrapper\n- Recreating a request outside the browser\n- Testing what cookies or headers are required for a server to understand your request\n\n### \u2702\ufe0f How to Copy\n\n1. Inspect Element\n2. Go to `Network` tab\n3. Find web request\n4. Right-Click\n5. Copy\n6. Choose one of the following:\n   1. Powershell\n   2. Node.js fetch\n\n## \ud83d\udce6 Installation\n\ninstall the package with pip\n\n```\n$ pip install autorequests\n```\n\nor download the latest development build from GitHub\n\n```\n$ pip install -U git+https://github.com/Hexiro/autorequests\n```\n\n## \ud83d\udda5\ufe0f Command Line\n\n```console\n$ autorequests --help\n```\n\nMeta Options\n\n```console\n  --file  -f            Optional file to read input from.\n  --copy  -c            Copy the output to the clipboard\n```\n\nGeneration options\n\n```console\n  -sync/--async  -s/-a  Generate synchronous or asynchronous code.\n  --httpx        -h     Use httpx library to make requests.\n  --no-headers   -nh    Don't include headers in the generated output.\n  --no-cookies   -nc    Don't include cookies in the generated output.\n```\n\n## \ud83d\udc1e Contributing\n\nsee [CONTRIBUTING.md](./CONTRIBUTING.md)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Generate Python code to recreate a request from your browser.",
    "version": "2.1.0",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "2738c314f2894138f65596330eb3e015",
                "sha256": "a4db8d474c085c78aff9e1b2e8c747078fa284077e4aa6172172cae2e1e9e241"
            },
            "downloads": -1,
            "filename": "autorequests-2.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2738c314f2894138f65596330eb3e015",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7,<4.0",
            "size": 12391,
            "upload_time": "2022-12-24T20:22:14",
            "upload_time_iso_8601": "2022-12-24T20:22:14.553907Z",
            "url": "https://files.pythonhosted.org/packages/7b/4d/faec04b2d1148fb571feef1b21b715dadec301f6a9275a7893b3e49058c0/autorequests-2.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "94f7b36a48c30ba6d5ee1d2146b69e8e",
                "sha256": "0ee39f5fb6f3aa276a910405cb3709ad918b9318e5fd78f7320bf97424cab484"
            },
            "downloads": -1,
            "filename": "autorequests-2.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "94f7b36a48c30ba6d5ee1d2146b69e8e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7,<4.0",
            "size": 10076,
            "upload_time": "2022-12-24T20:22:15",
            "upload_time_iso_8601": "2022-12-24T20:22:15.883543Z",
            "url": "https://files.pythonhosted.org/packages/0e/9e/6f59fc27b58422bfd642ded3e4ba4f79de89ba77584ebd040e48e556b658/autorequests-2.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-24 20:22:15",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "Hexiro",
    "github_project": "autorequests",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "autorequests"
}
        
Elapsed time: 0.06278s