Source code

Revision control

Copy as Markdown

Other Tools

[metadata]
name = aiohttp
version = attr: aiohttp.__version__
project_urls =
description = Async http client/server framework (asyncio)
long_description = file: README.rst
long_description_content_type = text/x-rst
maintainer = aiohttp team <team@aiohttp.org>
maintainer_email = team@aiohttp.org
license = Apache-2.0
license_files = LICENSE.txt
classifiers =
Development Status :: 5 - Production/Stable
Framework :: AsyncIO
Intended Audience :: Developers
Operating System :: POSIX
Operating System :: MacOS :: MacOS X
Operating System :: Microsoft :: Windows
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: 3.13
Topic :: Internet :: WWW/HTTP
[options]
python_requires = >=3.9
packages =
aiohttp
aiohttp._websocket
zip_safe = False
include_package_data = True
install_requires =
aiohappyeyeballs >= 2.5.0
aiosignal >= 1.1.2
async-timeout >= 4.0, < 6.0 ; python_version < "3.11"
attrs >= 17.3.0
frozenlist >= 1.1.1
multidict >=4.5, < 7.0
propcache >= 0.2.0
yarl >= 1.17.0, < 2.0
[options.exclude_package_data]
* =
*.c
*.h
[options.extras_require]
speedups =
aiodns >= 3.3.0
Brotli; platform_python_implementation == 'CPython'
brotlicffi; platform_python_implementation != 'CPython'
[options.packages.find]
exclude =
examples
[options.package_data]
* =
*.so
[pep8]
max-line-length = 79
[easy_install]
zip_ok = false
[flake8]
extend-select =
B950,
NIC001,
NIC101,
ignore = N801,N802,N803,NIC002,NIC102,E203,E226,E305,W504,E252,E301,E302,E501,E704,W503,W504,D1,D4
max-line-length = 88
per-file-ignores =
examples/*:I900
docs/code/*:F841
known-modules = proxy.py:[proxy]
requirements-file = requirements/test.in
requirements-max-depth = 4
[isort]
line_length = 88
include_trailing_comma = True
multi_line_output = 3
force_grid_wrap = 0
combine_as_imports = True
known_third_party = jinja2,pytest,multidict,yarl,gunicorn,freezegun,async_generator
known_first_party = aiohttp,aiohttp_jinja2,aiopg
[report]
exclude_lines =
@abc.abstractmethod
@abstractmethod
[tool:pytest]
addopts =
--numprocesses=auto
--durations=10
-v
-ra
--showlocals
-p pytest_cov
--cov=aiohttp
--cov=tests/
-m "not dev_mode"
filterwarnings =
error
ignore:module 'ssl' has no attribute 'OP_NO_COMPRESSION'. The Python interpreter is compiled against OpenSSL < 1.0.0. Ref. https.//docs.python.org/3/library/ssl.html#ssl.OP_NO_COMPRESSION:UserWarning
ignore:Unclosed client session <aiohttp.client.ClientSession object at 0x:ResourceWarning
ignore:The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.:DeprecationWarning:asyncio
ignore:Creating a LegacyVersion has been deprecated and will be removed in the next major release:DeprecationWarning::
ignore:module 'sre_constants' is deprecated:DeprecationWarning:pkg_resources._vendor.pyparsing
ignore:pkg_resources is deprecated as an API:DeprecationWarning
ignore:path is deprecated. Use files.. instead. Refer to https.//importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy for migration advice.:DeprecationWarning:certifi.core
ignore:datetime.*utcfromtimestamp\(\) is deprecated and scheduled for removal:DeprecationWarning:dateutil.tz.tz
ignore:datetime.*utcnow\(\) is deprecated and scheduled for removal:DeprecationWarning:freezegun.api
junit_suite_name = aiohttp_test_suite
norecursedirs = dist docs build .tox .eggs
minversion = 3.8.2
testpaths = tests/
xfail_strict = true
markers =
dev_mode: mark test to run in dev mode.
internal: tests which may cause issues for packagers, but should be run in aiohttp's CI.
skip_blockbuster: mark test to skip the blockbuster fixture.
[egg_info]
tag_build =
tag_date = 0