fetchio


Namefetchio JSON
Version 1.0.0 PyPI version JSON
download
home_pagehttps://github.com/tal7aouy/fetchio
SummaryA simple HTTP library in Python similar to JavaScript fetch.
upload_time2024-10-20 22:10:55
maintainerNone
docs_urlNone
authorMhammed Talhaouy
requires_python>=3.10
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # ๐Ÿ“ฆ Fetch HTTP Library

Welcome to the **Fetch HTTP Library**! This library provides a simple and efficient way to make HTTP requests in Python. It supports GET, POST, PUT, and DELETE methods, and handles responses gracefully.

## ๐Ÿš€ Features

- ๐ŸŒ **GET** requests
- ๐Ÿ“ค **POST** requests
- โœ๏ธ **PUT** requests
- โŒ **DELETE** requests
- ๐Ÿ“ฆ Singleton pattern to ensure a single instance
- ๐Ÿ› ๏ธ Easy to use and extend
- ๐Ÿ“ Logging for better traceability

## ๐Ÿ“š Installation

To install the required dependencies, run:

```sh
pip install fetchio
```

## ๐Ÿ› ๏ธ Usage

Here's a quick example of how to use the Fetch HTTP Library:

```python
from fetchio.http import Http

http = Http()

# GET request
response = http.get('http://example.com')
print(response)

# POST request
response = http.post('http://example.com', json={'data': 'value'})
print(response)

# PUT request
response = http.put('http://example.com', json={'data': 'value'})
print(response)

# DELETE request
response = http.delete('http://example.com')
print(response)
```

## ๐Ÿงช Running Tests

To run the tests, make sure you have `pytest` installed:

```sh
pip install -r  requirements.txt
```

Then, run the tests with:

```sh
pytest
```

## ๐Ÿ“„ License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

## ๐Ÿค Contributing

Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.

## ๐Ÿ“ž Contact

For any questions or inquiries, please contact us at [tal7aouy@gmail.com](mailto:tal7aouy@gmail.com).

---

Made with โค๏ธ by Mhammed Talhaouy

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/tal7aouy/fetchio",
    "name": "fetchio",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": null,
    "author": "Mhammed Talhaouy",
    "author_email": "tal7apuy@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/4e/d3/4662f76e3e9b0fa676c3b87b939029a45f08d9ad73ea49cb9abd347faada/fetchio-1.0.0.tar.gz",
    "platform": null,
    "description": "# \ud83d\udce6 Fetch HTTP Library\n\nWelcome to the **Fetch HTTP Library**! This library provides a simple and efficient way to make HTTP requests in Python. It supports GET, POST, PUT, and DELETE methods, and handles responses gracefully.\n\n## \ud83d\ude80 Features\n\n- \ud83c\udf10 **GET** requests\n- \ud83d\udce4 **POST** requests\n- \u270f\ufe0f **PUT** requests\n- \u274c **DELETE** requests\n- \ud83d\udce6 Singleton pattern to ensure a single instance\n- \ud83d\udee0\ufe0f Easy to use and extend\n- \ud83d\udcdd Logging for better traceability\n\n## \ud83d\udcda Installation\n\nTo install the required dependencies, run:\n\n```sh\npip install fetchio\n```\n\n## \ud83d\udee0\ufe0f Usage\n\nHere's a quick example of how to use the Fetch HTTP Library:\n\n```python\nfrom fetchio.http import Http\n\nhttp = Http()\n\n# GET request\nresponse = http.get('http://example.com')\nprint(response)\n\n# POST request\nresponse = http.post('http://example.com', json={'data': 'value'})\nprint(response)\n\n# PUT request\nresponse = http.put('http://example.com', json={'data': 'value'})\nprint(response)\n\n# DELETE request\nresponse = http.delete('http://example.com')\nprint(response)\n```\n\n## \ud83e\uddea Running Tests\n\nTo run the tests, make sure you have `pytest` installed:\n\n```sh\npip install -r  requirements.txt\n```\n\nThen, run the tests with:\n\n```sh\npytest\n```\n\n## \ud83d\udcc4 License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## \ud83e\udd1d Contributing\n\nContributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.\n\n## \ud83d\udcde Contact\n\nFor any questions or inquiries, please contact us at [tal7aouy@gmail.com](mailto:tal7aouy@gmail.com).\n\n---\n\nMade with \u2764\ufe0f by Mhammed Talhaouy\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A simple HTTP library in Python similar to JavaScript fetch.",
    "version": "1.0.0",
    "project_urls": {
        "Homepage": "https://github.com/tal7aouy/fetchio"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e6afb8cd1589bea4330af2715890a7b7771bb831184aea6a034e4ca59892f377",
                "md5": "a563e04910e84b0e7cbdfcd2eabd5aa8",
                "sha256": "d2707a7099c502035e86f520e454ae040411199983a8e941157e35e25950e03a"
            },
            "downloads": -1,
            "filename": "fetchio-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a563e04910e84b0e7cbdfcd2eabd5aa8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 4268,
            "upload_time": "2024-10-20T22:10:53",
            "upload_time_iso_8601": "2024-10-20T22:10:53.742071Z",
            "url": "https://files.pythonhosted.org/packages/e6/af/b8cd1589bea4330af2715890a7b7771bb831184aea6a034e4ca59892f377/fetchio-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4ed34662f76e3e9b0fa676c3b87b939029a45f08d9ad73ea49cb9abd347faada",
                "md5": "b1ad8d43215034ef92e3b4f4577ed43b",
                "sha256": "80f3f675f13f66aaf46d7a84d16e22924077145ef729c905bc20f683e2261e85"
            },
            "downloads": -1,
            "filename": "fetchio-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "b1ad8d43215034ef92e3b4f4577ed43b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 3806,
            "upload_time": "2024-10-20T22:10:55",
            "upload_time_iso_8601": "2024-10-20T22:10:55.788901Z",
            "url": "https://files.pythonhosted.org/packages/4e/d3/4662f76e3e9b0fa676c3b87b939029a45f08d9ad73ea49cb9abd347faada/fetchio-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-20 22:10:55",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "tal7aouy",
    "github_project": "fetchio",
    "github_not_found": true,
    "lcname": "fetchio"
}
        
Elapsed time: 0.45223s