corehttp


Namecorehttp JSON
Version 1.0.0b4 PyPI version JSON
download
home_pagehttps://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/corehttp
SummaryCoreHTTP Library for Python
upload_time2024-02-24 00:54:31
maintainerNone
docs_urlNone
authorMicrosoft Corporation
requires_python>=3.8
licenseMIT License
keywords typespec core
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            
# Core HTTP shared client library for Python

`corehttp` provides shared exceptions and modules for Python SDK client libraries.

## Getting started

Typically, you will not need to install `corehttp`, as it will be installed when you install one of the client libraries using it.

### Transports

To use `corehttp`, you will need to choose a transport implementation. `corehttp` provides the following transports:

Synchronous transports:
- `RequestsTransport` - A synchronous transport based on the [Requests](https://requests.readthedocs.io/en/master/) library.
- `HttpXTransport` - An synchronous transport based on the [HTTPX](https://www.python-httpx.org/) library.

Asynchronous transports:
- `AioHttpTransport` - An asynchronous transport based on the [aiohttp](https://docs.aiohttp.org/en/stable/) library.
- `AsyncHttpXTransport` -  An asynchronous transport based on the [HTTPX](https://www.python-httpx.org/) library.

Each transport has its own dependencies, which you can install using the `corehttp` extras:

```bash
# Install individually.
pip install corehttp[requests]
pip install corehttp[aiohttp]
pip install corehttp[httpx]

# Install multiple.
pip install corehttp[requests,httpx]
```

If no transports are specified, `corehttp` will default to using `RequestsTransport` for synchronous pipeline requests and `AioHttpTransport` for asynchronous pipeline requests.

## Contributing

This project welcomes contributions and suggestions. Most contributions require
you to agree to a Contributor License Agreement (CLA) declaring that you have
the right to, and actually do, grant us the rights to use your contribution.
For details, visit [https://cla.microsoft.com](https://cla.microsoft.com).

When you submit a pull request, a CLA-bot will automatically determine whether
you need to provide a CLA and decorate the PR appropriately (e.g., label,
comment). Simply follow the instructions provided by the bot. You will only
need to do this once across all repos using our CLA.

This project has adopted the
[Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information, see the
[Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any
additional questions or comments.




# Release History

## 1.0.0b4 (2024-02-23)

### Other Changes

- Relax type checking in `Pipeline` constructors to only check that each user-supplied policy object has either a `send` method or both an `on_request` and `on_response` method. This allows for more flexible policy implementations. [#34296](https://github.com/Azure/azure-sdk-for-python/pull/34296)

## 1.0.0b3 (2024-02-01)

### Features Added

- Support tuple input for `files` values to `corehttp.rest.HttpRequest` #34082
- Support simultaneous `files` and `data` field entry into `corehttp.rest.HttpRequest` #34082

## 1.0.0b2 (2023-11-14)

### Features Added

- Added the initial implementation of the HTTPX transport. [#32813](https://github.com/Azure/azure-sdk-for-python/pull/32813)

### Breaking Changes

- Removed `requests` as a default dependency of `corehttp`. This is now an "extras" dependency and can be installed via `corehttp[requests]`. [#32813](https://github.com/Azure/azure-sdk-for-python/pull/32813)
- Renamed the `aio` extra to `aiohttp`. [#32813](https://github.com/Azure/azure-sdk-for-python/pull/32813)

### Bugs Fixed

- Fixed an issue with `multipart/form-data` in the async transport where `data` was not getting encoded into the request body. [#32473](https://github.com/Azure/azure-sdk-for-python/pull/32473)
- Fixed an issue with `connection_verify`, `connection_cert`, and `connection_timeout` not being propagated to underlying transports.  [#33057](https://github.com/Azure/azure-sdk-for-python/pull/33057)
- Fixed an issue with the `aiohttp` transport not using SSL by default. [#33057](https://github.com/Azure/azure-sdk-for-python/pull/33057)

### Other Changes

- Added extras for `httpx`. [#32813](https://github.com/Azure/azure-sdk-for-python/pull/32813)

## 1.0.0b1 (2023-10-18)

* Initial Release

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/corehttp",
    "name": "corehttp",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "typespec,core",
    "author": "Microsoft Corporation",
    "author_email": "azpysdkhelp@microsoft.com",
    "download_url": "https://files.pythonhosted.org/packages/58/74/d457554b043f457ae0b731d93d66b2ade6d9020f4e8a4916ab3fa16dc2dd/corehttp-1.0.0b4.tar.gz",
    "platform": null,
    "description": "\n# Core HTTP shared client library for Python\n\n`corehttp` provides shared exceptions and modules for Python SDK client libraries.\n\n## Getting started\n\nTypically, you will not need to install `corehttp`, as it will be installed when you install one of the client libraries using it.\n\n### Transports\n\nTo use `corehttp`, you will need to choose a transport implementation. `corehttp` provides the following transports:\n\nSynchronous transports:\n- `RequestsTransport` - A synchronous transport based on the [Requests](https://requests.readthedocs.io/en/master/) library.\n- `HttpXTransport` - An synchronous transport based on the [HTTPX](https://www.python-httpx.org/) library.\n\nAsynchronous transports:\n- `AioHttpTransport` - An asynchronous transport based on the [aiohttp](https://docs.aiohttp.org/en/stable/) library.\n- `AsyncHttpXTransport` -  An asynchronous transport based on the [HTTPX](https://www.python-httpx.org/) library.\n\nEach transport has its own dependencies, which you can install using the `corehttp` extras:\n\n```bash\n# Install individually.\npip install corehttp[requests]\npip install corehttp[aiohttp]\npip install corehttp[httpx]\n\n# Install multiple.\npip install corehttp[requests,httpx]\n```\n\nIf no transports are specified, `corehttp` will default to using `RequestsTransport` for synchronous pipeline requests and `AioHttpTransport` for asynchronous pipeline requests.\n\n## Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require\nyou to agree to a Contributor License Agreement (CLA) declaring that you have\nthe right to, and actually do, grant us the rights to use your contribution.\nFor details, visit [https://cla.microsoft.com](https://cla.microsoft.com).\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether\nyou need to provide a CLA and decorate the PR appropriately (e.g., label,\ncomment). Simply follow the instructions provided by the bot. You will only\nneed to do this once across all repos using our CLA.\n\nThis project has adopted the\n[Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information, see the\n[Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)\nor contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any\nadditional questions or comments.\n\n\n\n\n# Release History\n\n## 1.0.0b4 (2024-02-23)\n\n### Other Changes\n\n- Relax type checking in `Pipeline` constructors to only check that each user-supplied policy object has either a `send` method or both an `on_request` and `on_response` method. This allows for more flexible policy implementations. [#34296](https://github.com/Azure/azure-sdk-for-python/pull/34296)\n\n## 1.0.0b3 (2024-02-01)\n\n### Features Added\n\n- Support tuple input for `files` values to `corehttp.rest.HttpRequest` #34082\n- Support simultaneous `files` and `data` field entry into `corehttp.rest.HttpRequest` #34082\n\n## 1.0.0b2 (2023-11-14)\n\n### Features Added\n\n- Added the initial implementation of the HTTPX transport. [#32813](https://github.com/Azure/azure-sdk-for-python/pull/32813)\n\n### Breaking Changes\n\n- Removed `requests` as a default dependency of `corehttp`. This is now an \"extras\" dependency and can be installed via `corehttp[requests]`. [#32813](https://github.com/Azure/azure-sdk-for-python/pull/32813)\n- Renamed the `aio` extra to `aiohttp`. [#32813](https://github.com/Azure/azure-sdk-for-python/pull/32813)\n\n### Bugs Fixed\n\n- Fixed an issue with `multipart/form-data` in the async transport where `data` was not getting encoded into the request body. [#32473](https://github.com/Azure/azure-sdk-for-python/pull/32473)\n- Fixed an issue with `connection_verify`, `connection_cert`, and `connection_timeout` not being propagated to underlying transports.  [#33057](https://github.com/Azure/azure-sdk-for-python/pull/33057)\n- Fixed an issue with the `aiohttp` transport not using SSL by default. [#33057](https://github.com/Azure/azure-sdk-for-python/pull/33057)\n\n### Other Changes\n\n- Added extras for `httpx`. [#32813](https://github.com/Azure/azure-sdk-for-python/pull/32813)\n\n## 1.0.0b1 (2023-10-18)\n\n* Initial Release\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "CoreHTTP Library for Python",
    "version": "1.0.0b4",
    "project_urls": {
        "Homepage": "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/corehttp"
    },
    "split_keywords": [
        "typespec",
        "core"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "3f268e753bc53271b1a886918a974bc62588bb5b08f352f9a5668374962c1183",
                "md5": "4cedda64e43712bd2e9bdab0ff4d312c",
                "sha256": "00dcdd91206922cd2811e0954bf3295bbd6b658675aa51bebd57f060b5a21ae6"
            },
            "downloads": -1,
            "filename": "corehttp-1.0.0b4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4cedda64e43712bd2e9bdab0ff4d312c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 104210,
            "upload_time": "2024-02-24T00:54:35",
            "upload_time_iso_8601": "2024-02-24T00:54:35.584661Z",
            "url": "https://files.pythonhosted.org/packages/3f/26/8e753bc53271b1a886918a974bc62588bb5b08f352f9a5668374962c1183/corehttp-1.0.0b4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "5874d457554b043f457ae0b731d93d66b2ade6d9020f4e8a4916ab3fa16dc2dd",
                "md5": "96de68f3615c5315460e5d9ba24c1d43",
                "sha256": "1e286dc1fc2dab2b8be4685f5fc9d7f5c3c7c01df8b2eac2faecec20d62e8cd7"
            },
            "downloads": -1,
            "filename": "corehttp-1.0.0b4.tar.gz",
            "has_sig": false,
            "md5_digest": "96de68f3615c5315460e5d9ba24c1d43",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 108877,
            "upload_time": "2024-02-24T00:54:31",
            "upload_time_iso_8601": "2024-02-24T00:54:31.938137Z",
            "url": "https://files.pythonhosted.org/packages/58/74/d457554b043f457ae0b731d93d66b2ade6d9020f4e8a4916ab3fa16dc2dd/corehttp-1.0.0b4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-24 00:54:31",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Azure",
    "github_project": "azure-sdk-for-python",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "lcname": "corehttp"
}
        
Elapsed time: 0.18843s