Initial commit
This commit is contained in:
commit
2e50037bb0
|
|
@ -0,0 +1,3 @@
|
||||||
|
4.1.0
|
||||||
|
last_version: 4.0.0
|
||||||
|
source_branch: feature/SIENTIAPDE-1379
|
||||||
|
|
@ -0,0 +1,134 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Applies current directory content as a patch to an existing git repository
|
||||||
|
#
|
||||||
|
# Usage: ./git-apply-patch.sh <config-file>
|
||||||
|
#
|
||||||
|
# Config file format:
|
||||||
|
# GIT_URL=https://github.com/user/repo.git
|
||||||
|
# GIT_USER=username
|
||||||
|
# GIT_TOKEN=your_token_or_password
|
||||||
|
#
|
||||||
|
# VERSION file format:
|
||||||
|
# <new_version>
|
||||||
|
# last_version: <previous_version>
|
||||||
|
# source_branch: <branch_name> (optional)
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [ -z "$1" ]; then
|
||||||
|
echo "Usage: $0 <config-file>"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
CONFIG_FILE="$1"
|
||||||
|
|
||||||
|
if [ ! -f "$CONFIG_FILE" ]; then
|
||||||
|
echo "Error: Config file '$CONFIG_FILE' not found"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Load config file
|
||||||
|
source "$CONFIG_FILE"
|
||||||
|
|
||||||
|
# Validate required fields
|
||||||
|
if [ -z "$GIT_URL" ]; then
|
||||||
|
echo "Error: GIT_URL not defined in config file"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "$GIT_USER" ]; then
|
||||||
|
echo "Error: GIT_USER not defined in config file"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "$GIT_TOKEN" ]; then
|
||||||
|
echo "Error: GIT_TOKEN not defined in config file"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Read VERSION file
|
||||||
|
if [ ! -f "VERSION" ]; then
|
||||||
|
echo "Error: VERSION file not found in current directory"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
NEW_VERSION=$(sed -n '1p' VERSION)
|
||||||
|
LAST_VERSION=$(sed -n '2p' VERSION | sed 's/last_version: //')
|
||||||
|
SOURCE_BRANCH=$(sed -n '3p' VERSION | sed 's/source_branch: //')
|
||||||
|
|
||||||
|
if [ -z "$NEW_VERSION" ]; then
|
||||||
|
echo "Error: New version not found in VERSION file (line 1)"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "$LAST_VERSION" ]; then
|
||||||
|
echo "Error: last_version not found in VERSION file (line 2)"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "New version: $NEW_VERSION"
|
||||||
|
echo "Last version: $LAST_VERSION"
|
||||||
|
echo "Source branch: ${SOURCE_BRANCH:-N/A}"
|
||||||
|
|
||||||
|
# Build authenticated URL
|
||||||
|
if [[ "$GIT_URL" == https://* ]]; then
|
||||||
|
URL_WITHOUT_PROTOCOL="${GIT_URL#https://}"
|
||||||
|
AUTH_URL="https://${GIT_USER}:${GIT_TOKEN}@${URL_WITHOUT_PROTOCOL}"
|
||||||
|
elif [[ "$GIT_URL" == http://* ]]; then
|
||||||
|
URL_WITHOUT_PROTOCOL="${GIT_URL#http://}"
|
||||||
|
AUTH_URL="http://${GIT_USER}:${GIT_TOKEN}@${URL_WITHOUT_PROTOCOL}"
|
||||||
|
else
|
||||||
|
echo "Error: URL must start with http:// or https://"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Create temp directory for cloning
|
||||||
|
TEMP_DIR=$(mktemp -d)
|
||||||
|
CURRENT_DIR=$(pwd)
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "Cloning repository from branch '$LAST_VERSION'..."
|
||||||
|
git clone --branch "$LAST_VERSION" --single-branch "$AUTH_URL" "$TEMP_DIR" 2>/dev/null || {
|
||||||
|
echo "Branch '$LAST_VERSION' not found, trying to clone default branch..."
|
||||||
|
git clone "$AUTH_URL" "$TEMP_DIR"
|
||||||
|
cd "$TEMP_DIR"
|
||||||
|
git checkout -b "$LAST_VERSION" 2>/dev/null || git checkout "$LAST_VERSION"
|
||||||
|
cd "$CURRENT_DIR"
|
||||||
|
}
|
||||||
|
|
||||||
|
echo "Copying current files to cloned repository..."
|
||||||
|
# Copy all files except .git, temp dir, and config file
|
||||||
|
rsync -av \
|
||||||
|
--exclude='.git' \
|
||||||
|
--exclude='test' \
|
||||||
|
--exclude="$(basename "$TEMP_DIR")" \
|
||||||
|
--exclude="$CONFIG_FILE" \
|
||||||
|
"$CURRENT_DIR/" "$TEMP_DIR/"
|
||||||
|
|
||||||
|
cd "$TEMP_DIR"
|
||||||
|
|
||||||
|
echo "Creating new branch '$NEW_VERSION'..."
|
||||||
|
git checkout -b "$NEW_VERSION" 2>/dev/null || git checkout "$NEW_VERSION"
|
||||||
|
|
||||||
|
echo "Adding changes..."
|
||||||
|
git add -A
|
||||||
|
|
||||||
|
echo "Committing changes..."
|
||||||
|
COMMIT_MSG="Release $NEW_VERSION"
|
||||||
|
if [ -n "$SOURCE_BRANCH" ]; then
|
||||||
|
COMMIT_MSG="$COMMIT_MSG (from $SOURCE_BRANCH)"
|
||||||
|
fi
|
||||||
|
git commit -m "$COMMIT_MSG" || echo "Nothing to commit"
|
||||||
|
|
||||||
|
echo "Pushing to remote..."
|
||||||
|
git push -u origin "$NEW_VERSION"
|
||||||
|
|
||||||
|
# Cleanup
|
||||||
|
cd "$CURRENT_DIR"
|
||||||
|
rm -rf "$TEMP_DIR"
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "Done! Patch applied and pushed to branch '$NEW_VERSION'"
|
||||||
|
echo "Based on previous version: '$LAST_VERSION'"
|
||||||
|
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
# Git repository configuration
|
||||||
|
# Copy this file and fill with your credentials
|
||||||
|
# NEVER commit this file with real credentials!
|
||||||
|
|
||||||
|
GIT_URL=http://localhost:35703/aignosi/library-distribution-mirror.git
|
||||||
|
GIT_USER=aignosi
|
||||||
|
GIT_TOKEN=r8sA8CPHD9!bt6d
|
||||||
|
|
||||||
|
|
@ -0,0 +1,102 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Initializes a git repository and pushes to a remote using credentials from a config file
|
||||||
|
#
|
||||||
|
# Usage: ./git-init-from-config.sh <config-file>
|
||||||
|
#
|
||||||
|
# Config file format (one value per line):
|
||||||
|
# GIT_URL=https://github.com/user/repo.git
|
||||||
|
# GIT_USER=username
|
||||||
|
# GIT_TOKEN=your_token_or_password
|
||||||
|
#
|
||||||
|
# The branch name will be read from the VERSION file (first line)
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [ -z "$1" ]; then
|
||||||
|
echo "Usage: $0 <config-file>"
|
||||||
|
echo ""
|
||||||
|
echo "Config file format:"
|
||||||
|
echo " GIT_URL=https://github.com/user/repo.git"
|
||||||
|
echo " GIT_USER=username"
|
||||||
|
echo " GIT_TOKEN=your_token_or_password"
|
||||||
|
echo " GIT_BRANCH=main (optional)"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
CONFIG_FILE="$1"
|
||||||
|
|
||||||
|
if [ ! -f "$CONFIG_FILE" ]; then
|
||||||
|
echo "Error: Config file '$CONFIG_FILE' not found"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Load config file
|
||||||
|
source "$CONFIG_FILE"
|
||||||
|
|
||||||
|
# Validate required fields
|
||||||
|
if [ -z "$GIT_URL" ]; then
|
||||||
|
echo "Error: GIT_URL not defined in config file"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "$GIT_USER" ]; then
|
||||||
|
echo "Error: GIT_USER not defined in config file"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "$GIT_TOKEN" ]; then
|
||||||
|
echo "Error: GIT_TOKEN not defined in config file"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Read version from VERSION file (first line)
|
||||||
|
if [ ! -f "VERSION" ]; then
|
||||||
|
echo "Error: VERSION file not found in current directory"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
GIT_BRANCH=$(head -n 1 VERSION)
|
||||||
|
|
||||||
|
if [ -z "$GIT_BRANCH" ]; then
|
||||||
|
echo "Error: VERSION file is empty"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Version detected: $GIT_BRANCH"
|
||||||
|
|
||||||
|
# Build authenticated URL
|
||||||
|
# Extract protocol and rest of URL
|
||||||
|
if [[ "$GIT_URL" == https://* ]]; then
|
||||||
|
URL_WITHOUT_PROTOCOL="${GIT_URL#https://}"
|
||||||
|
AUTH_URL="https://${GIT_USER}:${GIT_TOKEN}@${URL_WITHOUT_PROTOCOL}"
|
||||||
|
elif [[ "$GIT_URL" == http://* ]]; then
|
||||||
|
URL_WITHOUT_PROTOCOL="${GIT_URL#http://}"
|
||||||
|
AUTH_URL="http://${GIT_USER}:${GIT_TOKEN}@${URL_WITHOUT_PROTOCOL}"
|
||||||
|
else
|
||||||
|
echo "Error: URL must start with http:// or https://"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Initializing git repository..."
|
||||||
|
git init
|
||||||
|
|
||||||
|
echo "Adding all files..."
|
||||||
|
git add .
|
||||||
|
|
||||||
|
echo "Creating initial commit..."
|
||||||
|
git commit -m "Initial commit" || echo "Nothing to commit or already committed"
|
||||||
|
|
||||||
|
echo "Setting branch to $GIT_BRANCH..."
|
||||||
|
git branch -M "$GIT_BRANCH"
|
||||||
|
|
||||||
|
echo "Adding remote origin..."
|
||||||
|
git remote remove origin 2>/dev/null || true
|
||||||
|
git remote add origin "$AUTH_URL"
|
||||||
|
|
||||||
|
echo "Pushing to remote..."
|
||||||
|
git push -u origin "$GIT_BRANCH"
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "Done! Repository pushed to $GIT_URL on branch $GIT_BRANCH"
|
||||||
|
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,845 @@
|
||||||
|
Metadata-Version: 2.4
|
||||||
|
Name: aiobotocore
|
||||||
|
Version: 2.25.2
|
||||||
|
Summary: Async client for aws services using botocore and aiohttp
|
||||||
|
Author-email: Nikolay Novik <nickolainovik@gmail.com>
|
||||||
|
License-Expression: Apache-2.0
|
||||||
|
Project-URL: Repository, https://github.com/aio-libs/aiobotocore
|
||||||
|
Project-URL: Documentation, https://aiobotocore.aio-libs.org
|
||||||
|
Classifier: Development Status :: 4 - Beta
|
||||||
|
Classifier: Intended Audience :: Developers
|
||||||
|
Classifier: Intended Audience :: System Administrators
|
||||||
|
Classifier: Natural Language :: English
|
||||||
|
Classifier: Programming Language :: Python :: 3
|
||||||
|
Classifier: Programming Language :: Python :: 3.9
|
||||||
|
Classifier: Programming Language :: Python :: 3.10
|
||||||
|
Classifier: Programming Language :: Python :: 3.11
|
||||||
|
Classifier: Programming Language :: Python :: 3.12
|
||||||
|
Classifier: Programming Language :: Python :: 3.13
|
||||||
|
Classifier: Programming Language :: Python :: 3.14
|
||||||
|
Classifier: Environment :: Web Environment
|
||||||
|
Classifier: Framework :: AsyncIO
|
||||||
|
Requires-Python: >=3.9
|
||||||
|
Description-Content-Type: text/x-rst
|
||||||
|
License-File: LICENSE
|
||||||
|
Requires-Dist: aiohttp<4.0.0,>=3.9.2
|
||||||
|
Requires-Dist: aioitertools<1.0.0,>=0.5.1
|
||||||
|
Requires-Dist: botocore<1.40.71,>=1.40.46
|
||||||
|
Requires-Dist: python-dateutil<3.0.0,>=2.1
|
||||||
|
Requires-Dist: jmespath<2.0.0,>=0.7.1
|
||||||
|
Requires-Dist: multidict<7.0.0,>=6.0.0
|
||||||
|
Requires-Dist: wrapt<2.0.0,>=1.10.10
|
||||||
|
Provides-Extra: awscli
|
||||||
|
Requires-Dist: awscli<1.42.71,>=1.42.46; extra == "awscli"
|
||||||
|
Provides-Extra: boto3
|
||||||
|
Requires-Dist: boto3<1.40.71,>=1.40.46; extra == "boto3"
|
||||||
|
Provides-Extra: httpx
|
||||||
|
Requires-Dist: httpx<0.29,>=0.25.1; extra == "httpx"
|
||||||
|
Dynamic: license-file
|
||||||
|
|
||||||
|
aiobotocore
|
||||||
|
===========
|
||||||
|
.. |ci badge| image:: https://github.com/aio-libs/aiobotocore/actions/workflows/ci-cd.yml/badge.svg?branch=master
|
||||||
|
:target: https://github.com/aio-libs/aiobotocore/actions/workflows/ci-cd.yml
|
||||||
|
:alt: CI status of master branch
|
||||||
|
.. |pre-commit badge| image:: https://results.pre-commit.ci/badge/github/aio-libs/aiobotocore/master.svg
|
||||||
|
:target: https://results.pre-commit.ci/latest/github/aio-libs/aiobotocore/master
|
||||||
|
:alt: pre-commit.ci status
|
||||||
|
.. |coverage badge| image:: https://codecov.io/gh/aio-libs/aiobotocore/branch/master/graph/badge.svg
|
||||||
|
:target: https://codecov.io/gh/aio-libs/aiobotocore
|
||||||
|
:alt: Coverage status on master branch
|
||||||
|
.. |docs badge| image:: https://readthedocs.org/projects/aiobotocore/badge/?version=latest
|
||||||
|
:target: https://aiobotocore.readthedocs.io/en/latest/?badge=latest
|
||||||
|
:alt: Documentation Status
|
||||||
|
.. |pypi badge| image:: https://img.shields.io/pypi/v/aiobotocore.svg
|
||||||
|
:target: https://pypi.python.org/pypi/aiobotocore
|
||||||
|
:alt: Latest version on pypi
|
||||||
|
.. |gitter badge| image:: https://badges.gitter.im/Join%20Chat.svg
|
||||||
|
:target: https://gitter.im/aio-libs/aiobotocore
|
||||||
|
:alt: Chat on Gitter
|
||||||
|
.. |pypi downloads badge| image:: https://img.shields.io/pypi/dm/aiobotocore.svg?label=PyPI%20downloads
|
||||||
|
:target: https://pypi.org/project/aiobotocore/
|
||||||
|
:alt: Downloads Last Month
|
||||||
|
.. |conda badge| image:: https://img.shields.io/conda/dn/conda-forge/aiobotocore.svg?label=Conda%20downloads
|
||||||
|
:target: https://anaconda.org/conda-forge/aiobotocore
|
||||||
|
:alt: Conda downloads
|
||||||
|
.. |stackoverflow badge| image:: https://img.shields.io/badge/stackoverflow-Ask%20questions-blue.svg
|
||||||
|
:target: https://stackoverflow.com/questions/tagged/aiobotocore
|
||||||
|
:alt: Stack Overflow
|
||||||
|
|
||||||
|
|ci badge| |pre-commit badge| |coverage badge| |docs badge| |pypi badge| |gitter badge| |pypi downloads badge| |conda badge| |stackoverflow badge|
|
||||||
|
|
||||||
|
Async client for amazon services using botocore_ and aiohttp_/asyncio_.
|
||||||
|
|
||||||
|
This library is a mostly full featured asynchronous version of botocore.
|
||||||
|
|
||||||
|
|
||||||
|
Install
|
||||||
|
-------
|
||||||
|
::
|
||||||
|
|
||||||
|
$ pip install aiobotocore
|
||||||
|
|
||||||
|
|
||||||
|
Basic Example
|
||||||
|
-------------
|
||||||
|
|
||||||
|
.. code:: python
|
||||||
|
|
||||||
|
import asyncio
|
||||||
|
from aiobotocore.session import get_session
|
||||||
|
|
||||||
|
AWS_ACCESS_KEY_ID = "xxx"
|
||||||
|
AWS_SECRET_ACCESS_KEY = "xxx"
|
||||||
|
|
||||||
|
|
||||||
|
async def go():
|
||||||
|
bucket = 'dataintake'
|
||||||
|
filename = 'dummy.bin'
|
||||||
|
folder = 'aiobotocore'
|
||||||
|
key = '{}/{}'.format(folder, filename)
|
||||||
|
|
||||||
|
session = get_session()
|
||||||
|
async with session.create_client('s3', region_name='us-west-2',
|
||||||
|
aws_secret_access_key=AWS_SECRET_ACCESS_KEY,
|
||||||
|
aws_access_key_id=AWS_ACCESS_KEY_ID) as client:
|
||||||
|
# upload object to amazon s3
|
||||||
|
data = b'\x01'*1024
|
||||||
|
resp = await client.put_object(Bucket=bucket,
|
||||||
|
Key=key,
|
||||||
|
Body=data)
|
||||||
|
print(resp)
|
||||||
|
|
||||||
|
# getting s3 object properties of file we just uploaded
|
||||||
|
resp = await client.get_object_acl(Bucket=bucket, Key=key)
|
||||||
|
print(resp)
|
||||||
|
|
||||||
|
# get object from s3
|
||||||
|
response = await client.get_object(Bucket=bucket, Key=key)
|
||||||
|
# this will ensure the connection is correctly re-used/closed
|
||||||
|
async with response['Body'] as stream:
|
||||||
|
assert await stream.read() == data
|
||||||
|
|
||||||
|
# list s3 objects using paginator
|
||||||
|
paginator = client.get_paginator('list_objects_v2')
|
||||||
|
async for result in paginator.paginate(Bucket=bucket, Prefix=folder):
|
||||||
|
for c in result.get('Contents', []):
|
||||||
|
print(c)
|
||||||
|
|
||||||
|
# delete object from s3
|
||||||
|
resp = await client.delete_object(Bucket=bucket, Key=key)
|
||||||
|
print(resp)
|
||||||
|
|
||||||
|
loop = asyncio.get_event_loop()
|
||||||
|
loop.run_until_complete(go())
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Context Manager Examples
|
||||||
|
------------------------
|
||||||
|
|
||||||
|
.. code:: python
|
||||||
|
|
||||||
|
from contextlib import AsyncExitStack
|
||||||
|
|
||||||
|
from aiobotocore.session import AioSession
|
||||||
|
|
||||||
|
|
||||||
|
# How to use in existing context manager
|
||||||
|
class Manager:
|
||||||
|
def __init__(self):
|
||||||
|
self._exit_stack = AsyncExitStack()
|
||||||
|
self._s3_client = None
|
||||||
|
|
||||||
|
async def __aenter__(self):
|
||||||
|
session = AioSession()
|
||||||
|
self._s3_client = await self._exit_stack.enter_async_context(session.create_client('s3'))
|
||||||
|
|
||||||
|
async def __aexit__(self, exc_type, exc_val, exc_tb):
|
||||||
|
await self._exit_stack.__aexit__(exc_type, exc_val, exc_tb)
|
||||||
|
|
||||||
|
# How to use with an external exit_stack
|
||||||
|
async def create_s3_client(session: AioSession, exit_stack: AsyncExitStack):
|
||||||
|
# Create client and add cleanup
|
||||||
|
client = await exit_stack.enter_async_context(session.create_client('s3'))
|
||||||
|
return client
|
||||||
|
|
||||||
|
|
||||||
|
async def non_manager_example():
|
||||||
|
session = AioSession()
|
||||||
|
|
||||||
|
async with AsyncExitStack() as exit_stack:
|
||||||
|
s3_client = await create_s3_client(session, exit_stack)
|
||||||
|
|
||||||
|
# do work with s3_client
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Supported AWS Services
|
||||||
|
----------------------
|
||||||
|
|
||||||
|
This is a non-exuastive list of what tests aiobotocore runs against AWS services. Not all methods are tested but we aim to test the majority of
|
||||||
|
commonly used methods.
|
||||||
|
|
||||||
|
+----------------+-----------------------+
|
||||||
|
| Service | Status |
|
||||||
|
+================+=======================+
|
||||||
|
| S3 | Working |
|
||||||
|
+----------------+-----------------------+
|
||||||
|
| DynamoDB | Basic methods tested |
|
||||||
|
+----------------+-----------------------+
|
||||||
|
| SNS | Basic methods tested |
|
||||||
|
+----------------+-----------------------+
|
||||||
|
| SQS | Basic methods tested |
|
||||||
|
+----------------+-----------------------+
|
||||||
|
| CloudFormation | Stack creation tested |
|
||||||
|
+----------------+-----------------------+
|
||||||
|
| Kinesis | Basic methods tested |
|
||||||
|
+----------------+-----------------------+
|
||||||
|
|
||||||
|
Due to the way boto3 is implemented, its highly likely that even if services are not listed above that you can take any ``boto3.client('service')`` and
|
||||||
|
stick ``await`` in front of methods to make them async, e.g. ``await client.list_named_queries()`` would asynchronous list all of the named Athena queries.
|
||||||
|
|
||||||
|
If a service is not listed here and you could do with some tests or examples feel free to raise an issue.
|
||||||
|
|
||||||
|
|
||||||
|
Enable type checking and code completion
|
||||||
|
----------------------------------------
|
||||||
|
|
||||||
|
Install types-aiobotocore_ that contains type annotations for ``aiobotocore``
|
||||||
|
and all supported botocore_ services.
|
||||||
|
|
||||||
|
.. code:: bash
|
||||||
|
|
||||||
|
# install aiobotocore type annotations
|
||||||
|
# for ec2, s3, rds, lambda, sqs, dynamo and cloudformation
|
||||||
|
python -m pip install 'types-aiobotocore[essential]'
|
||||||
|
|
||||||
|
# or install annotations for services you use
|
||||||
|
python -m pip install 'types-aiobotocore[acm,apigateway]'
|
||||||
|
|
||||||
|
# Lite version does not provide session.create_client overloads
|
||||||
|
# it is more RAM-friendly, but requires explicit type annotations
|
||||||
|
python -m pip install 'types-aiobotocore-lite[essential]'
|
||||||
|
|
||||||
|
Now you should be able to run Pylance_, pyright_, or mypy_ for type checking
|
||||||
|
as well as code completion in your IDE.
|
||||||
|
|
||||||
|
For ``types-aiobotocore-lite`` package use explicit type annotations:
|
||||||
|
|
||||||
|
.. code:: python
|
||||||
|
|
||||||
|
from aiobotocore.session import get_session
|
||||||
|
from types_aiobotocore_s3.client import S3Client
|
||||||
|
|
||||||
|
session = get_session()
|
||||||
|
async with session.create_client("s3") as client:
|
||||||
|
client: S3Client
|
||||||
|
# type checking and code completion is now enabled for client
|
||||||
|
|
||||||
|
|
||||||
|
Full documentation for ``types-aiobotocore`` can be found here: https://youtype.github.io/types_aiobotocore_docs/
|
||||||
|
|
||||||
|
|
||||||
|
Requirements
|
||||||
|
------------
|
||||||
|
* Python_ 3.9+
|
||||||
|
* aiohttp_
|
||||||
|
* botocore_
|
||||||
|
|
||||||
|
.. _Python: https://www.python.org
|
||||||
|
.. _asyncio: https://docs.python.org/3/library/asyncio.html
|
||||||
|
.. _botocore: https://github.com/boto/botocore
|
||||||
|
.. _aiohttp: https://github.com/aio-libs/aiohttp
|
||||||
|
.. _types-aiobotocore: https://youtype.github.io/types_aiobotocore_docs/
|
||||||
|
.. _Pylance: https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-pylance
|
||||||
|
.. _pyright: https://github.com/microsoft/pyright
|
||||||
|
.. _mypy: http://mypy-lang.org/
|
||||||
|
|
||||||
|
awscli & boto3
|
||||||
|
--------------
|
||||||
|
|
||||||
|
awscli and boto3 depend on a single version, or a narrow range of versions, of botocore.
|
||||||
|
However, aiobotocore only supports a specific range of botocore versions. To ensure you
|
||||||
|
install the latest version of awscli and boto3 that your specific combination or
|
||||||
|
aiobotocore and botocore can support use::
|
||||||
|
|
||||||
|
pip install -U 'aiobotocore[awscli,boto3]'
|
||||||
|
|
||||||
|
If you only need awscli and not boto3 (or vice versa) you can just install one extra or
|
||||||
|
the other.
|
||||||
|
|
||||||
|
Changes
|
||||||
|
-------
|
||||||
|
|
||||||
|
2.25.2 (2025-11-10)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* relax botocore dependency specification
|
||||||
|
|
||||||
|
2.25.1 (2025-10-28)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* relax botocore dependency specification
|
||||||
|
|
||||||
|
2.25.0 (2025-10-10)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* switch async test runner from pytest-asyncio to AnyIO
|
||||||
|
* turn ``AioClientArgsCreator.get_client_args()`` and ``AioClientCreator._get_client_args()`` into asynchronous methods
|
||||||
|
* bump botocore dependency specification
|
||||||
|
|
||||||
|
2.24.3 (2025-10-06)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* bump botocore dependency specification
|
||||||
|
|
||||||
|
2.24.2 (2025-09-05)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* bump botocore dependency specification
|
||||||
|
|
||||||
|
2.24.1 (2025-08-15)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* fix endpoint circular import error
|
||||||
|
|
||||||
|
2.24.0 (2025-07-31)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* bump botocore dependency specification
|
||||||
|
|
||||||
|
2.23.2 (2025-07-24)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* bump botocore dependency specification
|
||||||
|
|
||||||
|
2.23.1 (2025-07-16)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* bump botocore dependency specification
|
||||||
|
|
||||||
|
2.23.0 (2025-06-12)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* drop support for Python 3.8 (EOL)
|
||||||
|
* bump botocore dependency specification
|
||||||
|
* add experimental support for ``httpx``. The backend can be activated when creating a new session: ``session.create_client(..., config=AioConfig(http_session_cls=aiobotocore.httpxsession.HttpxSession))``. It's not fully tested and some features from aiohttp have not been ported, but feedback on what you're missing and bug reports are very welcome.
|
||||||
|
|
||||||
|
2.22.0 (2025-04-29)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* fully patch ``ClientArgsCreator.get_client_args()``
|
||||||
|
* patch ``AioEndpoint.__init__()``
|
||||||
|
* patch ``EventStream._parse_event()``, ``ResponseParser`` and subclasses
|
||||||
|
* use SPDX license identifier for project metadata
|
||||||
|
* upstream support for the smithy-rpc-v2-cbor protocol
|
||||||
|
* bump botocore dependency specification
|
||||||
|
|
||||||
|
2.21.1 (2025-03-04)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* fix for refreshable credential account-id lookup
|
||||||
|
|
||||||
|
2.21.0 (2025-02-28)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* make `AioDeferredRefreshableCredentials` subclass of `DeferredRefreshableCredentials`
|
||||||
|
* make `AioSSOCredentialFetcher` subclass of `SSOCredentialFetcher`
|
||||||
|
* bump botocore dependency specification
|
||||||
|
|
||||||
|
2.20.1.dev0 (2025-02-24)
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
* upstream http response header fixes to be more in-line with botocore
|
||||||
|
|
||||||
|
2.20.0 (2025-02-19)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* patch `AwsChunkedWrapper.read`
|
||||||
|
* bump botocore dependency specification
|
||||||
|
|
||||||
|
2.19.0 (2025-01-22)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* support custom `ttl_dns_cache` connector configuration
|
||||||
|
* relax botocore dependency specification
|
||||||
|
|
||||||
|
2.18.0 (2025-01-17)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* bump botocore dependency specification
|
||||||
|
|
||||||
|
2.17.0 (2025-01-06)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* relax botocore dependency specification
|
||||||
|
* add missing dependencies `python-dateutil`, `jmespath`, `multidict`, and `urllib3`
|
||||||
|
|
||||||
|
2.16.1 (2024-12-26)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* relax botocore dependency specification
|
||||||
|
|
||||||
|
2.16.0 (2024-12-16)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* bump botocore dependency specification
|
||||||
|
|
||||||
|
2.15.2 (2024-10-09)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* relax botocore dependency specification
|
||||||
|
|
||||||
|
2.15.1 (2024-09-19)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* relax botocore dependency specification
|
||||||
|
|
||||||
|
2.15.0 (2024-09-10)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* bump botocore dependency specification
|
||||||
|
|
||||||
|
2.14.0 (2024-08-28)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* bump botocore dependency specification
|
||||||
|
|
||||||
|
2.13.3 (2024-08-22)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* fix ``create_waiter_with_client()``
|
||||||
|
* relax botocore dependency specification
|
||||||
|
|
||||||
|
2.13.2 (2024-07-18)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* fix for #1125 due to missing patch of StreamingChecksumBody
|
||||||
|
|
||||||
|
2.13.1 (2024-06-24)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* bump botocore dependency specification
|
||||||
|
|
||||||
|
2.13.0 (2024-05-16)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* address breaking change introduced in `aiohttp==3.9.2` #882
|
||||||
|
|
||||||
|
2.12.4 (2024-05-16)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* bump botocore dependency specification
|
||||||
|
|
||||||
|
2.12.3 (2024-04-11)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* relax botocore dependency specification
|
||||||
|
|
||||||
|
2.12.2 (2024-04-01)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* expose configuration of ``http_session_cls`` in ``AioConfig``
|
||||||
|
|
||||||
|
2.12.1 (2024-03-04)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* fix use of proxies #1070
|
||||||
|
|
||||||
|
2.12.0 (2024-02-28)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* bump botocore dependency specification
|
||||||
|
|
||||||
|
2.11.2 (2024-02-02)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* bump botocore dependency specification
|
||||||
|
|
||||||
|
2.11.1 (2024-01-25)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* bump botocore dependency specification
|
||||||
|
|
||||||
|
2.11.0 (2024-01-19)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* send project-specific `User-Agent` HTTP header #853
|
||||||
|
|
||||||
|
2.10.0 (2024-01-18)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* bump botocore dependency specification
|
||||||
|
|
||||||
|
2.9.1 (2024-01-17)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* fix race condition in S3 Express identity cache #1072
|
||||||
|
|
||||||
|
2.9.0 (2023-12-12)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* bump botocore dependency specification
|
||||||
|
|
||||||
|
2.8.0 (2023-11-28)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* add AioStubber that returns AioAWSResponse()
|
||||||
|
* remove confusing `aiobotocore.session.Session` symbol
|
||||||
|
* bump botocore dependency specification
|
||||||
|
|
||||||
|
2.7.0 (2023-10-17)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* add support for Python 3.12
|
||||||
|
* drop more Python 3.7 support (EOL)
|
||||||
|
* relax botocore dependency specification
|
||||||
|
|
||||||
|
2.6.0 (2023-08-11)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* bump aiohttp minimum version to 3.7.4.post0
|
||||||
|
* drop python 3.7 support (EOL)
|
||||||
|
|
||||||
|
2.5.4 (2023-08-07)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* fix __aenter__ attribute error introduced in refresh bugfix (#1031)
|
||||||
|
|
||||||
|
2.5.3 (2023-08-06)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* add more support for Python 3.11
|
||||||
|
* bump botocore to 1.31.17
|
||||||
|
* add waiter.wait return
|
||||||
|
* fix SSO token refresh bug #1025
|
||||||
|
|
||||||
|
2.5.2 (2023-07-06)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* fix issue #1020
|
||||||
|
|
||||||
|
2.5.1 (2023-06-27)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* bump botocore to 1.29.161
|
||||||
|
|
||||||
|
2.5.0 (2023-03-06)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* bump botocore to 1.29.76 (thanks @jakob-keller #999)
|
||||||
|
|
||||||
|
2.4.2 (2022-12-22)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* fix retries (#988)
|
||||||
|
|
||||||
|
2.4.1 (2022-11-28)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* Adds support for checksums in streamed request trailers (thanks @terrycain #962)
|
||||||
|
|
||||||
|
2.4.0 (2022-08-25)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* bump botocore to 1.27.59
|
||||||
|
|
||||||
|
2.3.4 (2022-06-23)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* fix select_object_content
|
||||||
|
|
||||||
|
2.3.3 (2022-06-07)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* fix connect timeout while getting IAM creds
|
||||||
|
* fix test files appearing in distribution package
|
||||||
|
|
||||||
|
2.3.2 (2022-05-08)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* fix 3.6 testing and and actually fix 3.6 support
|
||||||
|
|
||||||
|
2.3.1 (2022-05-06)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* fix 3.6 support
|
||||||
|
* AioConfig: allow keepalive_timeout to be None (thanks @dnlserrano #933)
|
||||||
|
|
||||||
|
2.3.0 (2022-05-05)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* fix encoding issue by swapping to AioAWSResponse and AioAWSRequest to behave more
|
||||||
|
like botocore
|
||||||
|
* fix exceptions mappings
|
||||||
|
|
||||||
|
2.2.0 (2022-03-16)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* remove deprecated APIs
|
||||||
|
* bump to botocore 1.24.21
|
||||||
|
* re-enable retry of aiohttp.ClientPayloadError
|
||||||
|
|
||||||
|
2.1.2 (2022-03-03)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* fix httpsession close call
|
||||||
|
|
||||||
|
2.1.1 (2022-02-10)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* implement asynchronous non-blocking adaptive retry strategy
|
||||||
|
|
||||||
|
2.1.0 (2021-12-14)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* bump to botocore 1.23.24
|
||||||
|
* fix aiohttp resolver config param #906
|
||||||
|
|
||||||
|
2.0.1 (2021-11-25)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* revert accidental dupe of _register_s3_events #867 (thanks @eoghanmurray)
|
||||||
|
* Support customizing the aiohttp connector resolver class #893 (thanks @orf)
|
||||||
|
* fix timestream query #902
|
||||||
|
|
||||||
|
|
||||||
|
2.0.0 (2021-11-02)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* bump to botocore 1.22.8
|
||||||
|
* turn off default ``AIOBOTOCORE_DEPRECATED_1_4_0_APIS`` env var to match botocore module. See notes in 1.4.0.
|
||||||
|
|
||||||
|
1.4.2 (2021-09-03)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* Fix missing close() method on http session (thanks `@terrycain <https://github.com/terrycain>`_)
|
||||||
|
* Fix for verify=False
|
||||||
|
|
||||||
|
1.4.1 (2021-08-24)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* put backwards incompatible changes behind ``AIOBOTOCORE_DEPRECATED_1_4_0_APIS`` env var. This means that `#876 <https://github.com/aio-libs/aiobotocore/issues/876>`_ will not work unless this env var has been set to 0.
|
||||||
|
|
||||||
|
1.4.0 (2021-08-20)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* fix retries via config `#877 <https://github.com/aio-libs/aiobotocore/pull/877>`_
|
||||||
|
* remove AioSession and get_session top level names to match botocore_
|
||||||
|
* change exceptions raised to match those of botocore_, see `mappings <https://github.com/aio-libs/aiobotocore/pull/877/files#diff-b1675e1eb4276bfae81107cda919ba446e4ce1b1e228a9e878d65dd1f474bf8cR162-R181>`_
|
||||||
|
|
||||||
|
1.3.3 (2021-07-12)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* fix AioJSONParser `#872 <https://github.com/aio-libs/aiobotocore/issues/872>`_
|
||||||
|
|
||||||
|
1.3.2 (2021-07-07)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* Bump to botocore_ to `1.20.106 <https://github.com/boto/botocore/tree/1.20.106>`_
|
||||||
|
|
||||||
|
1.3.1 (2021-06-11)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* TCPConnector: change deprecated ssl_context to ssl
|
||||||
|
* fix non awaited generate presigned url calls `#868 <https://github.com/aio-libs/aiobotocore/issues/868>`_
|
||||||
|
|
||||||
|
1.3.0 (2021-04-09)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* Bump to botocore_ to `1.20.49 <https://github.com/boto/botocore/tree/1.20.49>`_ `#856 <https://github.com/aio-libs/aiobotocore/pull/856>`_
|
||||||
|
|
||||||
|
1.2.2 (2021-03-11)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* Await call to async method _load_creds_via_assume_role `#858 <https://github.com/aio-libs/aiobotocore/pull/858>`_ (thanks `@puzza007 <https://github.com/puzza007>`_)
|
||||||
|
|
||||||
|
1.2.1 (2021-02-10)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* verify strings are now correctly passed to aiohttp.TCPConnector `#851 <https://github.com/aio-libs/aiobotocore/pull/851>`_ (thanks `@FHTMitchell <https://github.com/FHTMitchell>`_)
|
||||||
|
|
||||||
|
1.2.0 (2021-01-11)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* bump botocore to `1.19.52 <https://github.com/boto/botocore/tree/1.19.52>`_
|
||||||
|
* use passed in http_session_cls param to create_client `#797 <https://github.com/aio-libs/aiobotocore/issues/797>`_
|
||||||
|
|
||||||
|
1.1.2 (2020-10-07)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* fix AioPageIterator search method #831 (thanks `@joseph-jones <https://github.com/joseph-jones>`_)
|
||||||
|
|
||||||
|
1.1.1 (2020-08-31)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* fix s3 region redirect bug #825
|
||||||
|
|
||||||
|
1.1.0 (2020-08-18)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* bump botocore to 1.17.44
|
||||||
|
|
||||||
|
1.0.7 (2020-06-04)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* fix generate_db_auth_token via #816
|
||||||
|
|
||||||
|
1.0.6 (2020-06-04)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* revert __getattr__ fix as it breaks ddtrace
|
||||||
|
|
||||||
|
1.0.5 (2020-06-03)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* Fixed AioSession.get_service_data emit call #811 via #812
|
||||||
|
* Fixed async __getattr__ #789 via #803
|
||||||
|
|
||||||
|
1.0.4 (2020-04-15)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* Fixed S3 Presigned Post not being async
|
||||||
|
|
||||||
|
1.0.3 (2020-04-09)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* Fixes typo when using credential process
|
||||||
|
|
||||||
|
1.0.2 (2020-04-05)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* Disable Client.__getattr__ emit for now #789
|
||||||
|
|
||||||
|
1.0.1 (2020-04-01)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* Fixed signing requests with explicit credentials
|
||||||
|
|
||||||
|
1.0.0 (2020-03-31)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* API breaking: The result of create_client is now a required async context class
|
||||||
|
* Credential refresh should now work
|
||||||
|
* generate_presigned_url is now an async call along with other credential methods
|
||||||
|
* Credentials.[access_key/secret_key/token] now raise NotImplementedError because
|
||||||
|
they won't call refresh like botocore. Instead should use get_frozen_credentials
|
||||||
|
async method
|
||||||
|
* Bump botocore and extras
|
||||||
|
|
||||||
|
0.12.0 (2020-02-23)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* Bump botocore and extras
|
||||||
|
* Drop support for 3.5 given we are unable to test it with moto
|
||||||
|
and it will soon be unsupported
|
||||||
|
* Remove loop parameters for Python 3.8 compliance
|
||||||
|
* Remove deprecated AioPageIterator.next_page
|
||||||
|
|
||||||
|
0.11.1 (2020-01-03)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* Fixed event streaming API calls like S3 Select.
|
||||||
|
|
||||||
|
0.11.0 (2019-11-12)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* replace CaseInsensitiveDict with urllib3 equivalent #744
|
||||||
|
(thanks to inspiration from @craigmccarter and @kevchentw)
|
||||||
|
* bump botocore to 1.13.14
|
||||||
|
* fix for mismatched botocore method replacements
|
||||||
|
|
||||||
|
0.10.4 (2019-10-24)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* Make AioBaseClient.close method async #724 (thanks @bsitruk)
|
||||||
|
* Bump awscli, boto3, botocore #735 (thanks @bbrendon)
|
||||||
|
* switch paginator to async_generator, add result_key_iters
|
||||||
|
(deprecate next_page method)
|
||||||
|
|
||||||
|
0.10.3 (2019-07-17)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* Bump botocore and extras
|
||||||
|
|
||||||
|
0.10.2 (2019-02-11)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* Fix response-received emitted event #682
|
||||||
|
|
||||||
|
0.10.1 (2019-02-08)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* Make tests pass with pytest 4.1 #669 (thanks @yan12125)
|
||||||
|
* Support Python 3.7 #671 (thanks to @yan12125)
|
||||||
|
* Update RTD build config #672 (thanks @willingc)
|
||||||
|
* Bump to botocore 1.12.91 #679
|
||||||
|
|
||||||
|
0.10.0 (2018-12-09)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
* Update to botocore 1.12.49 #639 (thanks @terrycain)
|
||||||
|
|
||||||
|
0.9.4 (2018-08-08)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* Add ClientPayloadError as retryable exception
|
||||||
|
|
||||||
|
0.9.3 (2018-07-16)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* Bring botocore up to date
|
||||||
|
|
||||||
|
0.9.2 (2018-05-05)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* bump aiohttp requirement to fix read timeouts
|
||||||
|
|
||||||
|
0.9.1 (2018-05-04)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* fix timeout bug introduced in last release
|
||||||
|
|
||||||
|
0.9.0 (2018-06-01)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* bump aiohttp to 3.3.x
|
||||||
|
* remove unneeded set_socket_timeout
|
||||||
|
|
||||||
|
0.8.0 (2018-05-07)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* Fix pagination #573 (thanks @adamrothman)
|
||||||
|
* Enabled several s3 tests via moto
|
||||||
|
* Bring botocore up to date
|
||||||
|
|
||||||
|
0.7.0 (2018-05-01)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* Just version bump
|
||||||
|
|
||||||
|
0.6.1a0 (2018-05-01)
|
||||||
|
^^^^^^^^^^^^^^^^^^^^
|
||||||
|
* bump to aiohttp 3.1.x
|
||||||
|
* switch tests to Python 3.5+
|
||||||
|
* switch to native coroutines
|
||||||
|
* fix non-streaming body timeout retries
|
||||||
|
|
||||||
|
0.6.0 (2018-03-04)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* Upgrade to aiohttp>=3.0.0 #536 (thanks @Gr1N)
|
||||||
|
|
||||||
|
0.5.3 (2018-02-23)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* Fixed waiters #523 (thanks @dalazx)
|
||||||
|
* fix conn_timeout #485
|
||||||
|
|
||||||
|
0.5.2 (2017-12-06)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* Updated awscli dependency #461
|
||||||
|
|
||||||
|
0.5.1 (2017-11-10)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* Disabled compressed response #430
|
||||||
|
|
||||||
|
0.5.0 (2017-11-10)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* Fix error botocore error checking #190
|
||||||
|
* Update supported botocore requirement to: >=1.7.28, <=1.7.40
|
||||||
|
* Bump aiohttp requirement to support compressed responses correctly #298
|
||||||
|
|
||||||
|
0.4.5 (2017-09-05)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* Added SQS examples and tests #336
|
||||||
|
* Changed requirements.txt structure #336
|
||||||
|
* bump to botocore 1.7.4
|
||||||
|
* Added DynamoDB examples and tests #340
|
||||||
|
|
||||||
|
|
||||||
|
0.4.4 (2017-08-16)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* add the supported versions of boto3 to extras require #324
|
||||||
|
|
||||||
|
0.4.3 (2017-07-05)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* add the supported versions of awscli to extras require #273 (thanks @graingert)
|
||||||
|
|
||||||
|
0.4.2 (2017-07-03)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* update supported aiohttp requirement to: >=2.0.4, <=2.3.0
|
||||||
|
* update supported botocore requirement to: >=1.5.71, <=1.5.78
|
||||||
|
|
||||||
|
0.4.1 (2017-06-27)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* fix redirects #268
|
||||||
|
|
||||||
|
0.4.0 (2017-06-19)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* update botocore requirement to: botocore>=1.5.34, <=1.5.70
|
||||||
|
* fix read_timeout due to #245
|
||||||
|
* implement set_socket_timeout
|
||||||
|
|
||||||
|
0.3.3 (2017-05-22)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* switch to PEP 440 version parser to support 'dev' versions
|
||||||
|
|
||||||
|
0.3.2 (2017-05-22)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* Fix botocore integration
|
||||||
|
* Provisional fix for aiohttp 2.x stream support
|
||||||
|
* update botocore requirement to: botocore>=1.5.34, <=1.5.52
|
||||||
|
|
||||||
|
0.3.1 (2017-04-18)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* Fixed Waiter support
|
||||||
|
|
||||||
|
0.3.0 (2017-04-01)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* Added support for aiohttp>=2.0.4 (thanks @achimnol)
|
||||||
|
* update botocore requirement to: botocore>=1.5.0, <=1.5.33
|
||||||
|
|
||||||
|
0.2.3 (2017-03-22)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* update botocore requirement to: botocore>=1.5.0, <1.5.29
|
||||||
|
|
||||||
|
0.2.2 (2017-03-07)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* set aiobotocore.__all__ for * imports #121 (thanks @graingert)
|
||||||
|
* fix ETag in head_object response #132
|
||||||
|
|
||||||
|
0.2.1 (2017-02-01)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* Normalize headers and handle redirection by botocore #115 (thanks @Fedorof)
|
||||||
|
|
||||||
|
0.2.0 (2017-01-30)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* add support for proxies (thanks @jjonek)
|
||||||
|
* remove AioConfig verify_ssl connector_arg as this is handled by the
|
||||||
|
create_client verify param
|
||||||
|
* remove AioConfig limit connector_arg as this is now handled by
|
||||||
|
by the Config `max_pool_connections` property (note default is 10)
|
||||||
|
|
||||||
|
0.1.1 (2017-01-16)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* botocore updated to version 1.5.0
|
||||||
|
|
||||||
|
0.1.0 (2017-01-12)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
* Pass timeout to aiohttp.request to enforce read_timeout #86 (thanks @vharitonsky)
|
||||||
|
(bumped up to next semantic version due to read_timeout enabling change)
|
||||||
|
|
||||||
|
0.0.6 (2016-11-19)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
* Added enforcement of plain response #57 (thanks @rymir)
|
||||||
|
* botocore updated to version 1.4.73 #74 (thanks @vas3k)
|
||||||
|
|
||||||
|
|
||||||
|
0.0.5 (2016-06-01)
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
* Initial alpha release
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta name="generator" content="simple503 version 0.4.0" />
|
||||||
|
<meta name="pypi:repository-version" content="1.0" />
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<title>
|
||||||
|
Links for aiobotocore
|
||||||
|
</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>
|
||||||
|
Links for aiobotocore
|
||||||
|
</h1>
|
||||||
|
<a href="/aiobotocore/aiobotocore-2.25.2-py3-none-any.whl#sha256=0cec45c6ba7627dd5e5460337291c86ac38c3b512ec4054ce76407d0f7f2a48f" data-requires-python=">=3.9" data-dist-info-metadata="sha256=a3258cb67c6aca2e2da130b3ff52743b5a025f76d815d744a7599e6b62e872c4">
|
||||||
|
aiobotocore-2.25.2-py3-none-any.whl
|
||||||
|
</a>
|
||||||
|
<br />
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,209 @@
|
||||||
|
Metadata-Version: 2.4
|
||||||
|
Name: aiofiles
|
||||||
|
Version: 25.1.0
|
||||||
|
Summary: File support for asyncio.
|
||||||
|
Project-URL: Changelog, https://github.com/Tinche/aiofiles#history
|
||||||
|
Project-URL: Bug Tracker, https://github.com/Tinche/aiofiles/issues
|
||||||
|
Project-URL: Repository, https://github.com/Tinche/aiofiles
|
||||||
|
Author-email: Tin Tvrtkovic <tinchester@gmail.com>
|
||||||
|
License: Apache-2.0
|
||||||
|
License-File: LICENSE
|
||||||
|
License-File: NOTICE
|
||||||
|
Classifier: Development Status :: 5 - Production/Stable
|
||||||
|
Classifier: Framework :: AsyncIO
|
||||||
|
Classifier: License :: OSI Approved :: Apache Software License
|
||||||
|
Classifier: Operating System :: OS Independent
|
||||||
|
Classifier: Programming Language :: Python :: 3.9
|
||||||
|
Classifier: Programming Language :: Python :: 3.10
|
||||||
|
Classifier: Programming Language :: Python :: 3.11
|
||||||
|
Classifier: Programming Language :: Python :: 3.12
|
||||||
|
Classifier: Programming Language :: Python :: 3.13
|
||||||
|
Classifier: Programming Language :: Python :: 3.14
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
||||||
|
Requires-Python: >=3.9
|
||||||
|
Description-Content-Type: text/markdown
|
||||||
|
|
||||||
|
# aiofiles: file support for asyncio
|
||||||
|
|
||||||
|
[](https://pypi.python.org/pypi/aiofiles)
|
||||||
|
[](https://github.com/Tinche/aiofiles/actions)
|
||||||
|
[](https://github.com/Tinche/aiofiles/actions/workflows/main.yml)
|
||||||
|
[](https://github.com/Tinche/aiofiles)
|
||||||
|
[](https://github.com/astral-sh/ruff)
|
||||||
|
|
||||||
|
**aiofiles** is an Apache2 licensed library, written in Python, for handling local
|
||||||
|
disk files in asyncio applications.
|
||||||
|
|
||||||
|
Ordinary local file IO is blocking, and cannot easily and portably be made
|
||||||
|
asynchronous. This means doing file IO may interfere with asyncio applications,
|
||||||
|
which shouldn't block the executing thread. aiofiles helps with this by
|
||||||
|
introducing asynchronous versions of files that support delegating operations to
|
||||||
|
a separate thread pool.
|
||||||
|
|
||||||
|
```python
|
||||||
|
async with aiofiles.open('filename', mode='r') as f:
|
||||||
|
contents = await f.read()
|
||||||
|
print(contents)
|
||||||
|
'My file contents'
|
||||||
|
```
|
||||||
|
|
||||||
|
Asynchronous iteration is also supported.
|
||||||
|
|
||||||
|
```python
|
||||||
|
async with aiofiles.open('filename') as f:
|
||||||
|
async for line in f:
|
||||||
|
...
|
||||||
|
```
|
||||||
|
|
||||||
|
Asynchronous interface to tempfile module.
|
||||||
|
|
||||||
|
```python
|
||||||
|
async with aiofiles.tempfile.TemporaryFile('wb') as f:
|
||||||
|
await f.write(b'Hello, World!')
|
||||||
|
```
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- a file API very similar to Python's standard, blocking API
|
||||||
|
- support for buffered and unbuffered binary files, and buffered text files
|
||||||
|
- support for `async`/`await` ([PEP 492](https://peps.python.org/pep-0492/)) constructs
|
||||||
|
- async interface to tempfile module
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
To install aiofiles, simply:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
pip install aiofiles
|
||||||
|
```
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
Files are opened using the `aiofiles.open()` coroutine, which in addition to
|
||||||
|
mirroring the builtin `open` accepts optional `loop` and `executor`
|
||||||
|
arguments. If `loop` is absent, the default loop will be used, as per the
|
||||||
|
set asyncio policy. If `executor` is not specified, the default event loop
|
||||||
|
executor will be used.
|
||||||
|
|
||||||
|
In case of success, an asynchronous file object is returned with an
|
||||||
|
API identical to an ordinary file, except the following methods are coroutines
|
||||||
|
and delegate to an executor:
|
||||||
|
|
||||||
|
- `close`
|
||||||
|
- `flush`
|
||||||
|
- `isatty`
|
||||||
|
- `read`
|
||||||
|
- `readall`
|
||||||
|
- `read1`
|
||||||
|
- `readinto`
|
||||||
|
- `readline`
|
||||||
|
- `readlines`
|
||||||
|
- `seek`
|
||||||
|
- `seekable`
|
||||||
|
- `tell`
|
||||||
|
- `truncate`
|
||||||
|
- `writable`
|
||||||
|
- `write`
|
||||||
|
- `writelines`
|
||||||
|
|
||||||
|
In case of failure, one of the usual exceptions will be raised.
|
||||||
|
|
||||||
|
`aiofiles.stdin`, `aiofiles.stdout`, `aiofiles.stderr`,
|
||||||
|
`aiofiles.stdin_bytes`, `aiofiles.stdout_bytes`, and
|
||||||
|
`aiofiles.stderr_bytes` provide async access to `sys.stdin`,
|
||||||
|
`sys.stdout`, `sys.stderr`, and their corresponding `.buffer` properties.
|
||||||
|
|
||||||
|
The `aiofiles.os` module contains executor-enabled coroutine versions of
|
||||||
|
several useful `os` functions that deal with files:
|
||||||
|
|
||||||
|
- `stat`
|
||||||
|
- `statvfs`
|
||||||
|
- `sendfile`
|
||||||
|
- `rename`
|
||||||
|
- `renames`
|
||||||
|
- `replace`
|
||||||
|
- `remove`
|
||||||
|
- `unlink`
|
||||||
|
- `mkdir`
|
||||||
|
- `makedirs`
|
||||||
|
- `rmdir`
|
||||||
|
- `removedirs`
|
||||||
|
- `link`
|
||||||
|
- `symlink`
|
||||||
|
- `readlink`
|
||||||
|
- `listdir`
|
||||||
|
- `scandir`
|
||||||
|
- `access`
|
||||||
|
- `getcwd`
|
||||||
|
- `path.abspath`
|
||||||
|
- `path.exists`
|
||||||
|
- `path.isfile`
|
||||||
|
- `path.isdir`
|
||||||
|
- `path.islink`
|
||||||
|
- `path.ismount`
|
||||||
|
- `path.getsize`
|
||||||
|
- `path.getatime`
|
||||||
|
- `path.getctime`
|
||||||
|
- `path.samefile`
|
||||||
|
- `path.sameopenfile`
|
||||||
|
|
||||||
|
### Tempfile
|
||||||
|
|
||||||
|
**aiofiles.tempfile** implements the following interfaces:
|
||||||
|
|
||||||
|
- TemporaryFile
|
||||||
|
- NamedTemporaryFile
|
||||||
|
- SpooledTemporaryFile
|
||||||
|
- TemporaryDirectory
|
||||||
|
|
||||||
|
Results return wrapped with a context manager allowing use with async with and async for.
|
||||||
|
|
||||||
|
```python
|
||||||
|
async with aiofiles.tempfile.NamedTemporaryFile('wb+') as f:
|
||||||
|
await f.write(b'Line1\n Line2')
|
||||||
|
await f.seek(0)
|
||||||
|
async for line in f:
|
||||||
|
print(line)
|
||||||
|
|
||||||
|
async with aiofiles.tempfile.TemporaryDirectory() as d:
|
||||||
|
filename = os.path.join(d, "file.ext")
|
||||||
|
```
|
||||||
|
|
||||||
|
### Writing tests for aiofiles
|
||||||
|
|
||||||
|
Real file IO can be mocked by patching `aiofiles.threadpool.sync_open`
|
||||||
|
as desired. The return type also needs to be registered with the
|
||||||
|
`aiofiles.threadpool.wrap` dispatcher:
|
||||||
|
|
||||||
|
```python
|
||||||
|
aiofiles.threadpool.wrap.register(mock.MagicMock)(
|
||||||
|
lambda *args, **kwargs: aiofiles.threadpool.AsyncBufferedIOBase(*args, **kwargs)
|
||||||
|
)
|
||||||
|
|
||||||
|
async def test_stuff():
|
||||||
|
write_data = 'data'
|
||||||
|
read_file_chunks = [
|
||||||
|
b'file chunks 1',
|
||||||
|
b'file chunks 2',
|
||||||
|
b'file chunks 3',
|
||||||
|
b'',
|
||||||
|
]
|
||||||
|
file_chunks_iter = iter(read_file_chunks)
|
||||||
|
|
||||||
|
mock_file_stream = mock.MagicMock(
|
||||||
|
read=lambda *args, **kwargs: next(file_chunks_iter)
|
||||||
|
)
|
||||||
|
|
||||||
|
with mock.patch('aiofiles.threadpool.sync_open', return_value=mock_file_stream) as mock_open:
|
||||||
|
async with aiofiles.open('filename', 'w') as f:
|
||||||
|
await f.write(write_data)
|
||||||
|
assert await f.read() == b'file chunks 1'
|
||||||
|
|
||||||
|
mock_file_stream.write.assert_called_once_with(write_data)
|
||||||
|
```
|
||||||
|
|
||||||
|
### Contributing
|
||||||
|
|
||||||
|
Contributions are very welcome. Tests can be run with `tox`, please ensure
|
||||||
|
the coverage at least stays the same before you submit a pull request.
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta name="generator" content="simple503 version 0.4.0" />
|
||||||
|
<meta name="pypi:repository-version" content="1.0" />
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<title>
|
||||||
|
Links for aiofiles
|
||||||
|
</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>
|
||||||
|
Links for aiofiles
|
||||||
|
</h1>
|
||||||
|
<a href="/aiofiles/aiofiles-25.1.0-py3-none-any.whl#sha256=abe311e527c862958650f9438e859c1fa7568a141b22abcd015e120e86a85695" data-requires-python=">=3.9" data-dist-info-metadata="sha256=6b96b99073158a00ddb012a514834b48c3ec5f732ce059ffcde700481759a8b5">
|
||||||
|
aiofiles-25.1.0-py3-none-any.whl
|
||||||
|
</a>
|
||||||
|
<br />
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,123 @@
|
||||||
|
Metadata-Version: 2.3
|
||||||
|
Name: aiohappyeyeballs
|
||||||
|
Version: 2.6.1
|
||||||
|
Summary: Happy Eyeballs for asyncio
|
||||||
|
License: PSF-2.0
|
||||||
|
Author: J. Nick Koston
|
||||||
|
Author-email: nick@koston.org
|
||||||
|
Requires-Python: >=3.9
|
||||||
|
Classifier: Development Status :: 5 - Production/Stable
|
||||||
|
Classifier: Intended Audience :: Developers
|
||||||
|
Classifier: Natural Language :: English
|
||||||
|
Classifier: Operating System :: OS Independent
|
||||||
|
Classifier: Topic :: Software Development :: Libraries
|
||||||
|
Classifier: Programming Language :: Python :: 3
|
||||||
|
Classifier: Programming Language :: Python :: 3.9
|
||||||
|
Classifier: Programming Language :: Python :: 3.10
|
||||||
|
Classifier: Programming Language :: Python :: 3.11
|
||||||
|
Classifier: Programming Language :: Python :: 3.12
|
||||||
|
Classifier: Programming Language :: Python :: 3.13
|
||||||
|
Classifier: License :: OSI Approved :: Python Software Foundation License
|
||||||
|
Project-URL: Bug Tracker, https://github.com/aio-libs/aiohappyeyeballs/issues
|
||||||
|
Project-URL: Changelog, https://github.com/aio-libs/aiohappyeyeballs/blob/main/CHANGELOG.md
|
||||||
|
Project-URL: Documentation, https://aiohappyeyeballs.readthedocs.io
|
||||||
|
Project-URL: Repository, https://github.com/aio-libs/aiohappyeyeballs
|
||||||
|
Description-Content-Type: text/markdown
|
||||||
|
|
||||||
|
# aiohappyeyeballs
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<a href="https://github.com/aio-libs/aiohappyeyeballs/actions/workflows/ci.yml?query=branch%3Amain">
|
||||||
|
<img src="https://img.shields.io/github/actions/workflow/status/aio-libs/aiohappyeyeballs/ci-cd.yml?branch=main&label=CI&logo=github&style=flat-square" alt="CI Status" >
|
||||||
|
</a>
|
||||||
|
<a href="https://aiohappyeyeballs.readthedocs.io">
|
||||||
|
<img src="https://img.shields.io/readthedocs/aiohappyeyeballs.svg?logo=read-the-docs&logoColor=fff&style=flat-square" alt="Documentation Status">
|
||||||
|
</a>
|
||||||
|
<a href="https://codecov.io/gh/aio-libs/aiohappyeyeballs">
|
||||||
|
<img src="https://img.shields.io/codecov/c/github/aio-libs/aiohappyeyeballs.svg?logo=codecov&logoColor=fff&style=flat-square" alt="Test coverage percentage">
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
<p align="center">
|
||||||
|
<a href="https://python-poetry.org/">
|
||||||
|
<img src="https://img.shields.io/badge/packaging-poetry-299bd7?style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAASCAYAAABrXO8xAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJJSURBVHgBfZLPa1NBEMe/s7tNXoxW1KJQKaUHkXhQvHgW6UHQQ09CBS/6V3hKc/AP8CqCrUcpmop3Cx48eDB4yEECjVQrlZb80CRN8t6OM/teagVxYZi38+Yz853dJbzoMV3MM8cJUcLMSUKIE8AzQ2PieZzFxEJOHMOgMQQ+dUgSAckNXhapU/NMhDSWLs1B24A8sO1xrN4NECkcAC9ASkiIJc6k5TRiUDPhnyMMdhKc+Zx19l6SgyeW76BEONY9exVQMzKExGKwwPsCzza7KGSSWRWEQhyEaDXp6ZHEr416ygbiKYOd7TEWvvcQIeusHYMJGhTwF9y7sGnSwaWyFAiyoxzqW0PM/RjghPxF2pWReAowTEXnDh0xgcLs8l2YQmOrj3N7ByiqEoH0cARs4u78WgAVkoEDIDoOi3AkcLOHU60RIg5wC4ZuTC7FaHKQm8Hq1fQuSOBvX/sodmNJSB5geaF5CPIkUeecdMxieoRO5jz9bheL6/tXjrwCyX/UYBUcjCaWHljx1xiX6z9xEjkYAzbGVnB8pvLmyXm9ep+W8CmsSHQQY77Zx1zboxAV0w7ybMhQmfqdmmw3nEp1I0Z+FGO6M8LZdoyZnuzzBdjISicKRnpxzI9fPb+0oYXsNdyi+d3h9bm9MWYHFtPeIZfLwzmFDKy1ai3p+PDls1Llz4yyFpferxjnyjJDSEy9CaCx5m2cJPerq6Xm34eTrZt3PqxYO1XOwDYZrFlH1fWnpU38Y9HRze3lj0vOujZcXKuuXm3jP+s3KbZVra7y2EAAAAAASUVORK5CYII=" alt="Poetry">
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/astral-sh/ruff">
|
||||||
|
<img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json" alt="Ruff">
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/pre-commit/pre-commit">
|
||||||
|
<img src="https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white&style=flat-square" alt="pre-commit">
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
<p align="center">
|
||||||
|
<a href="https://pypi.org/project/aiohappyeyeballs/">
|
||||||
|
<img src="https://img.shields.io/pypi/v/aiohappyeyeballs.svg?logo=python&logoColor=fff&style=flat-square" alt="PyPI Version">
|
||||||
|
</a>
|
||||||
|
<img src="https://img.shields.io/pypi/pyversions/aiohappyeyeballs.svg?style=flat-square&logo=python&logoColor=fff" alt="Supported Python versions">
|
||||||
|
<img src="https://img.shields.io/pypi/l/aiohappyeyeballs.svg?style=flat-square" alt="License">
|
||||||
|
</p>
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**Documentation**: <a href="https://aiohappyeyeballs.readthedocs.io" target="_blank">https://aiohappyeyeballs.readthedocs.io </a>
|
||||||
|
|
||||||
|
**Source Code**: <a href="https://github.com/aio-libs/aiohappyeyeballs" target="_blank">https://github.com/aio-libs/aiohappyeyeballs </a>
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
[Happy Eyeballs](https://en.wikipedia.org/wiki/Happy_Eyeballs)
|
||||||
|
([RFC 8305](https://www.rfc-editor.org/rfc/rfc8305.html))
|
||||||
|
|
||||||
|
## Use case
|
||||||
|
|
||||||
|
This library exists to allow connecting with
|
||||||
|
[Happy Eyeballs](https://en.wikipedia.org/wiki/Happy_Eyeballs)
|
||||||
|
([RFC 8305](https://www.rfc-editor.org/rfc/rfc8305.html))
|
||||||
|
when you
|
||||||
|
already have a list of addrinfo and not a DNS name.
|
||||||
|
|
||||||
|
The stdlib version of `loop.create_connection()`
|
||||||
|
will only work when you pass in an unresolved name which
|
||||||
|
is not a good fit when using DNS caching or resolving
|
||||||
|
names via another method such as `zeroconf`.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
Install this via pip (or your favourite package manager):
|
||||||
|
|
||||||
|
`pip install aiohappyeyeballs`
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
[aiohappyeyeballs is licensed under the same terms as cpython itself.](https://github.com/python/cpython/blob/main/LICENSE)
|
||||||
|
|
||||||
|
## Example usage
|
||||||
|
|
||||||
|
```python
|
||||||
|
|
||||||
|
addr_infos = await loop.getaddrinfo("example.org", 80)
|
||||||
|
|
||||||
|
socket = await start_connection(addr_infos)
|
||||||
|
socket = await start_connection(addr_infos, local_addr_infos=local_addr_infos, happy_eyeballs_delay=0.2)
|
||||||
|
|
||||||
|
transport, protocol = await loop.create_connection(
|
||||||
|
MyProtocol, sock=socket, ...)
|
||||||
|
|
||||||
|
# Remove the first address for each family from addr_info
|
||||||
|
pop_addr_infos_interleave(addr_info, 1)
|
||||||
|
|
||||||
|
# Remove all matching address from addr_info
|
||||||
|
remove_addr_infos(addr_info, "dead::beef::")
|
||||||
|
|
||||||
|
# Convert a local_addr to local_addr_infos
|
||||||
|
local_addr_infos = addr_to_addr_infos(("127.0.0.1",0))
|
||||||
|
```
|
||||||
|
|
||||||
|
## Credits
|
||||||
|
|
||||||
|
This package contains code from cpython and is licensed under the same terms as cpython itself.
|
||||||
|
|
||||||
|
This package was created with
|
||||||
|
[Copier](https://copier.readthedocs.io/) and the
|
||||||
|
[browniebroke/pypackage-template](https://github.com/browniebroke/pypackage-template)
|
||||||
|
project template.
|
||||||
|
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta name="generator" content="simple503 version 0.4.0" />
|
||||||
|
<meta name="pypi:repository-version" content="1.0" />
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<title>
|
||||||
|
Links for aiohappyeyeballs
|
||||||
|
</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>
|
||||||
|
Links for aiohappyeyeballs
|
||||||
|
</h1>
|
||||||
|
<a href="/aiohappyeyeballs/aiohappyeyeballs-2.6.1-py3-none-any.whl#sha256=f349ba8f4b75cb25c99c5c2d84e997e485204d2902a9597802b0371f09331fb8" data-requires-python=">=3.9" data-dist-info-metadata="sha256=3525e5849c007e2dfcd1e123028ec14383ff4d56a5f718b4aa4c995a26ccb153">
|
||||||
|
aiohappyeyeballs-2.6.1-py3-none-any.whl
|
||||||
|
</a>
|
||||||
|
<br />
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,262 @@
|
||||||
|
Metadata-Version: 2.4
|
||||||
|
Name: aiohttp
|
||||||
|
Version: 3.13.2
|
||||||
|
Summary: Async http client/server framework (asyncio)
|
||||||
|
Maintainer-email: aiohttp team <team@aiohttp.org>
|
||||||
|
License: Apache-2.0 AND MIT
|
||||||
|
Project-URL: Homepage, https://github.com/aio-libs/aiohttp
|
||||||
|
Project-URL: Chat: Matrix, https://matrix.to/#/#aio-libs:matrix.org
|
||||||
|
Project-URL: Chat: Matrix Space, https://matrix.to/#/#aio-libs-space:matrix.org
|
||||||
|
Project-URL: CI: GitHub Actions, https://github.com/aio-libs/aiohttp/actions?query=workflow%3ACI
|
||||||
|
Project-URL: Coverage: codecov, https://codecov.io/github/aio-libs/aiohttp
|
||||||
|
Project-URL: Docs: Changelog, https://docs.aiohttp.org/en/stable/changes.html
|
||||||
|
Project-URL: Docs: RTD, https://docs.aiohttp.org
|
||||||
|
Project-URL: GitHub: issues, https://github.com/aio-libs/aiohttp/issues
|
||||||
|
Project-URL: GitHub: repo, https://github.com/aio-libs/aiohttp
|
||||||
|
Classifier: Development Status :: 5 - Production/Stable
|
||||||
|
Classifier: Framework :: AsyncIO
|
||||||
|
Classifier: Intended Audience :: Developers
|
||||||
|
Classifier: Operating System :: POSIX
|
||||||
|
Classifier: Operating System :: MacOS :: MacOS X
|
||||||
|
Classifier: Operating System :: Microsoft :: Windows
|
||||||
|
Classifier: Programming Language :: Python
|
||||||
|
Classifier: Programming Language :: Python :: 3
|
||||||
|
Classifier: Programming Language :: Python :: 3.9
|
||||||
|
Classifier: Programming Language :: Python :: 3.10
|
||||||
|
Classifier: Programming Language :: Python :: 3.11
|
||||||
|
Classifier: Programming Language :: Python :: 3.12
|
||||||
|
Classifier: Programming Language :: Python :: 3.13
|
||||||
|
Classifier: Programming Language :: Python :: 3.14
|
||||||
|
Classifier: Topic :: Internet :: WWW/HTTP
|
||||||
|
Requires-Python: >=3.9
|
||||||
|
Description-Content-Type: text/x-rst
|
||||||
|
License-File: LICENSE.txt
|
||||||
|
License-File: vendor/llhttp/LICENSE
|
||||||
|
Requires-Dist: aiohappyeyeballs>=2.5.0
|
||||||
|
Requires-Dist: aiosignal>=1.4.0
|
||||||
|
Requires-Dist: async-timeout<6.0,>=4.0; python_version < "3.11"
|
||||||
|
Requires-Dist: attrs>=17.3.0
|
||||||
|
Requires-Dist: frozenlist>=1.1.1
|
||||||
|
Requires-Dist: multidict<7.0,>=4.5
|
||||||
|
Requires-Dist: propcache>=0.2.0
|
||||||
|
Requires-Dist: yarl<2.0,>=1.17.0
|
||||||
|
Provides-Extra: speedups
|
||||||
|
Requires-Dist: aiodns>=3.3.0; extra == "speedups"
|
||||||
|
Requires-Dist: Brotli; platform_python_implementation == "CPython" and extra == "speedups"
|
||||||
|
Requires-Dist: brotlicffi; platform_python_implementation != "CPython" and extra == "speedups"
|
||||||
|
Requires-Dist: backports.zstd; (platform_python_implementation == "CPython" and python_version < "3.14") and extra == "speedups"
|
||||||
|
Dynamic: license-file
|
||||||
|
|
||||||
|
==================================
|
||||||
|
Async http client/server framework
|
||||||
|
==================================
|
||||||
|
|
||||||
|
.. image:: https://raw.githubusercontent.com/aio-libs/aiohttp/master/docs/aiohttp-plain.svg
|
||||||
|
:height: 64px
|
||||||
|
:width: 64px
|
||||||
|
:alt: aiohttp logo
|
||||||
|
|
||||||
|
|
|
||||||
|
|
||||||
|
.. image:: https://github.com/aio-libs/aiohttp/workflows/CI/badge.svg
|
||||||
|
:target: https://github.com/aio-libs/aiohttp/actions?query=workflow%3ACI
|
||||||
|
:alt: GitHub Actions status for master branch
|
||||||
|
|
||||||
|
.. image:: https://codecov.io/gh/aio-libs/aiohttp/branch/master/graph/badge.svg
|
||||||
|
:target: https://codecov.io/gh/aio-libs/aiohttp
|
||||||
|
:alt: codecov.io status for master branch
|
||||||
|
|
||||||
|
.. image:: https://badge.fury.io/py/aiohttp.svg
|
||||||
|
:target: https://pypi.org/project/aiohttp
|
||||||
|
:alt: Latest PyPI package version
|
||||||
|
|
||||||
|
.. image:: https://img.shields.io/pypi/dm/aiohttp
|
||||||
|
:target: https://pypistats.org/packages/aiohttp
|
||||||
|
:alt: Downloads count
|
||||||
|
|
||||||
|
.. image:: https://readthedocs.org/projects/aiohttp/badge/?version=latest
|
||||||
|
:target: https://docs.aiohttp.org/
|
||||||
|
:alt: Latest Read The Docs
|
||||||
|
|
||||||
|
.. image:: https://img.shields.io/endpoint?url=https://codspeed.io/badge.json
|
||||||
|
:target: https://codspeed.io/aio-libs/aiohttp
|
||||||
|
:alt: Codspeed.io status for aiohttp
|
||||||
|
|
||||||
|
|
||||||
|
Key Features
|
||||||
|
============
|
||||||
|
|
||||||
|
- Supports both client and server side of HTTP protocol.
|
||||||
|
- Supports both client and server Web-Sockets out-of-the-box and avoids
|
||||||
|
Callback Hell.
|
||||||
|
- Provides Web-server with middleware and pluggable routing.
|
||||||
|
|
||||||
|
|
||||||
|
Getting started
|
||||||
|
===============
|
||||||
|
|
||||||
|
Client
|
||||||
|
------
|
||||||
|
|
||||||
|
To get something from the web:
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
|
import aiohttp
|
||||||
|
import asyncio
|
||||||
|
|
||||||
|
async def main():
|
||||||
|
|
||||||
|
async with aiohttp.ClientSession() as session:
|
||||||
|
async with session.get('http://python.org') as response:
|
||||||
|
|
||||||
|
print("Status:", response.status)
|
||||||
|
print("Content-type:", response.headers['content-type'])
|
||||||
|
|
||||||
|
html = await response.text()
|
||||||
|
print("Body:", html[:15], "...")
|
||||||
|
|
||||||
|
asyncio.run(main())
|
||||||
|
|
||||||
|
This prints:
|
||||||
|
|
||||||
|
.. code-block::
|
||||||
|
|
||||||
|
Status: 200
|
||||||
|
Content-type: text/html; charset=utf-8
|
||||||
|
Body: <!doctype html> ...
|
||||||
|
|
||||||
|
Coming from `requests <https://requests.readthedocs.io/>`_ ? Read `why we need so many lines <https://aiohttp.readthedocs.io/en/latest/http_request_lifecycle.html>`_.
|
||||||
|
|
||||||
|
Server
|
||||||
|
------
|
||||||
|
|
||||||
|
An example using a simple server:
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
|
# examples/server_simple.py
|
||||||
|
from aiohttp import web
|
||||||
|
|
||||||
|
async def handle(request):
|
||||||
|
name = request.match_info.get('name', "Anonymous")
|
||||||
|
text = "Hello, " + name
|
||||||
|
return web.Response(text=text)
|
||||||
|
|
||||||
|
async def wshandle(request):
|
||||||
|
ws = web.WebSocketResponse()
|
||||||
|
await ws.prepare(request)
|
||||||
|
|
||||||
|
async for msg in ws:
|
||||||
|
if msg.type == web.WSMsgType.text:
|
||||||
|
await ws.send_str("Hello, {}".format(msg.data))
|
||||||
|
elif msg.type == web.WSMsgType.binary:
|
||||||
|
await ws.send_bytes(msg.data)
|
||||||
|
elif msg.type == web.WSMsgType.close:
|
||||||
|
break
|
||||||
|
|
||||||
|
return ws
|
||||||
|
|
||||||
|
|
||||||
|
app = web.Application()
|
||||||
|
app.add_routes([web.get('/', handle),
|
||||||
|
web.get('/echo', wshandle),
|
||||||
|
web.get('/{name}', handle)])
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
web.run_app(app)
|
||||||
|
|
||||||
|
|
||||||
|
Documentation
|
||||||
|
=============
|
||||||
|
|
||||||
|
https://aiohttp.readthedocs.io/
|
||||||
|
|
||||||
|
|
||||||
|
Demos
|
||||||
|
=====
|
||||||
|
|
||||||
|
https://github.com/aio-libs/aiohttp-demos
|
||||||
|
|
||||||
|
|
||||||
|
External links
|
||||||
|
==============
|
||||||
|
|
||||||
|
* `Third party libraries
|
||||||
|
<http://aiohttp.readthedocs.io/en/latest/third_party.html>`_
|
||||||
|
* `Built with aiohttp
|
||||||
|
<http://aiohttp.readthedocs.io/en/latest/built_with.html>`_
|
||||||
|
* `Powered by aiohttp
|
||||||
|
<http://aiohttp.readthedocs.io/en/latest/powered_by.html>`_
|
||||||
|
|
||||||
|
Feel free to make a Pull Request for adding your link to these pages!
|
||||||
|
|
||||||
|
|
||||||
|
Communication channels
|
||||||
|
======================
|
||||||
|
|
||||||
|
*aio-libs Discussions*: https://github.com/aio-libs/aiohttp/discussions
|
||||||
|
|
||||||
|
*Matrix*: `#aio-libs:matrix.org <https://matrix.to/#/#aio-libs:matrix.org>`_
|
||||||
|
|
||||||
|
We support `Stack Overflow
|
||||||
|
<https://stackoverflow.com/questions/tagged/aiohttp>`_.
|
||||||
|
Please add *aiohttp* tag to your question there.
|
||||||
|
|
||||||
|
Requirements
|
||||||
|
============
|
||||||
|
|
||||||
|
- attrs_
|
||||||
|
- multidict_
|
||||||
|
- yarl_
|
||||||
|
- frozenlist_
|
||||||
|
|
||||||
|
Optionally you may install the aiodns_ library (highly recommended for sake of speed).
|
||||||
|
|
||||||
|
.. _aiodns: https://pypi.python.org/pypi/aiodns
|
||||||
|
.. _attrs: https://github.com/python-attrs/attrs
|
||||||
|
.. _multidict: https://pypi.python.org/pypi/multidict
|
||||||
|
.. _frozenlist: https://pypi.org/project/frozenlist/
|
||||||
|
.. _yarl: https://pypi.python.org/pypi/yarl
|
||||||
|
.. _async-timeout: https://pypi.python.org/pypi/async_timeout
|
||||||
|
|
||||||
|
License
|
||||||
|
=======
|
||||||
|
|
||||||
|
``aiohttp`` is offered under the Apache 2 license.
|
||||||
|
|
||||||
|
|
||||||
|
Keepsafe
|
||||||
|
========
|
||||||
|
|
||||||
|
The aiohttp community would like to thank Keepsafe
|
||||||
|
(https://www.getkeepsafe.com) for its support in the early days of
|
||||||
|
the project.
|
||||||
|
|
||||||
|
|
||||||
|
Source code
|
||||||
|
===========
|
||||||
|
|
||||||
|
The latest developer version is available in a GitHub repository:
|
||||||
|
https://github.com/aio-libs/aiohttp
|
||||||
|
|
||||||
|
Benchmarks
|
||||||
|
==========
|
||||||
|
|
||||||
|
If you are interested in efficiency, the AsyncIO community maintains a
|
||||||
|
list of benchmarks on the official wiki:
|
||||||
|
https://github.com/python/asyncio/wiki/Benchmarks
|
||||||
|
|
||||||
|
--------
|
||||||
|
|
||||||
|
.. image:: https://img.shields.io/matrix/aio-libs:matrix.org?label=Discuss%20on%20Matrix%20at%20%23aio-libs%3Amatrix.org&logo=matrix&server_fqdn=matrix.org&style=flat
|
||||||
|
:target: https://matrix.to/#/%23aio-libs:matrix.org
|
||||||
|
:alt: Matrix Room — #aio-libs:matrix.org
|
||||||
|
|
||||||
|
.. image:: https://img.shields.io/matrix/aio-libs-space:matrix.org?label=Discuss%20on%20Matrix%20at%20%23aio-libs-space%3Amatrix.org&logo=matrix&server_fqdn=matrix.org&style=flat
|
||||||
|
:target: https://matrix.to/#/%23aio-libs-space:matrix.org
|
||||||
|
:alt: Matrix Space — #aio-libs-space:matrix.org
|
||||||
|
|
||||||
|
.. image:: https://insights.linuxfoundation.org/api/badge/health-score?project=aiohttp
|
||||||
|
:target: https://insights.linuxfoundation.org/project/aiohttp
|
||||||
|
:alt: LFX Health Score
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,262 @@
|
||||||
|
Metadata-Version: 2.4
|
||||||
|
Name: aiohttp
|
||||||
|
Version: 3.13.2
|
||||||
|
Summary: Async http client/server framework (asyncio)
|
||||||
|
Maintainer-email: aiohttp team <team@aiohttp.org>
|
||||||
|
License: Apache-2.0 AND MIT
|
||||||
|
Project-URL: Homepage, https://github.com/aio-libs/aiohttp
|
||||||
|
Project-URL: Chat: Matrix, https://matrix.to/#/#aio-libs:matrix.org
|
||||||
|
Project-URL: Chat: Matrix Space, https://matrix.to/#/#aio-libs-space:matrix.org
|
||||||
|
Project-URL: CI: GitHub Actions, https://github.com/aio-libs/aiohttp/actions?query=workflow%3ACI
|
||||||
|
Project-URL: Coverage: codecov, https://codecov.io/github/aio-libs/aiohttp
|
||||||
|
Project-URL: Docs: Changelog, https://docs.aiohttp.org/en/stable/changes.html
|
||||||
|
Project-URL: Docs: RTD, https://docs.aiohttp.org
|
||||||
|
Project-URL: GitHub: issues, https://github.com/aio-libs/aiohttp/issues
|
||||||
|
Project-URL: GitHub: repo, https://github.com/aio-libs/aiohttp
|
||||||
|
Classifier: Development Status :: 5 - Production/Stable
|
||||||
|
Classifier: Framework :: AsyncIO
|
||||||
|
Classifier: Intended Audience :: Developers
|
||||||
|
Classifier: Operating System :: POSIX
|
||||||
|
Classifier: Operating System :: MacOS :: MacOS X
|
||||||
|
Classifier: Operating System :: Microsoft :: Windows
|
||||||
|
Classifier: Programming Language :: Python
|
||||||
|
Classifier: Programming Language :: Python :: 3
|
||||||
|
Classifier: Programming Language :: Python :: 3.9
|
||||||
|
Classifier: Programming Language :: Python :: 3.10
|
||||||
|
Classifier: Programming Language :: Python :: 3.11
|
||||||
|
Classifier: Programming Language :: Python :: 3.12
|
||||||
|
Classifier: Programming Language :: Python :: 3.13
|
||||||
|
Classifier: Programming Language :: Python :: 3.14
|
||||||
|
Classifier: Topic :: Internet :: WWW/HTTP
|
||||||
|
Requires-Python: >=3.9
|
||||||
|
Description-Content-Type: text/x-rst
|
||||||
|
License-File: LICENSE.txt
|
||||||
|
License-File: vendor/llhttp/LICENSE
|
||||||
|
Requires-Dist: aiohappyeyeballs>=2.5.0
|
||||||
|
Requires-Dist: aiosignal>=1.4.0
|
||||||
|
Requires-Dist: async-timeout<6.0,>=4.0; python_version < "3.11"
|
||||||
|
Requires-Dist: attrs>=17.3.0
|
||||||
|
Requires-Dist: frozenlist>=1.1.1
|
||||||
|
Requires-Dist: multidict<7.0,>=4.5
|
||||||
|
Requires-Dist: propcache>=0.2.0
|
||||||
|
Requires-Dist: yarl<2.0,>=1.17.0
|
||||||
|
Provides-Extra: speedups
|
||||||
|
Requires-Dist: aiodns>=3.3.0; extra == "speedups"
|
||||||
|
Requires-Dist: Brotli; platform_python_implementation == "CPython" and extra == "speedups"
|
||||||
|
Requires-Dist: brotlicffi; platform_python_implementation != "CPython" and extra == "speedups"
|
||||||
|
Requires-Dist: backports.zstd; (platform_python_implementation == "CPython" and python_version < "3.14") and extra == "speedups"
|
||||||
|
Dynamic: license-file
|
||||||
|
|
||||||
|
==================================
|
||||||
|
Async http client/server framework
|
||||||
|
==================================
|
||||||
|
|
||||||
|
.. image:: https://raw.githubusercontent.com/aio-libs/aiohttp/master/docs/aiohttp-plain.svg
|
||||||
|
:height: 64px
|
||||||
|
:width: 64px
|
||||||
|
:alt: aiohttp logo
|
||||||
|
|
||||||
|
|
|
||||||
|
|
||||||
|
.. image:: https://github.com/aio-libs/aiohttp/workflows/CI/badge.svg
|
||||||
|
:target: https://github.com/aio-libs/aiohttp/actions?query=workflow%3ACI
|
||||||
|
:alt: GitHub Actions status for master branch
|
||||||
|
|
||||||
|
.. image:: https://codecov.io/gh/aio-libs/aiohttp/branch/master/graph/badge.svg
|
||||||
|
:target: https://codecov.io/gh/aio-libs/aiohttp
|
||||||
|
:alt: codecov.io status for master branch
|
||||||
|
|
||||||
|
.. image:: https://badge.fury.io/py/aiohttp.svg
|
||||||
|
:target: https://pypi.org/project/aiohttp
|
||||||
|
:alt: Latest PyPI package version
|
||||||
|
|
||||||
|
.. image:: https://img.shields.io/pypi/dm/aiohttp
|
||||||
|
:target: https://pypistats.org/packages/aiohttp
|
||||||
|
:alt: Downloads count
|
||||||
|
|
||||||
|
.. image:: https://readthedocs.org/projects/aiohttp/badge/?version=latest
|
||||||
|
:target: https://docs.aiohttp.org/
|
||||||
|
:alt: Latest Read The Docs
|
||||||
|
|
||||||
|
.. image:: https://img.shields.io/endpoint?url=https://codspeed.io/badge.json
|
||||||
|
:target: https://codspeed.io/aio-libs/aiohttp
|
||||||
|
:alt: Codspeed.io status for aiohttp
|
||||||
|
|
||||||
|
|
||||||
|
Key Features
|
||||||
|
============
|
||||||
|
|
||||||
|
- Supports both client and server side of HTTP protocol.
|
||||||
|
- Supports both client and server Web-Sockets out-of-the-box and avoids
|
||||||
|
Callback Hell.
|
||||||
|
- Provides Web-server with middleware and pluggable routing.
|
||||||
|
|
||||||
|
|
||||||
|
Getting started
|
||||||
|
===============
|
||||||
|
|
||||||
|
Client
|
||||||
|
------
|
||||||
|
|
||||||
|
To get something from the web:
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
|
import aiohttp
|
||||||
|
import asyncio
|
||||||
|
|
||||||
|
async def main():
|
||||||
|
|
||||||
|
async with aiohttp.ClientSession() as session:
|
||||||
|
async with session.get('http://python.org') as response:
|
||||||
|
|
||||||
|
print("Status:", response.status)
|
||||||
|
print("Content-type:", response.headers['content-type'])
|
||||||
|
|
||||||
|
html = await response.text()
|
||||||
|
print("Body:", html[:15], "...")
|
||||||
|
|
||||||
|
asyncio.run(main())
|
||||||
|
|
||||||
|
This prints:
|
||||||
|
|
||||||
|
.. code-block::
|
||||||
|
|
||||||
|
Status: 200
|
||||||
|
Content-type: text/html; charset=utf-8
|
||||||
|
Body: <!doctype html> ...
|
||||||
|
|
||||||
|
Coming from `requests <https://requests.readthedocs.io/>`_ ? Read `why we need so many lines <https://aiohttp.readthedocs.io/en/latest/http_request_lifecycle.html>`_.
|
||||||
|
|
||||||
|
Server
|
||||||
|
------
|
||||||
|
|
||||||
|
An example using a simple server:
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
|
# examples/server_simple.py
|
||||||
|
from aiohttp import web
|
||||||
|
|
||||||
|
async def handle(request):
|
||||||
|
name = request.match_info.get('name', "Anonymous")
|
||||||
|
text = "Hello, " + name
|
||||||
|
return web.Response(text=text)
|
||||||
|
|
||||||
|
async def wshandle(request):
|
||||||
|
ws = web.WebSocketResponse()
|
||||||
|
await ws.prepare(request)
|
||||||
|
|
||||||
|
async for msg in ws:
|
||||||
|
if msg.type == web.WSMsgType.text:
|
||||||
|
await ws.send_str("Hello, {}".format(msg.data))
|
||||||
|
elif msg.type == web.WSMsgType.binary:
|
||||||
|
await ws.send_bytes(msg.data)
|
||||||
|
elif msg.type == web.WSMsgType.close:
|
||||||
|
break
|
||||||
|
|
||||||
|
return ws
|
||||||
|
|
||||||
|
|
||||||
|
app = web.Application()
|
||||||
|
app.add_routes([web.get('/', handle),
|
||||||
|
web.get('/echo', wshandle),
|
||||||
|
web.get('/{name}', handle)])
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
web.run_app(app)
|
||||||
|
|
||||||
|
|
||||||
|
Documentation
|
||||||
|
=============
|
||||||
|
|
||||||
|
https://aiohttp.readthedocs.io/
|
||||||
|
|
||||||
|
|
||||||
|
Demos
|
||||||
|
=====
|
||||||
|
|
||||||
|
https://github.com/aio-libs/aiohttp-demos
|
||||||
|
|
||||||
|
|
||||||
|
External links
|
||||||
|
==============
|
||||||
|
|
||||||
|
* `Third party libraries
|
||||||
|
<http://aiohttp.readthedocs.io/en/latest/third_party.html>`_
|
||||||
|
* `Built with aiohttp
|
||||||
|
<http://aiohttp.readthedocs.io/en/latest/built_with.html>`_
|
||||||
|
* `Powered by aiohttp
|
||||||
|
<http://aiohttp.readthedocs.io/en/latest/powered_by.html>`_
|
||||||
|
|
||||||
|
Feel free to make a Pull Request for adding your link to these pages!
|
||||||
|
|
||||||
|
|
||||||
|
Communication channels
|
||||||
|
======================
|
||||||
|
|
||||||
|
*aio-libs Discussions*: https://github.com/aio-libs/aiohttp/discussions
|
||||||
|
|
||||||
|
*Matrix*: `#aio-libs:matrix.org <https://matrix.to/#/#aio-libs:matrix.org>`_
|
||||||
|
|
||||||
|
We support `Stack Overflow
|
||||||
|
<https://stackoverflow.com/questions/tagged/aiohttp>`_.
|
||||||
|
Please add *aiohttp* tag to your question there.
|
||||||
|
|
||||||
|
Requirements
|
||||||
|
============
|
||||||
|
|
||||||
|
- attrs_
|
||||||
|
- multidict_
|
||||||
|
- yarl_
|
||||||
|
- frozenlist_
|
||||||
|
|
||||||
|
Optionally you may install the aiodns_ library (highly recommended for sake of speed).
|
||||||
|
|
||||||
|
.. _aiodns: https://pypi.python.org/pypi/aiodns
|
||||||
|
.. _attrs: https://github.com/python-attrs/attrs
|
||||||
|
.. _multidict: https://pypi.python.org/pypi/multidict
|
||||||
|
.. _frozenlist: https://pypi.org/project/frozenlist/
|
||||||
|
.. _yarl: https://pypi.python.org/pypi/yarl
|
||||||
|
.. _async-timeout: https://pypi.python.org/pypi/async_timeout
|
||||||
|
|
||||||
|
License
|
||||||
|
=======
|
||||||
|
|
||||||
|
``aiohttp`` is offered under the Apache 2 license.
|
||||||
|
|
||||||
|
|
||||||
|
Keepsafe
|
||||||
|
========
|
||||||
|
|
||||||
|
The aiohttp community would like to thank Keepsafe
|
||||||
|
(https://www.getkeepsafe.com) for its support in the early days of
|
||||||
|
the project.
|
||||||
|
|
||||||
|
|
||||||
|
Source code
|
||||||
|
===========
|
||||||
|
|
||||||
|
The latest developer version is available in a GitHub repository:
|
||||||
|
https://github.com/aio-libs/aiohttp
|
||||||
|
|
||||||
|
Benchmarks
|
||||||
|
==========
|
||||||
|
|
||||||
|
If you are interested in efficiency, the AsyncIO community maintains a
|
||||||
|
list of benchmarks on the official wiki:
|
||||||
|
https://github.com/python/asyncio/wiki/Benchmarks
|
||||||
|
|
||||||
|
--------
|
||||||
|
|
||||||
|
.. image:: https://img.shields.io/matrix/aio-libs:matrix.org?label=Discuss%20on%20Matrix%20at%20%23aio-libs%3Amatrix.org&logo=matrix&server_fqdn=matrix.org&style=flat
|
||||||
|
:target: https://matrix.to/#/%23aio-libs:matrix.org
|
||||||
|
:alt: Matrix Room — #aio-libs:matrix.org
|
||||||
|
|
||||||
|
.. image:: https://img.shields.io/matrix/aio-libs-space:matrix.org?label=Discuss%20on%20Matrix%20at%20%23aio-libs-space%3Amatrix.org&logo=matrix&server_fqdn=matrix.org&style=flat
|
||||||
|
:target: https://matrix.to/#/%23aio-libs-space:matrix.org
|
||||||
|
:alt: Matrix Space — #aio-libs-space:matrix.org
|
||||||
|
|
||||||
|
.. image:: https://insights.linuxfoundation.org/api/badge/health-score?project=aiohttp
|
||||||
|
:target: https://insights.linuxfoundation.org/project/aiohttp
|
||||||
|
:alt: LFX Health Score
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,262 @@
|
||||||
|
Metadata-Version: 2.4
|
||||||
|
Name: aiohttp
|
||||||
|
Version: 3.13.2
|
||||||
|
Summary: Async http client/server framework (asyncio)
|
||||||
|
Maintainer-email: aiohttp team <team@aiohttp.org>
|
||||||
|
License: Apache-2.0 AND MIT
|
||||||
|
Project-URL: Homepage, https://github.com/aio-libs/aiohttp
|
||||||
|
Project-URL: Chat: Matrix, https://matrix.to/#/#aio-libs:matrix.org
|
||||||
|
Project-URL: Chat: Matrix Space, https://matrix.to/#/#aio-libs-space:matrix.org
|
||||||
|
Project-URL: CI: GitHub Actions, https://github.com/aio-libs/aiohttp/actions?query=workflow%3ACI
|
||||||
|
Project-URL: Coverage: codecov, https://codecov.io/github/aio-libs/aiohttp
|
||||||
|
Project-URL: Docs: Changelog, https://docs.aiohttp.org/en/stable/changes.html
|
||||||
|
Project-URL: Docs: RTD, https://docs.aiohttp.org
|
||||||
|
Project-URL: GitHub: issues, https://github.com/aio-libs/aiohttp/issues
|
||||||
|
Project-URL: GitHub: repo, https://github.com/aio-libs/aiohttp
|
||||||
|
Classifier: Development Status :: 5 - Production/Stable
|
||||||
|
Classifier: Framework :: AsyncIO
|
||||||
|
Classifier: Intended Audience :: Developers
|
||||||
|
Classifier: Operating System :: POSIX
|
||||||
|
Classifier: Operating System :: MacOS :: MacOS X
|
||||||
|
Classifier: Operating System :: Microsoft :: Windows
|
||||||
|
Classifier: Programming Language :: Python
|
||||||
|
Classifier: Programming Language :: Python :: 3
|
||||||
|
Classifier: Programming Language :: Python :: 3.9
|
||||||
|
Classifier: Programming Language :: Python :: 3.10
|
||||||
|
Classifier: Programming Language :: Python :: 3.11
|
||||||
|
Classifier: Programming Language :: Python :: 3.12
|
||||||
|
Classifier: Programming Language :: Python :: 3.13
|
||||||
|
Classifier: Programming Language :: Python :: 3.14
|
||||||
|
Classifier: Topic :: Internet :: WWW/HTTP
|
||||||
|
Requires-Python: >=3.9
|
||||||
|
Description-Content-Type: text/x-rst
|
||||||
|
License-File: LICENSE.txt
|
||||||
|
License-File: vendor/llhttp/LICENSE
|
||||||
|
Requires-Dist: aiohappyeyeballs>=2.5.0
|
||||||
|
Requires-Dist: aiosignal>=1.4.0
|
||||||
|
Requires-Dist: async-timeout<6.0,>=4.0; python_version < "3.11"
|
||||||
|
Requires-Dist: attrs>=17.3.0
|
||||||
|
Requires-Dist: frozenlist>=1.1.1
|
||||||
|
Requires-Dist: multidict<7.0,>=4.5
|
||||||
|
Requires-Dist: propcache>=0.2.0
|
||||||
|
Requires-Dist: yarl<2.0,>=1.17.0
|
||||||
|
Provides-Extra: speedups
|
||||||
|
Requires-Dist: aiodns>=3.3.0; extra == "speedups"
|
||||||
|
Requires-Dist: Brotli; platform_python_implementation == "CPython" and extra == "speedups"
|
||||||
|
Requires-Dist: brotlicffi; platform_python_implementation != "CPython" and extra == "speedups"
|
||||||
|
Requires-Dist: backports.zstd; (platform_python_implementation == "CPython" and python_version < "3.14") and extra == "speedups"
|
||||||
|
Dynamic: license-file
|
||||||
|
|
||||||
|
==================================
|
||||||
|
Async http client/server framework
|
||||||
|
==================================
|
||||||
|
|
||||||
|
.. image:: https://raw.githubusercontent.com/aio-libs/aiohttp/master/docs/aiohttp-plain.svg
|
||||||
|
:height: 64px
|
||||||
|
:width: 64px
|
||||||
|
:alt: aiohttp logo
|
||||||
|
|
||||||
|
|
|
||||||
|
|
||||||
|
.. image:: https://github.com/aio-libs/aiohttp/workflows/CI/badge.svg
|
||||||
|
:target: https://github.com/aio-libs/aiohttp/actions?query=workflow%3ACI
|
||||||
|
:alt: GitHub Actions status for master branch
|
||||||
|
|
||||||
|
.. image:: https://codecov.io/gh/aio-libs/aiohttp/branch/master/graph/badge.svg
|
||||||
|
:target: https://codecov.io/gh/aio-libs/aiohttp
|
||||||
|
:alt: codecov.io status for master branch
|
||||||
|
|
||||||
|
.. image:: https://badge.fury.io/py/aiohttp.svg
|
||||||
|
:target: https://pypi.org/project/aiohttp
|
||||||
|
:alt: Latest PyPI package version
|
||||||
|
|
||||||
|
.. image:: https://img.shields.io/pypi/dm/aiohttp
|
||||||
|
:target: https://pypistats.org/packages/aiohttp
|
||||||
|
:alt: Downloads count
|
||||||
|
|
||||||
|
.. image:: https://readthedocs.org/projects/aiohttp/badge/?version=latest
|
||||||
|
:target: https://docs.aiohttp.org/
|
||||||
|
:alt: Latest Read The Docs
|
||||||
|
|
||||||
|
.. image:: https://img.shields.io/endpoint?url=https://codspeed.io/badge.json
|
||||||
|
:target: https://codspeed.io/aio-libs/aiohttp
|
||||||
|
:alt: Codspeed.io status for aiohttp
|
||||||
|
|
||||||
|
|
||||||
|
Key Features
|
||||||
|
============
|
||||||
|
|
||||||
|
- Supports both client and server side of HTTP protocol.
|
||||||
|
- Supports both client and server Web-Sockets out-of-the-box and avoids
|
||||||
|
Callback Hell.
|
||||||
|
- Provides Web-server with middleware and pluggable routing.
|
||||||
|
|
||||||
|
|
||||||
|
Getting started
|
||||||
|
===============
|
||||||
|
|
||||||
|
Client
|
||||||
|
------
|
||||||
|
|
||||||
|
To get something from the web:
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
|
import aiohttp
|
||||||
|
import asyncio
|
||||||
|
|
||||||
|
async def main():
|
||||||
|
|
||||||
|
async with aiohttp.ClientSession() as session:
|
||||||
|
async with session.get('http://python.org') as response:
|
||||||
|
|
||||||
|
print("Status:", response.status)
|
||||||
|
print("Content-type:", response.headers['content-type'])
|
||||||
|
|
||||||
|
html = await response.text()
|
||||||
|
print("Body:", html[:15], "...")
|
||||||
|
|
||||||
|
asyncio.run(main())
|
||||||
|
|
||||||
|
This prints:
|
||||||
|
|
||||||
|
.. code-block::
|
||||||
|
|
||||||
|
Status: 200
|
||||||
|
Content-type: text/html; charset=utf-8
|
||||||
|
Body: <!doctype html> ...
|
||||||
|
|
||||||
|
Coming from `requests <https://requests.readthedocs.io/>`_ ? Read `why we need so many lines <https://aiohttp.readthedocs.io/en/latest/http_request_lifecycle.html>`_.
|
||||||
|
|
||||||
|
Server
|
||||||
|
------
|
||||||
|
|
||||||
|
An example using a simple server:
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
|
# examples/server_simple.py
|
||||||
|
from aiohttp import web
|
||||||
|
|
||||||
|
async def handle(request):
|
||||||
|
name = request.match_info.get('name', "Anonymous")
|
||||||
|
text = "Hello, " + name
|
||||||
|
return web.Response(text=text)
|
||||||
|
|
||||||
|
async def wshandle(request):
|
||||||
|
ws = web.WebSocketResponse()
|
||||||
|
await ws.prepare(request)
|
||||||
|
|
||||||
|
async for msg in ws:
|
||||||
|
if msg.type == web.WSMsgType.text:
|
||||||
|
await ws.send_str("Hello, {}".format(msg.data))
|
||||||
|
elif msg.type == web.WSMsgType.binary:
|
||||||
|
await ws.send_bytes(msg.data)
|
||||||
|
elif msg.type == web.WSMsgType.close:
|
||||||
|
break
|
||||||
|
|
||||||
|
return ws
|
||||||
|
|
||||||
|
|
||||||
|
app = web.Application()
|
||||||
|
app.add_routes([web.get('/', handle),
|
||||||
|
web.get('/echo', wshandle),
|
||||||
|
web.get('/{name}', handle)])
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
web.run_app(app)
|
||||||
|
|
||||||
|
|
||||||
|
Documentation
|
||||||
|
=============
|
||||||
|
|
||||||
|
https://aiohttp.readthedocs.io/
|
||||||
|
|
||||||
|
|
||||||
|
Demos
|
||||||
|
=====
|
||||||
|
|
||||||
|
https://github.com/aio-libs/aiohttp-demos
|
||||||
|
|
||||||
|
|
||||||
|
External links
|
||||||
|
==============
|
||||||
|
|
||||||
|
* `Third party libraries
|
||||||
|
<http://aiohttp.readthedocs.io/en/latest/third_party.html>`_
|
||||||
|
* `Built with aiohttp
|
||||||
|
<http://aiohttp.readthedocs.io/en/latest/built_with.html>`_
|
||||||
|
* `Powered by aiohttp
|
||||||
|
<http://aiohttp.readthedocs.io/en/latest/powered_by.html>`_
|
||||||
|
|
||||||
|
Feel free to make a Pull Request for adding your link to these pages!
|
||||||
|
|
||||||
|
|
||||||
|
Communication channels
|
||||||
|
======================
|
||||||
|
|
||||||
|
*aio-libs Discussions*: https://github.com/aio-libs/aiohttp/discussions
|
||||||
|
|
||||||
|
*Matrix*: `#aio-libs:matrix.org <https://matrix.to/#/#aio-libs:matrix.org>`_
|
||||||
|
|
||||||
|
We support `Stack Overflow
|
||||||
|
<https://stackoverflow.com/questions/tagged/aiohttp>`_.
|
||||||
|
Please add *aiohttp* tag to your question there.
|
||||||
|
|
||||||
|
Requirements
|
||||||
|
============
|
||||||
|
|
||||||
|
- attrs_
|
||||||
|
- multidict_
|
||||||
|
- yarl_
|
||||||
|
- frozenlist_
|
||||||
|
|
||||||
|
Optionally you may install the aiodns_ library (highly recommended for sake of speed).
|
||||||
|
|
||||||
|
.. _aiodns: https://pypi.python.org/pypi/aiodns
|
||||||
|
.. _attrs: https://github.com/python-attrs/attrs
|
||||||
|
.. _multidict: https://pypi.python.org/pypi/multidict
|
||||||
|
.. _frozenlist: https://pypi.org/project/frozenlist/
|
||||||
|
.. _yarl: https://pypi.python.org/pypi/yarl
|
||||||
|
.. _async-timeout: https://pypi.python.org/pypi/async_timeout
|
||||||
|
|
||||||
|
License
|
||||||
|
=======
|
||||||
|
|
||||||
|
``aiohttp`` is offered under the Apache 2 license.
|
||||||
|
|
||||||
|
|
||||||
|
Keepsafe
|
||||||
|
========
|
||||||
|
|
||||||
|
The aiohttp community would like to thank Keepsafe
|
||||||
|
(https://www.getkeepsafe.com) for its support in the early days of
|
||||||
|
the project.
|
||||||
|
|
||||||
|
|
||||||
|
Source code
|
||||||
|
===========
|
||||||
|
|
||||||
|
The latest developer version is available in a GitHub repository:
|
||||||
|
https://github.com/aio-libs/aiohttp
|
||||||
|
|
||||||
|
Benchmarks
|
||||||
|
==========
|
||||||
|
|
||||||
|
If you are interested in efficiency, the AsyncIO community maintains a
|
||||||
|
list of benchmarks on the official wiki:
|
||||||
|
https://github.com/python/asyncio/wiki/Benchmarks
|
||||||
|
|
||||||
|
--------
|
||||||
|
|
||||||
|
.. image:: https://img.shields.io/matrix/aio-libs:matrix.org?label=Discuss%20on%20Matrix%20at%20%23aio-libs%3Amatrix.org&logo=matrix&server_fqdn=matrix.org&style=flat
|
||||||
|
:target: https://matrix.to/#/%23aio-libs:matrix.org
|
||||||
|
:alt: Matrix Room — #aio-libs:matrix.org
|
||||||
|
|
||||||
|
.. image:: https://img.shields.io/matrix/aio-libs-space:matrix.org?label=Discuss%20on%20Matrix%20at%20%23aio-libs-space%3Amatrix.org&logo=matrix&server_fqdn=matrix.org&style=flat
|
||||||
|
:target: https://matrix.to/#/%23aio-libs-space:matrix.org
|
||||||
|
:alt: Matrix Space — #aio-libs-space:matrix.org
|
||||||
|
|
||||||
|
.. image:: https://insights.linuxfoundation.org/api/badge/health-score?project=aiohttp
|
||||||
|
:target: https://insights.linuxfoundation.org/project/aiohttp
|
||||||
|
:alt: LFX Health Score
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,262 @@
|
||||||
|
Metadata-Version: 2.4
|
||||||
|
Name: aiohttp
|
||||||
|
Version: 3.13.2
|
||||||
|
Summary: Async http client/server framework (asyncio)
|
||||||
|
Maintainer-email: aiohttp team <team@aiohttp.org>
|
||||||
|
License: Apache-2.0 AND MIT
|
||||||
|
Project-URL: Homepage, https://github.com/aio-libs/aiohttp
|
||||||
|
Project-URL: Chat: Matrix, https://matrix.to/#/#aio-libs:matrix.org
|
||||||
|
Project-URL: Chat: Matrix Space, https://matrix.to/#/#aio-libs-space:matrix.org
|
||||||
|
Project-URL: CI: GitHub Actions, https://github.com/aio-libs/aiohttp/actions?query=workflow%3ACI
|
||||||
|
Project-URL: Coverage: codecov, https://codecov.io/github/aio-libs/aiohttp
|
||||||
|
Project-URL: Docs: Changelog, https://docs.aiohttp.org/en/stable/changes.html
|
||||||
|
Project-URL: Docs: RTD, https://docs.aiohttp.org
|
||||||
|
Project-URL: GitHub: issues, https://github.com/aio-libs/aiohttp/issues
|
||||||
|
Project-URL: GitHub: repo, https://github.com/aio-libs/aiohttp
|
||||||
|
Classifier: Development Status :: 5 - Production/Stable
|
||||||
|
Classifier: Framework :: AsyncIO
|
||||||
|
Classifier: Intended Audience :: Developers
|
||||||
|
Classifier: Operating System :: POSIX
|
||||||
|
Classifier: Operating System :: MacOS :: MacOS X
|
||||||
|
Classifier: Operating System :: Microsoft :: Windows
|
||||||
|
Classifier: Programming Language :: Python
|
||||||
|
Classifier: Programming Language :: Python :: 3
|
||||||
|
Classifier: Programming Language :: Python :: 3.9
|
||||||
|
Classifier: Programming Language :: Python :: 3.10
|
||||||
|
Classifier: Programming Language :: Python :: 3.11
|
||||||
|
Classifier: Programming Language :: Python :: 3.12
|
||||||
|
Classifier: Programming Language :: Python :: 3.13
|
||||||
|
Classifier: Programming Language :: Python :: 3.14
|
||||||
|
Classifier: Topic :: Internet :: WWW/HTTP
|
||||||
|
Requires-Python: >=3.9
|
||||||
|
Description-Content-Type: text/x-rst
|
||||||
|
License-File: LICENSE.txt
|
||||||
|
License-File: vendor/llhttp/LICENSE
|
||||||
|
Requires-Dist: aiohappyeyeballs>=2.5.0
|
||||||
|
Requires-Dist: aiosignal>=1.4.0
|
||||||
|
Requires-Dist: async-timeout<6.0,>=4.0; python_version < "3.11"
|
||||||
|
Requires-Dist: attrs>=17.3.0
|
||||||
|
Requires-Dist: frozenlist>=1.1.1
|
||||||
|
Requires-Dist: multidict<7.0,>=4.5
|
||||||
|
Requires-Dist: propcache>=0.2.0
|
||||||
|
Requires-Dist: yarl<2.0,>=1.17.0
|
||||||
|
Provides-Extra: speedups
|
||||||
|
Requires-Dist: aiodns>=3.3.0; extra == "speedups"
|
||||||
|
Requires-Dist: Brotli; platform_python_implementation == "CPython" and extra == "speedups"
|
||||||
|
Requires-Dist: brotlicffi; platform_python_implementation != "CPython" and extra == "speedups"
|
||||||
|
Requires-Dist: backports.zstd; (platform_python_implementation == "CPython" and python_version < "3.14") and extra == "speedups"
|
||||||
|
Dynamic: license-file
|
||||||
|
|
||||||
|
==================================
|
||||||
|
Async http client/server framework
|
||||||
|
==================================
|
||||||
|
|
||||||
|
.. image:: https://raw.githubusercontent.com/aio-libs/aiohttp/master/docs/aiohttp-plain.svg
|
||||||
|
:height: 64px
|
||||||
|
:width: 64px
|
||||||
|
:alt: aiohttp logo
|
||||||
|
|
||||||
|
|
|
||||||
|
|
||||||
|
.. image:: https://github.com/aio-libs/aiohttp/workflows/CI/badge.svg
|
||||||
|
:target: https://github.com/aio-libs/aiohttp/actions?query=workflow%3ACI
|
||||||
|
:alt: GitHub Actions status for master branch
|
||||||
|
|
||||||
|
.. image:: https://codecov.io/gh/aio-libs/aiohttp/branch/master/graph/badge.svg
|
||||||
|
:target: https://codecov.io/gh/aio-libs/aiohttp
|
||||||
|
:alt: codecov.io status for master branch
|
||||||
|
|
||||||
|
.. image:: https://badge.fury.io/py/aiohttp.svg
|
||||||
|
:target: https://pypi.org/project/aiohttp
|
||||||
|
:alt: Latest PyPI package version
|
||||||
|
|
||||||
|
.. image:: https://img.shields.io/pypi/dm/aiohttp
|
||||||
|
:target: https://pypistats.org/packages/aiohttp
|
||||||
|
:alt: Downloads count
|
||||||
|
|
||||||
|
.. image:: https://readthedocs.org/projects/aiohttp/badge/?version=latest
|
||||||
|
:target: https://docs.aiohttp.org/
|
||||||
|
:alt: Latest Read The Docs
|
||||||
|
|
||||||
|
.. image:: https://img.shields.io/endpoint?url=https://codspeed.io/badge.json
|
||||||
|
:target: https://codspeed.io/aio-libs/aiohttp
|
||||||
|
:alt: Codspeed.io status for aiohttp
|
||||||
|
|
||||||
|
|
||||||
|
Key Features
|
||||||
|
============
|
||||||
|
|
||||||
|
- Supports both client and server side of HTTP protocol.
|
||||||
|
- Supports both client and server Web-Sockets out-of-the-box and avoids
|
||||||
|
Callback Hell.
|
||||||
|
- Provides Web-server with middleware and pluggable routing.
|
||||||
|
|
||||||
|
|
||||||
|
Getting started
|
||||||
|
===============
|
||||||
|
|
||||||
|
Client
|
||||||
|
------
|
||||||
|
|
||||||
|
To get something from the web:
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
|
import aiohttp
|
||||||
|
import asyncio
|
||||||
|
|
||||||
|
async def main():
|
||||||
|
|
||||||
|
async with aiohttp.ClientSession() as session:
|
||||||
|
async with session.get('http://python.org') as response:
|
||||||
|
|
||||||
|
print("Status:", response.status)
|
||||||
|
print("Content-type:", response.headers['content-type'])
|
||||||
|
|
||||||
|
html = await response.text()
|
||||||
|
print("Body:", html[:15], "...")
|
||||||
|
|
||||||
|
asyncio.run(main())
|
||||||
|
|
||||||
|
This prints:
|
||||||
|
|
||||||
|
.. code-block::
|
||||||
|
|
||||||
|
Status: 200
|
||||||
|
Content-type: text/html; charset=utf-8
|
||||||
|
Body: <!doctype html> ...
|
||||||
|
|
||||||
|
Coming from `requests <https://requests.readthedocs.io/>`_ ? Read `why we need so many lines <https://aiohttp.readthedocs.io/en/latest/http_request_lifecycle.html>`_.
|
||||||
|
|
||||||
|
Server
|
||||||
|
------
|
||||||
|
|
||||||
|
An example using a simple server:
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
|
# examples/server_simple.py
|
||||||
|
from aiohttp import web
|
||||||
|
|
||||||
|
async def handle(request):
|
||||||
|
name = request.match_info.get('name', "Anonymous")
|
||||||
|
text = "Hello, " + name
|
||||||
|
return web.Response(text=text)
|
||||||
|
|
||||||
|
async def wshandle(request):
|
||||||
|
ws = web.WebSocketResponse()
|
||||||
|
await ws.prepare(request)
|
||||||
|
|
||||||
|
async for msg in ws:
|
||||||
|
if msg.type == web.WSMsgType.text:
|
||||||
|
await ws.send_str("Hello, {}".format(msg.data))
|
||||||
|
elif msg.type == web.WSMsgType.binary:
|
||||||
|
await ws.send_bytes(msg.data)
|
||||||
|
elif msg.type == web.WSMsgType.close:
|
||||||
|
break
|
||||||
|
|
||||||
|
return ws
|
||||||
|
|
||||||
|
|
||||||
|
app = web.Application()
|
||||||
|
app.add_routes([web.get('/', handle),
|
||||||
|
web.get('/echo', wshandle),
|
||||||
|
web.get('/{name}', handle)])
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
web.run_app(app)
|
||||||
|
|
||||||
|
|
||||||
|
Documentation
|
||||||
|
=============
|
||||||
|
|
||||||
|
https://aiohttp.readthedocs.io/
|
||||||
|
|
||||||
|
|
||||||
|
Demos
|
||||||
|
=====
|
||||||
|
|
||||||
|
https://github.com/aio-libs/aiohttp-demos
|
||||||
|
|
||||||
|
|
||||||
|
External links
|
||||||
|
==============
|
||||||
|
|
||||||
|
* `Third party libraries
|
||||||
|
<http://aiohttp.readthedocs.io/en/latest/third_party.html>`_
|
||||||
|
* `Built with aiohttp
|
||||||
|
<http://aiohttp.readthedocs.io/en/latest/built_with.html>`_
|
||||||
|
* `Powered by aiohttp
|
||||||
|
<http://aiohttp.readthedocs.io/en/latest/powered_by.html>`_
|
||||||
|
|
||||||
|
Feel free to make a Pull Request for adding your link to these pages!
|
||||||
|
|
||||||
|
|
||||||
|
Communication channels
|
||||||
|
======================
|
||||||
|
|
||||||
|
*aio-libs Discussions*: https://github.com/aio-libs/aiohttp/discussions
|
||||||
|
|
||||||
|
*Matrix*: `#aio-libs:matrix.org <https://matrix.to/#/#aio-libs:matrix.org>`_
|
||||||
|
|
||||||
|
We support `Stack Overflow
|
||||||
|
<https://stackoverflow.com/questions/tagged/aiohttp>`_.
|
||||||
|
Please add *aiohttp* tag to your question there.
|
||||||
|
|
||||||
|
Requirements
|
||||||
|
============
|
||||||
|
|
||||||
|
- attrs_
|
||||||
|
- multidict_
|
||||||
|
- yarl_
|
||||||
|
- frozenlist_
|
||||||
|
|
||||||
|
Optionally you may install the aiodns_ library (highly recommended for sake of speed).
|
||||||
|
|
||||||
|
.. _aiodns: https://pypi.python.org/pypi/aiodns
|
||||||
|
.. _attrs: https://github.com/python-attrs/attrs
|
||||||
|
.. _multidict: https://pypi.python.org/pypi/multidict
|
||||||
|
.. _frozenlist: https://pypi.org/project/frozenlist/
|
||||||
|
.. _yarl: https://pypi.python.org/pypi/yarl
|
||||||
|
.. _async-timeout: https://pypi.python.org/pypi/async_timeout
|
||||||
|
|
||||||
|
License
|
||||||
|
=======
|
||||||
|
|
||||||
|
``aiohttp`` is offered under the Apache 2 license.
|
||||||
|
|
||||||
|
|
||||||
|
Keepsafe
|
||||||
|
========
|
||||||
|
|
||||||
|
The aiohttp community would like to thank Keepsafe
|
||||||
|
(https://www.getkeepsafe.com) for its support in the early days of
|
||||||
|
the project.
|
||||||
|
|
||||||
|
|
||||||
|
Source code
|
||||||
|
===========
|
||||||
|
|
||||||
|
The latest developer version is available in a GitHub repository:
|
||||||
|
https://github.com/aio-libs/aiohttp
|
||||||
|
|
||||||
|
Benchmarks
|
||||||
|
==========
|
||||||
|
|
||||||
|
If you are interested in efficiency, the AsyncIO community maintains a
|
||||||
|
list of benchmarks on the official wiki:
|
||||||
|
https://github.com/python/asyncio/wiki/Benchmarks
|
||||||
|
|
||||||
|
--------
|
||||||
|
|
||||||
|
.. image:: https://img.shields.io/matrix/aio-libs:matrix.org?label=Discuss%20on%20Matrix%20at%20%23aio-libs%3Amatrix.org&logo=matrix&server_fqdn=matrix.org&style=flat
|
||||||
|
:target: https://matrix.to/#/%23aio-libs:matrix.org
|
||||||
|
:alt: Matrix Room — #aio-libs:matrix.org
|
||||||
|
|
||||||
|
.. image:: https://img.shields.io/matrix/aio-libs-space:matrix.org?label=Discuss%20on%20Matrix%20at%20%23aio-libs-space%3Amatrix.org&logo=matrix&server_fqdn=matrix.org&style=flat
|
||||||
|
:target: https://matrix.to/#/%23aio-libs-space:matrix.org
|
||||||
|
:alt: Matrix Space — #aio-libs-space:matrix.org
|
||||||
|
|
||||||
|
.. image:: https://insights.linuxfoundation.org/api/badge/health-score?project=aiohttp
|
||||||
|
:target: https://insights.linuxfoundation.org/project/aiohttp
|
||||||
|
:alt: LFX Health Score
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,262 @@
|
||||||
|
Metadata-Version: 2.4
|
||||||
|
Name: aiohttp
|
||||||
|
Version: 3.13.2
|
||||||
|
Summary: Async http client/server framework (asyncio)
|
||||||
|
Maintainer-email: aiohttp team <team@aiohttp.org>
|
||||||
|
License: Apache-2.0 AND MIT
|
||||||
|
Project-URL: Homepage, https://github.com/aio-libs/aiohttp
|
||||||
|
Project-URL: Chat: Matrix, https://matrix.to/#/#aio-libs:matrix.org
|
||||||
|
Project-URL: Chat: Matrix Space, https://matrix.to/#/#aio-libs-space:matrix.org
|
||||||
|
Project-URL: CI: GitHub Actions, https://github.com/aio-libs/aiohttp/actions?query=workflow%3ACI
|
||||||
|
Project-URL: Coverage: codecov, https://codecov.io/github/aio-libs/aiohttp
|
||||||
|
Project-URL: Docs: Changelog, https://docs.aiohttp.org/en/stable/changes.html
|
||||||
|
Project-URL: Docs: RTD, https://docs.aiohttp.org
|
||||||
|
Project-URL: GitHub: issues, https://github.com/aio-libs/aiohttp/issues
|
||||||
|
Project-URL: GitHub: repo, https://github.com/aio-libs/aiohttp
|
||||||
|
Classifier: Development Status :: 5 - Production/Stable
|
||||||
|
Classifier: Framework :: AsyncIO
|
||||||
|
Classifier: Intended Audience :: Developers
|
||||||
|
Classifier: Operating System :: POSIX
|
||||||
|
Classifier: Operating System :: MacOS :: MacOS X
|
||||||
|
Classifier: Operating System :: Microsoft :: Windows
|
||||||
|
Classifier: Programming Language :: Python
|
||||||
|
Classifier: Programming Language :: Python :: 3
|
||||||
|
Classifier: Programming Language :: Python :: 3.9
|
||||||
|
Classifier: Programming Language :: Python :: 3.10
|
||||||
|
Classifier: Programming Language :: Python :: 3.11
|
||||||
|
Classifier: Programming Language :: Python :: 3.12
|
||||||
|
Classifier: Programming Language :: Python :: 3.13
|
||||||
|
Classifier: Programming Language :: Python :: 3.14
|
||||||
|
Classifier: Topic :: Internet :: WWW/HTTP
|
||||||
|
Requires-Python: >=3.9
|
||||||
|
Description-Content-Type: text/x-rst
|
||||||
|
License-File: LICENSE.txt
|
||||||
|
License-File: vendor/llhttp/LICENSE
|
||||||
|
Requires-Dist: aiohappyeyeballs>=2.5.0
|
||||||
|
Requires-Dist: aiosignal>=1.4.0
|
||||||
|
Requires-Dist: async-timeout<6.0,>=4.0; python_version < "3.11"
|
||||||
|
Requires-Dist: attrs>=17.3.0
|
||||||
|
Requires-Dist: frozenlist>=1.1.1
|
||||||
|
Requires-Dist: multidict<7.0,>=4.5
|
||||||
|
Requires-Dist: propcache>=0.2.0
|
||||||
|
Requires-Dist: yarl<2.0,>=1.17.0
|
||||||
|
Provides-Extra: speedups
|
||||||
|
Requires-Dist: aiodns>=3.3.0; extra == "speedups"
|
||||||
|
Requires-Dist: Brotli; platform_python_implementation == "CPython" and extra == "speedups"
|
||||||
|
Requires-Dist: brotlicffi; platform_python_implementation != "CPython" and extra == "speedups"
|
||||||
|
Requires-Dist: backports.zstd; (platform_python_implementation == "CPython" and python_version < "3.14") and extra == "speedups"
|
||||||
|
Dynamic: license-file
|
||||||
|
|
||||||
|
==================================
|
||||||
|
Async http client/server framework
|
||||||
|
==================================
|
||||||
|
|
||||||
|
.. image:: https://raw.githubusercontent.com/aio-libs/aiohttp/master/docs/aiohttp-plain.svg
|
||||||
|
:height: 64px
|
||||||
|
:width: 64px
|
||||||
|
:alt: aiohttp logo
|
||||||
|
|
||||||
|
|
|
||||||
|
|
||||||
|
.. image:: https://github.com/aio-libs/aiohttp/workflows/CI/badge.svg
|
||||||
|
:target: https://github.com/aio-libs/aiohttp/actions?query=workflow%3ACI
|
||||||
|
:alt: GitHub Actions status for master branch
|
||||||
|
|
||||||
|
.. image:: https://codecov.io/gh/aio-libs/aiohttp/branch/master/graph/badge.svg
|
||||||
|
:target: https://codecov.io/gh/aio-libs/aiohttp
|
||||||
|
:alt: codecov.io status for master branch
|
||||||
|
|
||||||
|
.. image:: https://badge.fury.io/py/aiohttp.svg
|
||||||
|
:target: https://pypi.org/project/aiohttp
|
||||||
|
:alt: Latest PyPI package version
|
||||||
|
|
||||||
|
.. image:: https://img.shields.io/pypi/dm/aiohttp
|
||||||
|
:target: https://pypistats.org/packages/aiohttp
|
||||||
|
:alt: Downloads count
|
||||||
|
|
||||||
|
.. image:: https://readthedocs.org/projects/aiohttp/badge/?version=latest
|
||||||
|
:target: https://docs.aiohttp.org/
|
||||||
|
:alt: Latest Read The Docs
|
||||||
|
|
||||||
|
.. image:: https://img.shields.io/endpoint?url=https://codspeed.io/badge.json
|
||||||
|
:target: https://codspeed.io/aio-libs/aiohttp
|
||||||
|
:alt: Codspeed.io status for aiohttp
|
||||||
|
|
||||||
|
|
||||||
|
Key Features
|
||||||
|
============
|
||||||
|
|
||||||
|
- Supports both client and server side of HTTP protocol.
|
||||||
|
- Supports both client and server Web-Sockets out-of-the-box and avoids
|
||||||
|
Callback Hell.
|
||||||
|
- Provides Web-server with middleware and pluggable routing.
|
||||||
|
|
||||||
|
|
||||||
|
Getting started
|
||||||
|
===============
|
||||||
|
|
||||||
|
Client
|
||||||
|
------
|
||||||
|
|
||||||
|
To get something from the web:
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
|
import aiohttp
|
||||||
|
import asyncio
|
||||||
|
|
||||||
|
async def main():
|
||||||
|
|
||||||
|
async with aiohttp.ClientSession() as session:
|
||||||
|
async with session.get('http://python.org') as response:
|
||||||
|
|
||||||
|
print("Status:", response.status)
|
||||||
|
print("Content-type:", response.headers['content-type'])
|
||||||
|
|
||||||
|
html = await response.text()
|
||||||
|
print("Body:", html[:15], "...")
|
||||||
|
|
||||||
|
asyncio.run(main())
|
||||||
|
|
||||||
|
This prints:
|
||||||
|
|
||||||
|
.. code-block::
|
||||||
|
|
||||||
|
Status: 200
|
||||||
|
Content-type: text/html; charset=utf-8
|
||||||
|
Body: <!doctype html> ...
|
||||||
|
|
||||||
|
Coming from `requests <https://requests.readthedocs.io/>`_ ? Read `why we need so many lines <https://aiohttp.readthedocs.io/en/latest/http_request_lifecycle.html>`_.
|
||||||
|
|
||||||
|
Server
|
||||||
|
------
|
||||||
|
|
||||||
|
An example using a simple server:
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
|
# examples/server_simple.py
|
||||||
|
from aiohttp import web
|
||||||
|
|
||||||
|
async def handle(request):
|
||||||
|
name = request.match_info.get('name', "Anonymous")
|
||||||
|
text = "Hello, " + name
|
||||||
|
return web.Response(text=text)
|
||||||
|
|
||||||
|
async def wshandle(request):
|
||||||
|
ws = web.WebSocketResponse()
|
||||||
|
await ws.prepare(request)
|
||||||
|
|
||||||
|
async for msg in ws:
|
||||||
|
if msg.type == web.WSMsgType.text:
|
||||||
|
await ws.send_str("Hello, {}".format(msg.data))
|
||||||
|
elif msg.type == web.WSMsgType.binary:
|
||||||
|
await ws.send_bytes(msg.data)
|
||||||
|
elif msg.type == web.WSMsgType.close:
|
||||||
|
break
|
||||||
|
|
||||||
|
return ws
|
||||||
|
|
||||||
|
|
||||||
|
app = web.Application()
|
||||||
|
app.add_routes([web.get('/', handle),
|
||||||
|
web.get('/echo', wshandle),
|
||||||
|
web.get('/{name}', handle)])
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
web.run_app(app)
|
||||||
|
|
||||||
|
|
||||||
|
Documentation
|
||||||
|
=============
|
||||||
|
|
||||||
|
https://aiohttp.readthedocs.io/
|
||||||
|
|
||||||
|
|
||||||
|
Demos
|
||||||
|
=====
|
||||||
|
|
||||||
|
https://github.com/aio-libs/aiohttp-demos
|
||||||
|
|
||||||
|
|
||||||
|
External links
|
||||||
|
==============
|
||||||
|
|
||||||
|
* `Third party libraries
|
||||||
|
<http://aiohttp.readthedocs.io/en/latest/third_party.html>`_
|
||||||
|
* `Built with aiohttp
|
||||||
|
<http://aiohttp.readthedocs.io/en/latest/built_with.html>`_
|
||||||
|
* `Powered by aiohttp
|
||||||
|
<http://aiohttp.readthedocs.io/en/latest/powered_by.html>`_
|
||||||
|
|
||||||
|
Feel free to make a Pull Request for adding your link to these pages!
|
||||||
|
|
||||||
|
|
||||||
|
Communication channels
|
||||||
|
======================
|
||||||
|
|
||||||
|
*aio-libs Discussions*: https://github.com/aio-libs/aiohttp/discussions
|
||||||
|
|
||||||
|
*Matrix*: `#aio-libs:matrix.org <https://matrix.to/#/#aio-libs:matrix.org>`_
|
||||||
|
|
||||||
|
We support `Stack Overflow
|
||||||
|
<https://stackoverflow.com/questions/tagged/aiohttp>`_.
|
||||||
|
Please add *aiohttp* tag to your question there.
|
||||||
|
|
||||||
|
Requirements
|
||||||
|
============
|
||||||
|
|
||||||
|
- attrs_
|
||||||
|
- multidict_
|
||||||
|
- yarl_
|
||||||
|
- frozenlist_
|
||||||
|
|
||||||
|
Optionally you may install the aiodns_ library (highly recommended for sake of speed).
|
||||||
|
|
||||||
|
.. _aiodns: https://pypi.python.org/pypi/aiodns
|
||||||
|
.. _attrs: https://github.com/python-attrs/attrs
|
||||||
|
.. _multidict: https://pypi.python.org/pypi/multidict
|
||||||
|
.. _frozenlist: https://pypi.org/project/frozenlist/
|
||||||
|
.. _yarl: https://pypi.python.org/pypi/yarl
|
||||||
|
.. _async-timeout: https://pypi.python.org/pypi/async_timeout
|
||||||
|
|
||||||
|
License
|
||||||
|
=======
|
||||||
|
|
||||||
|
``aiohttp`` is offered under the Apache 2 license.
|
||||||
|
|
||||||
|
|
||||||
|
Keepsafe
|
||||||
|
========
|
||||||
|
|
||||||
|
The aiohttp community would like to thank Keepsafe
|
||||||
|
(https://www.getkeepsafe.com) for its support in the early days of
|
||||||
|
the project.
|
||||||
|
|
||||||
|
|
||||||
|
Source code
|
||||||
|
===========
|
||||||
|
|
||||||
|
The latest developer version is available in a GitHub repository:
|
||||||
|
https://github.com/aio-libs/aiohttp
|
||||||
|
|
||||||
|
Benchmarks
|
||||||
|
==========
|
||||||
|
|
||||||
|
If you are interested in efficiency, the AsyncIO community maintains a
|
||||||
|
list of benchmarks on the official wiki:
|
||||||
|
https://github.com/python/asyncio/wiki/Benchmarks
|
||||||
|
|
||||||
|
--------
|
||||||
|
|
||||||
|
.. image:: https://img.shields.io/matrix/aio-libs:matrix.org?label=Discuss%20on%20Matrix%20at%20%23aio-libs%3Amatrix.org&logo=matrix&server_fqdn=matrix.org&style=flat
|
||||||
|
:target: https://matrix.to/#/%23aio-libs:matrix.org
|
||||||
|
:alt: Matrix Room — #aio-libs:matrix.org
|
||||||
|
|
||||||
|
.. image:: https://img.shields.io/matrix/aio-libs-space:matrix.org?label=Discuss%20on%20Matrix%20at%20%23aio-libs-space%3Amatrix.org&logo=matrix&server_fqdn=matrix.org&style=flat
|
||||||
|
:target: https://matrix.to/#/%23aio-libs-space:matrix.org
|
||||||
|
:alt: Matrix Space — #aio-libs-space:matrix.org
|
||||||
|
|
||||||
|
.. image:: https://insights.linuxfoundation.org/api/badge/health-score?project=aiohttp
|
||||||
|
:target: https://insights.linuxfoundation.org/project/aiohttp
|
||||||
|
:alt: LFX Health Score
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,262 @@
|
||||||
|
Metadata-Version: 2.4
|
||||||
|
Name: aiohttp
|
||||||
|
Version: 3.13.2
|
||||||
|
Summary: Async http client/server framework (asyncio)
|
||||||
|
Maintainer-email: aiohttp team <team@aiohttp.org>
|
||||||
|
License: Apache-2.0 AND MIT
|
||||||
|
Project-URL: Homepage, https://github.com/aio-libs/aiohttp
|
||||||
|
Project-URL: Chat: Matrix, https://matrix.to/#/#aio-libs:matrix.org
|
||||||
|
Project-URL: Chat: Matrix Space, https://matrix.to/#/#aio-libs-space:matrix.org
|
||||||
|
Project-URL: CI: GitHub Actions, https://github.com/aio-libs/aiohttp/actions?query=workflow%3ACI
|
||||||
|
Project-URL: Coverage: codecov, https://codecov.io/github/aio-libs/aiohttp
|
||||||
|
Project-URL: Docs: Changelog, https://docs.aiohttp.org/en/stable/changes.html
|
||||||
|
Project-URL: Docs: RTD, https://docs.aiohttp.org
|
||||||
|
Project-URL: GitHub: issues, https://github.com/aio-libs/aiohttp/issues
|
||||||
|
Project-URL: GitHub: repo, https://github.com/aio-libs/aiohttp
|
||||||
|
Classifier: Development Status :: 5 - Production/Stable
|
||||||
|
Classifier: Framework :: AsyncIO
|
||||||
|
Classifier: Intended Audience :: Developers
|
||||||
|
Classifier: Operating System :: POSIX
|
||||||
|
Classifier: Operating System :: MacOS :: MacOS X
|
||||||
|
Classifier: Operating System :: Microsoft :: Windows
|
||||||
|
Classifier: Programming Language :: Python
|
||||||
|
Classifier: Programming Language :: Python :: 3
|
||||||
|
Classifier: Programming Language :: Python :: 3.9
|
||||||
|
Classifier: Programming Language :: Python :: 3.10
|
||||||
|
Classifier: Programming Language :: Python :: 3.11
|
||||||
|
Classifier: Programming Language :: Python :: 3.12
|
||||||
|
Classifier: Programming Language :: Python :: 3.13
|
||||||
|
Classifier: Programming Language :: Python :: 3.14
|
||||||
|
Classifier: Topic :: Internet :: WWW/HTTP
|
||||||
|
Requires-Python: >=3.9
|
||||||
|
Description-Content-Type: text/x-rst
|
||||||
|
License-File: LICENSE.txt
|
||||||
|
License-File: vendor/llhttp/LICENSE
|
||||||
|
Requires-Dist: aiohappyeyeballs>=2.5.0
|
||||||
|
Requires-Dist: aiosignal>=1.4.0
|
||||||
|
Requires-Dist: async-timeout<6.0,>=4.0; python_version < "3.11"
|
||||||
|
Requires-Dist: attrs>=17.3.0
|
||||||
|
Requires-Dist: frozenlist>=1.1.1
|
||||||
|
Requires-Dist: multidict<7.0,>=4.5
|
||||||
|
Requires-Dist: propcache>=0.2.0
|
||||||
|
Requires-Dist: yarl<2.0,>=1.17.0
|
||||||
|
Provides-Extra: speedups
|
||||||
|
Requires-Dist: aiodns>=3.3.0; extra == "speedups"
|
||||||
|
Requires-Dist: Brotli; platform_python_implementation == "CPython" and extra == "speedups"
|
||||||
|
Requires-Dist: brotlicffi; platform_python_implementation != "CPython" and extra == "speedups"
|
||||||
|
Requires-Dist: backports.zstd; (platform_python_implementation == "CPython" and python_version < "3.14") and extra == "speedups"
|
||||||
|
Dynamic: license-file
|
||||||
|
|
||||||
|
==================================
|
||||||
|
Async http client/server framework
|
||||||
|
==================================
|
||||||
|
|
||||||
|
.. image:: https://raw.githubusercontent.com/aio-libs/aiohttp/master/docs/aiohttp-plain.svg
|
||||||
|
:height: 64px
|
||||||
|
:width: 64px
|
||||||
|
:alt: aiohttp logo
|
||||||
|
|
||||||
|
|
|
||||||
|
|
||||||
|
.. image:: https://github.com/aio-libs/aiohttp/workflows/CI/badge.svg
|
||||||
|
:target: https://github.com/aio-libs/aiohttp/actions?query=workflow%3ACI
|
||||||
|
:alt: GitHub Actions status for master branch
|
||||||
|
|
||||||
|
.. image:: https://codecov.io/gh/aio-libs/aiohttp/branch/master/graph/badge.svg
|
||||||
|
:target: https://codecov.io/gh/aio-libs/aiohttp
|
||||||
|
:alt: codecov.io status for master branch
|
||||||
|
|
||||||
|
.. image:: https://badge.fury.io/py/aiohttp.svg
|
||||||
|
:target: https://pypi.org/project/aiohttp
|
||||||
|
:alt: Latest PyPI package version
|
||||||
|
|
||||||
|
.. image:: https://img.shields.io/pypi/dm/aiohttp
|
||||||
|
:target: https://pypistats.org/packages/aiohttp
|
||||||
|
:alt: Downloads count
|
||||||
|
|
||||||
|
.. image:: https://readthedocs.org/projects/aiohttp/badge/?version=latest
|
||||||
|
:target: https://docs.aiohttp.org/
|
||||||
|
:alt: Latest Read The Docs
|
||||||
|
|
||||||
|
.. image:: https://img.shields.io/endpoint?url=https://codspeed.io/badge.json
|
||||||
|
:target: https://codspeed.io/aio-libs/aiohttp
|
||||||
|
:alt: Codspeed.io status for aiohttp
|
||||||
|
|
||||||
|
|
||||||
|
Key Features
|
||||||
|
============
|
||||||
|
|
||||||
|
- Supports both client and server side of HTTP protocol.
|
||||||
|
- Supports both client and server Web-Sockets out-of-the-box and avoids
|
||||||
|
Callback Hell.
|
||||||
|
- Provides Web-server with middleware and pluggable routing.
|
||||||
|
|
||||||
|
|
||||||
|
Getting started
|
||||||
|
===============
|
||||||
|
|
||||||
|
Client
|
||||||
|
------
|
||||||
|
|
||||||
|
To get something from the web:
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
|
import aiohttp
|
||||||
|
import asyncio
|
||||||
|
|
||||||
|
async def main():
|
||||||
|
|
||||||
|
async with aiohttp.ClientSession() as session:
|
||||||
|
async with session.get('http://python.org') as response:
|
||||||
|
|
||||||
|
print("Status:", response.status)
|
||||||
|
print("Content-type:", response.headers['content-type'])
|
||||||
|
|
||||||
|
html = await response.text()
|
||||||
|
print("Body:", html[:15], "...")
|
||||||
|
|
||||||
|
asyncio.run(main())
|
||||||
|
|
||||||
|
This prints:
|
||||||
|
|
||||||
|
.. code-block::
|
||||||
|
|
||||||
|
Status: 200
|
||||||
|
Content-type: text/html; charset=utf-8
|
||||||
|
Body: <!doctype html> ...
|
||||||
|
|
||||||
|
Coming from `requests <https://requests.readthedocs.io/>`_ ? Read `why we need so many lines <https://aiohttp.readthedocs.io/en/latest/http_request_lifecycle.html>`_.
|
||||||
|
|
||||||
|
Server
|
||||||
|
------
|
||||||
|
|
||||||
|
An example using a simple server:
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
|
# examples/server_simple.py
|
||||||
|
from aiohttp import web
|
||||||
|
|
||||||
|
async def handle(request):
|
||||||
|
name = request.match_info.get('name', "Anonymous")
|
||||||
|
text = "Hello, " + name
|
||||||
|
return web.Response(text=text)
|
||||||
|
|
||||||
|
async def wshandle(request):
|
||||||
|
ws = web.WebSocketResponse()
|
||||||
|
await ws.prepare(request)
|
||||||
|
|
||||||
|
async for msg in ws:
|
||||||
|
if msg.type == web.WSMsgType.text:
|
||||||
|
await ws.send_str("Hello, {}".format(msg.data))
|
||||||
|
elif msg.type == web.WSMsgType.binary:
|
||||||
|
await ws.send_bytes(msg.data)
|
||||||
|
elif msg.type == web.WSMsgType.close:
|
||||||
|
break
|
||||||
|
|
||||||
|
return ws
|
||||||
|
|
||||||
|
|
||||||
|
app = web.Application()
|
||||||
|
app.add_routes([web.get('/', handle),
|
||||||
|
web.get('/echo', wshandle),
|
||||||
|
web.get('/{name}', handle)])
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
web.run_app(app)
|
||||||
|
|
||||||
|
|
||||||
|
Documentation
|
||||||
|
=============
|
||||||
|
|
||||||
|
https://aiohttp.readthedocs.io/
|
||||||
|
|
||||||
|
|
||||||
|
Demos
|
||||||
|
=====
|
||||||
|
|
||||||
|
https://github.com/aio-libs/aiohttp-demos
|
||||||
|
|
||||||
|
|
||||||
|
External links
|
||||||
|
==============
|
||||||
|
|
||||||
|
* `Third party libraries
|
||||||
|
<http://aiohttp.readthedocs.io/en/latest/third_party.html>`_
|
||||||
|
* `Built with aiohttp
|
||||||
|
<http://aiohttp.readthedocs.io/en/latest/built_with.html>`_
|
||||||
|
* `Powered by aiohttp
|
||||||
|
<http://aiohttp.readthedocs.io/en/latest/powered_by.html>`_
|
||||||
|
|
||||||
|
Feel free to make a Pull Request for adding your link to these pages!
|
||||||
|
|
||||||
|
|
||||||
|
Communication channels
|
||||||
|
======================
|
||||||
|
|
||||||
|
*aio-libs Discussions*: https://github.com/aio-libs/aiohttp/discussions
|
||||||
|
|
||||||
|
*Matrix*: `#aio-libs:matrix.org <https://matrix.to/#/#aio-libs:matrix.org>`_
|
||||||
|
|
||||||
|
We support `Stack Overflow
|
||||||
|
<https://stackoverflow.com/questions/tagged/aiohttp>`_.
|
||||||
|
Please add *aiohttp* tag to your question there.
|
||||||
|
|
||||||
|
Requirements
|
||||||
|
============
|
||||||
|
|
||||||
|
- attrs_
|
||||||
|
- multidict_
|
||||||
|
- yarl_
|
||||||
|
- frozenlist_
|
||||||
|
|
||||||
|
Optionally you may install the aiodns_ library (highly recommended for sake of speed).
|
||||||
|
|
||||||
|
.. _aiodns: https://pypi.python.org/pypi/aiodns
|
||||||
|
.. _attrs: https://github.com/python-attrs/attrs
|
||||||
|
.. _multidict: https://pypi.python.org/pypi/multidict
|
||||||
|
.. _frozenlist: https://pypi.org/project/frozenlist/
|
||||||
|
.. _yarl: https://pypi.python.org/pypi/yarl
|
||||||
|
.. _async-timeout: https://pypi.python.org/pypi/async_timeout
|
||||||
|
|
||||||
|
License
|
||||||
|
=======
|
||||||
|
|
||||||
|
``aiohttp`` is offered under the Apache 2 license.
|
||||||
|
|
||||||
|
|
||||||
|
Keepsafe
|
||||||
|
========
|
||||||
|
|
||||||
|
The aiohttp community would like to thank Keepsafe
|
||||||
|
(https://www.getkeepsafe.com) for its support in the early days of
|
||||||
|
the project.
|
||||||
|
|
||||||
|
|
||||||
|
Source code
|
||||||
|
===========
|
||||||
|
|
||||||
|
The latest developer version is available in a GitHub repository:
|
||||||
|
https://github.com/aio-libs/aiohttp
|
||||||
|
|
||||||
|
Benchmarks
|
||||||
|
==========
|
||||||
|
|
||||||
|
If you are interested in efficiency, the AsyncIO community maintains a
|
||||||
|
list of benchmarks on the official wiki:
|
||||||
|
https://github.com/python/asyncio/wiki/Benchmarks
|
||||||
|
|
||||||
|
--------
|
||||||
|
|
||||||
|
.. image:: https://img.shields.io/matrix/aio-libs:matrix.org?label=Discuss%20on%20Matrix%20at%20%23aio-libs%3Amatrix.org&logo=matrix&server_fqdn=matrix.org&style=flat
|
||||||
|
:target: https://matrix.to/#/%23aio-libs:matrix.org
|
||||||
|
:alt: Matrix Room — #aio-libs:matrix.org
|
||||||
|
|
||||||
|
.. image:: https://img.shields.io/matrix/aio-libs-space:matrix.org?label=Discuss%20on%20Matrix%20at%20%23aio-libs-space%3Amatrix.org&logo=matrix&server_fqdn=matrix.org&style=flat
|
||||||
|
:target: https://matrix.to/#/%23aio-libs-space:matrix.org
|
||||||
|
:alt: Matrix Space — #aio-libs-space:matrix.org
|
||||||
|
|
||||||
|
.. image:: https://insights.linuxfoundation.org/api/badge/health-score?project=aiohttp
|
||||||
|
:target: https://insights.linuxfoundation.org/project/aiohttp
|
||||||
|
:alt: LFX Health Score
|
||||||
|
|
@ -0,0 +1,40 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta name="generator" content="simple503 version 0.4.0" />
|
||||||
|
<meta name="pypi:repository-version" content="1.0" />
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<title>
|
||||||
|
Links for aiohttp
|
||||||
|
</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>
|
||||||
|
Links for aiohttp
|
||||||
|
</h1>
|
||||||
|
<a href="/aiohttp/aiohttp-3.13.2-cp311-cp311-musllinux_1_2_x86_64.whl#sha256=9acda8604a57bb60544e4646a4615c1866ee6c04a8edef9b8ee6fd1d8fa2ddc8" data-requires-python=">=3.9" data-dist-info-metadata="sha256=df1afc67261322787dd3d4ea09d6612880b7ee0e674e0c8ff8d8ffca0942b390">
|
||||||
|
aiohttp-3.13.2-cp311-cp311-musllinux_1_2_x86_64.whl
|
||||||
|
</a>
|
||||||
|
<br />
|
||||||
|
<a href="/aiohttp/aiohttp-3.13.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl#sha256=a3b6fb0c207cc661fa0bf8c66d8d9b657331ccc814f4719468af61034b478592" data-requires-python=">=3.9" data-dist-info-metadata="sha256=df1afc67261322787dd3d4ea09d6612880b7ee0e674e0c8ff8d8ffca0942b390">
|
||||||
|
aiohttp-3.13.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
|
||||||
|
</a>
|
||||||
|
<br />
|
||||||
|
<a href="/aiohttp/aiohttp-3.13.2-cp310-cp310-musllinux_1_2_x86_64.whl#sha256=05c4dd3c48fb5f15db31f57eb35374cb0c09afdde532e7fb70a75aede0ed30f6" data-requires-python=">=3.9" data-dist-info-metadata="sha256=df1afc67261322787dd3d4ea09d6612880b7ee0e674e0c8ff8d8ffca0942b390">
|
||||||
|
aiohttp-3.13.2-cp310-cp310-musllinux_1_2_x86_64.whl
|
||||||
|
</a>
|
||||||
|
<br />
|
||||||
|
<a href="/aiohttp/aiohttp-3.13.2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl#sha256=b59d13c443f8e049d9e94099c7e412e34610f1f49be0f230ec656a10692a5802" data-requires-python=">=3.9" data-dist-info-metadata="sha256=df1afc67261322787dd3d4ea09d6612880b7ee0e674e0c8ff8d8ffca0942b390">
|
||||||
|
aiohttp-3.13.2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
|
||||||
|
</a>
|
||||||
|
<br />
|
||||||
|
<a href="/aiohttp/aiohttp-3.13.2-cp39-cp39-musllinux_1_2_x86_64.whl#sha256=04c3971421576ed24c191f610052bcb2f059e395bc2489dd99e397f9bc466329" data-requires-python=">=3.9" data-dist-info-metadata="sha256=df1afc67261322787dd3d4ea09d6612880b7ee0e674e0c8ff8d8ffca0942b390">
|
||||||
|
aiohttp-3.13.2-cp39-cp39-musllinux_1_2_x86_64.whl
|
||||||
|
</a>
|
||||||
|
<br />
|
||||||
|
<a href="/aiohttp/aiohttp-3.13.2-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl#sha256=3a92cf4b9bea33e15ecbaa5c59921be0f23222608143d025c989924f7e3e0c07" data-requires-python=">=3.9" data-dist-info-metadata="sha256=df1afc67261322787dd3d4ea09d6612880b7ee0e674e0c8ff8d8ffca0942b390">
|
||||||
|
aiohttp-3.13.2-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
|
||||||
|
</a>
|
||||||
|
<br />
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,108 @@
|
||||||
|
Metadata-Version: 2.4
|
||||||
|
Name: aioitertools
|
||||||
|
Version: 0.13.0
|
||||||
|
Summary: itertools and builtins for AsyncIO and mixed iterables
|
||||||
|
Author-email: Amethyst Reese <amethyst@n7.gg>
|
||||||
|
Requires-Python: >=3.9
|
||||||
|
Description-Content-Type: text/markdown
|
||||||
|
License-Expression: MIT
|
||||||
|
Classifier: Framework :: AsyncIO
|
||||||
|
Classifier: Intended Audience :: Developers
|
||||||
|
Classifier: Topic :: Software Development :: Libraries
|
||||||
|
License-File: LICENSE
|
||||||
|
Requires-Dist: typing_extensions>=4.0; python_version < '3.10'
|
||||||
|
Project-URL: Changelog, https://aioitertools.omnilib.dev/en/latest/changelog.html
|
||||||
|
Project-URL: Documentation, https://aioitertools.omnilib.dev
|
||||||
|
Project-URL: Github, https://github.com/omnilib/aioitertools
|
||||||
|
|
||||||
|
aioitertools
|
||||||
|
============
|
||||||
|
|
||||||
|
Implementation of itertools, builtins, and more for AsyncIO and mixed-type iterables.
|
||||||
|
|
||||||
|
[](https://aioitertools.omnilib.dev)
|
||||||
|
[](https://pypi.org/project/aioitertools)
|
||||||
|
[](https://aioitertools.omnilib.dev/en/latest/changelog.html)
|
||||||
|
[](https://github.com/omnilib/aioitertools/blob/main/LICENSE)
|
||||||
|
|
||||||
|
|
||||||
|
Install
|
||||||
|
-------
|
||||||
|
|
||||||
|
aioitertools requires Python 3.9 or newer.
|
||||||
|
You can install it from PyPI:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ pip install aioitertools
|
||||||
|
```
|
||||||
|
|
||||||
|
Usage
|
||||||
|
-----
|
||||||
|
|
||||||
|
aioitertools shadows the standard library whenever possible to provide
|
||||||
|
asynchronous version of the modules and functions you already know. It's
|
||||||
|
fully compatible with standard iterators and async iterators alike, giving
|
||||||
|
you one unified, familiar interface for interacting with iterable objects:
|
||||||
|
|
||||||
|
```python
|
||||||
|
from aioitertools import iter, next, map, zip
|
||||||
|
|
||||||
|
something = iter(...)
|
||||||
|
first_item = await next(something)
|
||||||
|
|
||||||
|
async for item in iter(something):
|
||||||
|
...
|
||||||
|
|
||||||
|
|
||||||
|
async def fetch(url):
|
||||||
|
response = await aiohttp.request(...)
|
||||||
|
return response.json
|
||||||
|
|
||||||
|
async for value in map(fetch, MANY_URLS):
|
||||||
|
...
|
||||||
|
|
||||||
|
|
||||||
|
async for a, b in zip(something, something_else):
|
||||||
|
...
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
aioitertools emulates the entire `itertools` module, offering the same
|
||||||
|
function signatures, but as async generators. All functions support
|
||||||
|
standard iterables and async iterables alike, and can take functions or
|
||||||
|
coroutines:
|
||||||
|
|
||||||
|
```python
|
||||||
|
from aioitertools import chain, islice
|
||||||
|
|
||||||
|
async def generator1(...):
|
||||||
|
yield ...
|
||||||
|
|
||||||
|
async def generator2(...):
|
||||||
|
yield ...
|
||||||
|
|
||||||
|
async for value in chain(generator1(), generator2()):
|
||||||
|
...
|
||||||
|
|
||||||
|
async for value in islice(generator1(), 2, None, 2):
|
||||||
|
...
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
See [builtins.py][], [itertools.py][], and [more_itertools.py][] for full
|
||||||
|
documentation of functions and abilities.
|
||||||
|
|
||||||
|
|
||||||
|
License
|
||||||
|
-------
|
||||||
|
|
||||||
|
aioitertools is copyright [Amethyst Reese](https://noswap.com), and licensed under
|
||||||
|
the MIT license. I am providing code in this repository to you under an open
|
||||||
|
source license. This is my personal repository; the license you receive to
|
||||||
|
my code is from me and not from my employer. See the `LICENSE` file for details.
|
||||||
|
|
||||||
|
|
||||||
|
[builtins.py]: https://github.com/omnilib/aioitertools/blob/main/aioitertools/builtins.py
|
||||||
|
[itertools.py]: https://github.com/omnilib/aioitertools/blob/main/aioitertools/itertools.py
|
||||||
|
[more_itertools.py]: https://github.com/omnilib/aioitertools/blob/main/aioitertools/more_itertools.py
|
||||||
|
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta name="generator" content="simple503 version 0.4.0" />
|
||||||
|
<meta name="pypi:repository-version" content="1.0" />
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<title>
|
||||||
|
Links for aioitertools
|
||||||
|
</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>
|
||||||
|
Links for aioitertools
|
||||||
|
</h1>
|
||||||
|
<a href="/aioitertools/aioitertools-0.13.0-py3-none-any.whl#sha256=0be0292b856f08dfac90e31f4739432f4cb6d7520ab9eb73e143f4f2fa5259be" data-requires-python=">=3.9" data-dist-info-metadata="sha256=91cc60bedec3f5f9760a37747dc07830081560c7ef42c3f9a8eb75626b1be01d">
|
||||||
|
aioitertools-0.13.0-py3-none-any.whl
|
||||||
|
</a>
|
||||||
|
<br />
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,112 @@
|
||||||
|
Metadata-Version: 2.4
|
||||||
|
Name: aiosignal
|
||||||
|
Version: 1.4.0
|
||||||
|
Summary: aiosignal: a list of registered asynchronous callbacks
|
||||||
|
Home-page: https://github.com/aio-libs/aiosignal
|
||||||
|
Maintainer: aiohttp team <team@aiohttp.org>
|
||||||
|
Maintainer-email: team@aiohttp.org
|
||||||
|
License: Apache 2.0
|
||||||
|
Project-URL: Chat: Gitter, https://gitter.im/aio-libs/Lobby
|
||||||
|
Project-URL: CI: GitHub Actions, https://github.com/aio-libs/aiosignal/actions
|
||||||
|
Project-URL: Coverage: codecov, https://codecov.io/github/aio-libs/aiosignal
|
||||||
|
Project-URL: Docs: RTD, https://docs.aiosignal.org
|
||||||
|
Project-URL: GitHub: issues, https://github.com/aio-libs/aiosignal/issues
|
||||||
|
Project-URL: GitHub: repo, https://github.com/aio-libs/aiosignal
|
||||||
|
Classifier: License :: OSI Approved :: Apache Software License
|
||||||
|
Classifier: Intended Audience :: Developers
|
||||||
|
Classifier: Programming Language :: Python
|
||||||
|
Classifier: Programming Language :: Python :: 3
|
||||||
|
Classifier: Programming Language :: Python :: 3 :: Only
|
||||||
|
Classifier: Development Status :: 5 - Production/Stable
|
||||||
|
Classifier: Operating System :: POSIX
|
||||||
|
Classifier: Operating System :: MacOS :: MacOS X
|
||||||
|
Classifier: Operating System :: Microsoft :: Windows
|
||||||
|
Classifier: Framework :: AsyncIO
|
||||||
|
Requires-Python: >=3.9
|
||||||
|
Description-Content-Type: text/x-rst
|
||||||
|
License-File: LICENSE
|
||||||
|
Requires-Dist: frozenlist>=1.1.0
|
||||||
|
Requires-Dist: typing-extensions>=4.2; python_version < "3.13"
|
||||||
|
Dynamic: license-file
|
||||||
|
|
||||||
|
=========
|
||||||
|
aiosignal
|
||||||
|
=========
|
||||||
|
|
||||||
|
.. image:: https://github.com/aio-libs/aiosignal/workflows/CI/badge.svg
|
||||||
|
:target: https://github.com/aio-libs/aiosignal/actions?query=workflow%3ACI
|
||||||
|
:alt: GitHub status for master branch
|
||||||
|
|
||||||
|
.. image:: https://codecov.io/gh/aio-libs/aiosignal/branch/master/graph/badge.svg?flag=pytest
|
||||||
|
:target: https://codecov.io/gh/aio-libs/aiosignal?flags[0]=pytest
|
||||||
|
:alt: codecov.io status for master branch
|
||||||
|
|
||||||
|
.. image:: https://badge.fury.io/py/aiosignal.svg
|
||||||
|
:target: https://pypi.org/project/aiosignal
|
||||||
|
:alt: Latest PyPI package version
|
||||||
|
|
||||||
|
.. image:: https://readthedocs.org/projects/aiosignal/badge/?version=latest
|
||||||
|
:target: https://aiosignal.readthedocs.io/
|
||||||
|
:alt: Latest Read The Docs
|
||||||
|
|
||||||
|
.. image:: https://img.shields.io/discourse/topics?server=https%3A%2F%2Faio-libs.discourse.group%2F
|
||||||
|
:target: https://aio-libs.discourse.group/
|
||||||
|
:alt: Discourse group for io-libs
|
||||||
|
|
||||||
|
.. image:: https://badges.gitter.im/Join%20Chat.svg
|
||||||
|
:target: https://gitter.im/aio-libs/Lobby
|
||||||
|
:alt: Chat on Gitter
|
||||||
|
|
||||||
|
Introduction
|
||||||
|
============
|
||||||
|
|
||||||
|
A project to manage callbacks in `asyncio` projects.
|
||||||
|
|
||||||
|
``Signal`` is a list of registered asynchronous callbacks.
|
||||||
|
|
||||||
|
The signal's life-cycle has two stages: after creation its content
|
||||||
|
could be filled by using standard list operations: ``sig.append()``
|
||||||
|
etc.
|
||||||
|
|
||||||
|
After you call ``sig.freeze()`` the signal is *frozen*: adding, removing
|
||||||
|
and dropping callbacks is forbidden.
|
||||||
|
|
||||||
|
The only available operation is calling the previously registered
|
||||||
|
callbacks by using ``await sig.send(data)``.
|
||||||
|
|
||||||
|
For concrete usage examples see the `Signals
|
||||||
|
<https://docs.aiohttp.org/en/stable/web_advanced.html#aiohttp-web-signals>
|
||||||
|
section of the `Web Server Advanced
|
||||||
|
<https://docs.aiohttp.org/en/stable/web_advanced.html>` chapter of the `aiohttp
|
||||||
|
documentation`_.
|
||||||
|
|
||||||
|
|
||||||
|
Installation
|
||||||
|
------------
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
$ pip install aiosignal
|
||||||
|
|
||||||
|
|
||||||
|
Documentation
|
||||||
|
=============
|
||||||
|
|
||||||
|
https://aiosignal.readthedocs.io/
|
||||||
|
|
||||||
|
License
|
||||||
|
=======
|
||||||
|
|
||||||
|
``aiosignal`` is offered under the Apache 2 license.
|
||||||
|
|
||||||
|
Source code
|
||||||
|
===========
|
||||||
|
|
||||||
|
The project is hosted on GitHub_
|
||||||
|
|
||||||
|
Please file an issue in the `bug tracker
|
||||||
|
<https://github.com/aio-libs/aiosignal/issues>`_ if you have found a bug
|
||||||
|
or have some suggestions to improve the library.
|
||||||
|
|
||||||
|
.. _GitHub: https://github.com/aio-libs/aiosignal
|
||||||
|
.. _aiohttp documentation: https://docs.aiohttp.org/
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta name="generator" content="simple503 version 0.4.0" />
|
||||||
|
<meta name="pypi:repository-version" content="1.0" />
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<title>
|
||||||
|
Links for aiosignal
|
||||||
|
</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>
|
||||||
|
Links for aiosignal
|
||||||
|
</h1>
|
||||||
|
<a href="/aiosignal/aiosignal-1.4.0-py3-none-any.whl#sha256=053243f8b92b990551949e63930a839ff0cf0b0ebbe0597b0f3fb19e1a0fe82e" data-requires-python=">=3.9" data-dist-info-metadata="sha256=09247ef1da8bc696728d47130e702e4307f6f7d101d6c485bff9f3a71ce7008d">
|
||||||
|
aiosignal-1.4.0-py3-none-any.whl
|
||||||
|
</a>
|
||||||
|
<br />
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,123 @@
|
||||||
|
Metadata-Version: 2.3
|
||||||
|
Name: aiosqlite
|
||||||
|
Version: 0.21.0
|
||||||
|
Summary: asyncio bridge to the standard sqlite3 module
|
||||||
|
Author-email: Amethyst Reese <amethyst@n7.gg>
|
||||||
|
Requires-Python: >=3.9
|
||||||
|
Description-Content-Type: text/x-rst
|
||||||
|
Classifier: Development Status :: 5 - Production/Stable
|
||||||
|
Classifier: Framework :: AsyncIO
|
||||||
|
Classifier: Intended Audience :: Developers
|
||||||
|
Classifier: License :: OSI Approved :: MIT License
|
||||||
|
Classifier: Topic :: Software Development :: Libraries
|
||||||
|
Requires-Dist: typing_extensions >= 4.0
|
||||||
|
Requires-Dist: attribution==1.7.1 ; extra == "dev"
|
||||||
|
Requires-Dist: black==24.3.0 ; extra == "dev"
|
||||||
|
Requires-Dist: build>=1.2 ; extra == "dev"
|
||||||
|
Requires-Dist: coverage[toml]==7.6.10 ; extra == "dev"
|
||||||
|
Requires-Dist: flake8==7.0.0 ; extra == "dev"
|
||||||
|
Requires-Dist: flake8-bugbear==24.12.12 ; extra == "dev"
|
||||||
|
Requires-Dist: flit==3.10.1 ; extra == "dev"
|
||||||
|
Requires-Dist: mypy==1.14.1 ; extra == "dev"
|
||||||
|
Requires-Dist: ufmt==2.5.1 ; extra == "dev"
|
||||||
|
Requires-Dist: usort==1.0.8.post1 ; extra == "dev"
|
||||||
|
Requires-Dist: sphinx==8.1.3 ; extra == "docs"
|
||||||
|
Requires-Dist: sphinx-mdinclude==0.6.1 ; extra == "docs"
|
||||||
|
Project-URL: Documentation, https://aiosqlite.omnilib.dev
|
||||||
|
Project-URL: Github, https://github.com/omnilib/aiosqlite
|
||||||
|
Provides-Extra: dev
|
||||||
|
Provides-Extra: docs
|
||||||
|
|
||||||
|
aiosqlite\: Sqlite for AsyncIO
|
||||||
|
==============================
|
||||||
|
|
||||||
|
.. image:: https://readthedocs.org/projects/aiosqlite/badge/?version=latest
|
||||||
|
:target: https://aiosqlite.omnilib.dev/en/latest/?badge=latest
|
||||||
|
:alt: Documentation Status
|
||||||
|
.. image:: https://img.shields.io/pypi/v/aiosqlite.svg
|
||||||
|
:target: https://pypi.org/project/aiosqlite
|
||||||
|
:alt: PyPI Release
|
||||||
|
.. image:: https://img.shields.io/badge/change-log-blue
|
||||||
|
:target: https://github.com/omnilib/aiosqlite/blob/master/CHANGELOG.md
|
||||||
|
:alt: Changelog
|
||||||
|
.. image:: https://img.shields.io/pypi/l/aiosqlite.svg
|
||||||
|
:target: https://github.com/omnilib/aiosqlite/blob/master/LICENSE
|
||||||
|
:alt: MIT Licensed
|
||||||
|
|
||||||
|
aiosqlite provides a friendly, async interface to sqlite databases.
|
||||||
|
|
||||||
|
It replicates the standard ``sqlite3`` module, but with async versions
|
||||||
|
of all the standard connection and cursor methods, plus context managers for
|
||||||
|
automatically closing connections and cursors:
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
|
async with aiosqlite.connect(...) as db:
|
||||||
|
await db.execute("INSERT INTO some_table ...")
|
||||||
|
await db.commit()
|
||||||
|
|
||||||
|
async with db.execute("SELECT * FROM some_table") as cursor:
|
||||||
|
async for row in cursor:
|
||||||
|
...
|
||||||
|
|
||||||
|
It can also be used in the traditional, procedural manner:
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
|
db = await aiosqlite.connect(...)
|
||||||
|
cursor = await db.execute('SELECT * FROM some_table')
|
||||||
|
row = await cursor.fetchone()
|
||||||
|
rows = await cursor.fetchall()
|
||||||
|
await cursor.close()
|
||||||
|
await db.close()
|
||||||
|
|
||||||
|
aiosqlite also replicates most of the advanced features of ``sqlite3``:
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
|
async with aiosqlite.connect(...) as db:
|
||||||
|
db.row_factory = aiosqlite.Row
|
||||||
|
async with db.execute('SELECT * FROM some_table') as cursor:
|
||||||
|
async for row in cursor:
|
||||||
|
value = row['column']
|
||||||
|
|
||||||
|
await db.execute('INSERT INTO foo some_table')
|
||||||
|
assert db.total_changes > 0
|
||||||
|
|
||||||
|
|
||||||
|
Install
|
||||||
|
-------
|
||||||
|
|
||||||
|
aiosqlite is compatible with Python 3.8 and newer.
|
||||||
|
You can install it from PyPI:
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ pip install aiosqlite
|
||||||
|
|
||||||
|
|
||||||
|
Details
|
||||||
|
-------
|
||||||
|
|
||||||
|
aiosqlite allows interaction with SQLite databases on the main AsyncIO event
|
||||||
|
loop without blocking execution of other coroutines while waiting for queries
|
||||||
|
or data fetches. It does this by using a single, shared thread per connection.
|
||||||
|
This thread executes all actions within a shared request queue to prevent
|
||||||
|
overlapping actions.
|
||||||
|
|
||||||
|
Connection objects are proxies to the real connections, contain the shared
|
||||||
|
execution thread, and provide context managers to handle automatically closing
|
||||||
|
connections. Cursors are similarly proxies to the real cursors, and provide
|
||||||
|
async iterators to query results.
|
||||||
|
|
||||||
|
|
||||||
|
License
|
||||||
|
-------
|
||||||
|
|
||||||
|
aiosqlite is copyright `Amethyst Reese <https://noswap.com>`_, and licensed under the
|
||||||
|
MIT license. I am providing code in this repository to you under an open source
|
||||||
|
license. This is my personal repository; the license you receive to my code
|
||||||
|
is from me and not from my employer. See the `LICENSE`_ file for details.
|
||||||
|
|
||||||
|
.. _LICENSE: https://github.com/omnilib/aiosqlite/blob/master/LICENSE
|
||||||
|
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta name="generator" content="simple503 version 0.4.0" />
|
||||||
|
<meta name="pypi:repository-version" content="1.0" />
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<title>
|
||||||
|
Links for aiosqlite
|
||||||
|
</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>
|
||||||
|
Links for aiosqlite
|
||||||
|
</h1>
|
||||||
|
<a href="/aiosqlite/aiosqlite-0.21.0-py3-none-any.whl#sha256=2549cf4057f95f53dcba16f2b64e8e2791d7e1adedb13197dd8ed77bb226d7d0" data-requires-python=">=3.9" data-dist-info-metadata="sha256=cda37b4c739073560a18b8d818fad2214d6497014bd9640950afdc69172301cd">
|
||||||
|
aiosqlite-0.21.0-py3-none-any.whl
|
||||||
|
</a>
|
||||||
|
<br />
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,250 @@
|
||||||
|
Metadata-Version: 2.4
|
||||||
|
Name: asyncua
|
||||||
|
Version: 1.1.8
|
||||||
|
Summary: Pure Python OPC-UA client and server library
|
||||||
|
Project-URL: Homepage, http://freeopcua.github.io/
|
||||||
|
Project-URL: Repository, https://github.com/FreeOpcUa/opcua-asyncio
|
||||||
|
Author-email: Olivier Roulet-Dubonnet <olivier.roulet@gmail.com>
|
||||||
|
License: GNU Lesser General Public License v3 or later
|
||||||
|
License-File: COPYING
|
||||||
|
Classifier: Development Status :: 4 - Beta
|
||||||
|
Classifier: Intended Audience :: Developers
|
||||||
|
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)
|
||||||
|
Classifier: Operating System :: OS Independent
|
||||||
|
Classifier: Programming Language :: Python :: 3.9
|
||||||
|
Classifier: Programming Language :: Python :: 3.10
|
||||||
|
Classifier: Programming Language :: Python :: 3.11
|
||||||
|
Classifier: Programming Language :: Python :: 3.12
|
||||||
|
Classifier: Programming Language :: Python :: 3.13
|
||||||
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
||||||
|
Requires-Python: >=3.9
|
||||||
|
Requires-Dist: aiofiles
|
||||||
|
Requires-Dist: aiosqlite
|
||||||
|
Requires-Dist: cryptography>42.0.0
|
||||||
|
Requires-Dist: pyopenssl>23.2.0
|
||||||
|
Requires-Dist: python-dateutil
|
||||||
|
Requires-Dist: pytz
|
||||||
|
Requires-Dist: sortedcontainers
|
||||||
|
Requires-Dist: typing-extensions
|
||||||
|
Requires-Dist: wait-for2==0.3.2; python_version < '3.12'
|
||||||
|
Description-Content-Type: text/markdown
|
||||||
|
|
||||||
|
OPC UA / IEC 62541 Client and Server for Python >= 3.8 and pypy3 .
|
||||||
|
http://freeopcua.github.io/, https://github.com/FreeOpcUa/opcua-asyncio
|
||||||
|
|
||||||
|
[](https://github.com/FreeOpcUa/opcua-asyncio/actions)
|
||||||
|
|
||||||
|
[](https://badge.fury.io/py/asyncua)
|
||||||
|
|
||||||
|
# opcua-asyncio
|
||||||
|
|
||||||
|
opcua-asyncio is an asyncio-based asynchronous OPC UA client and server based on python-opcua, removing support of python < 3.8.
|
||||||
|
Asynchronous programming allows for simpler code (e.g. less need for locks) and can potentially provide performance improvements.
|
||||||
|
This library also provides a [synchronous wrapper](https://github.com/FreeOpcUa/opcua-asyncio/blob/master/asyncua/sync.py) over the async API, which can be used in synchronous code instead of python-opcua.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
The OPC UA binary protocol implementation has undergone extensive testing with various OPC UA stacks. The API offers both a low level interface to send and receive all UA defined structures and high level classes allowing to write a server or a client in a few lines. It is easy to mix high level objects and low level UA calls in one application. Most low level code is autogenerated from xml specification.
|
||||||
|
|
||||||
|
The test coverage reported by coverage.py is over 95%, with the majority of the non-tested code being autogenerated code that is not currently in use.
|
||||||
|
|
||||||
|
# Warnings
|
||||||
|
|
||||||
|
opcua-asyncio is open-source and comes with absolutely no warranty. We try to keep it as bug-free as possible, and try to keep the API stable, but bugs and API changes will happen! In particular, API changes are expected to take place prior to any 1.0 release.
|
||||||
|
|
||||||
|
Some renaming of methods from get_xx to read_xx and set_xx to write_xxx have been made to better follow OPC UA naming conventions
|
||||||
|
|
||||||
|
Version 0.9.9 introduces some argument renaming due to more automatic code generation. Especially the arguments to NodeId, BrowseName, LocalizedText and DataValue, which are now CamelCase instead of lower case, following the OPC UA conventions used in all other structures in this library
|
||||||
|
|
||||||
|
# Installation
|
||||||
|
|
||||||
|
With uv/pip
|
||||||
|
|
||||||
|
uv pip install asyncua
|
||||||
|
|
||||||
|
# Usage
|
||||||
|
|
||||||
|
We assume that you already have some experience with Python, the asyncio module, the async / await syntax and the concept of asyncio Tasks.
|
||||||
|
|
||||||
|
## Client class
|
||||||
|
|
||||||
|
The `Client` class provides a high level API for connecting to OPC UA servers, session management and access to basic
|
||||||
|
address space services.
|
||||||
|
The client can be used as a context manager. The client will then automatically connect and disconnect withing the `with`syntax.
|
||||||
|
|
||||||
|
```python
|
||||||
|
from asyncua import Client
|
||||||
|
|
||||||
|
async with Client(url='opc.tcp://localhost:4840/freeopcua/server/') as client:
|
||||||
|
while True:
|
||||||
|
# Do something with client
|
||||||
|
node = client.get_node('i=85')
|
||||||
|
value = await node.read_value()
|
||||||
|
```
|
||||||
|
|
||||||
|
Of course, you can also call the `connect`, `disconnect` methods yourself if you do not want to use the context manager.
|
||||||
|
|
||||||
|
See the example folder and the code for more information on the client API.
|
||||||
|
|
||||||
|
## Node class
|
||||||
|
|
||||||
|
The `Node` class provides a high level API for management of nodes as well as data access services.
|
||||||
|
|
||||||
|
## Subscription class
|
||||||
|
|
||||||
|
The `Subscription` class provides a high level API for management of monitored items.
|
||||||
|
|
||||||
|
## Server class
|
||||||
|
|
||||||
|
The `Server` class provides a high level API for creation of OPC UA server instances.
|
||||||
|
|
||||||
|
# Documentation
|
||||||
|
|
||||||
|
The documentation is available here [ReadTheDocs](http://opcua-asyncio.readthedocs.org/en/latest/).
|
||||||
|
|
||||||
|
The API remains mostly unchanged with regards to [python-opcua](http://opcua-asyncio.rtfd.io/).
|
||||||
|
The main difference is that most methods are now asynchronous.
|
||||||
|
Please have a look at [the examples](https://github.com/FreeOpcUa/opcua-asyncio/blob/master/examples) and/or the code.
|
||||||
|
|
||||||
|
A simple GUI client is available at: https://github.com/FreeOpcUa/opcua-client-gui
|
||||||
|
|
||||||
|
Browse the examples: https://github.com/FreeOpcUa/opcua-asyncio/tree/master/examples
|
||||||
|
|
||||||
|
The minimal examples are a good starting point.
|
||||||
|
Minimal client example: https://github.com/FreeOpcUa/opcua-asyncio/blob/master/examples/client-minimal.py
|
||||||
|
Minimal server example: https://github.com/FreeOpcUa/opcua-asyncio/blob/master/examples/server-minimal.py
|
||||||
|
|
||||||
|
A set of command line tools also available: https://github.com/FreeOpcUa/opcua-asyncio/tree/master/tools
|
||||||
|
|
||||||
|
- `uadiscover `(find_servers, get_endpoints and find_servers_on_network calls)
|
||||||
|
- `uals `(list children of a node)
|
||||||
|
- `uahistoryread`
|
||||||
|
- `uaread `(read attribute of a node)
|
||||||
|
- `uawrite `(write attribute of a node)
|
||||||
|
- `uacall `(call method of a node)
|
||||||
|
- `uasubscribe `(subscribe to a node and print datachange events)
|
||||||
|
- `uaclient `(connect to server and start python shell)
|
||||||
|
- `uaserver `(starts a demo OPC UA server)
|
||||||
|
`tools/uaserver --populate --certificate cert.pem --private_key pk.pem`
|
||||||
|
|
||||||
|
How to generate certificate: https://github.com/FreeOpcUa/opcua-asyncio/tree/master/examples/generate_certificate.sh
|
||||||
|
|
||||||
|
## Client support
|
||||||
|
|
||||||
|
What works:
|
||||||
|
|
||||||
|
- connection to server, opening channel, session
|
||||||
|
- browsing and reading attributes value
|
||||||
|
- getting nodes by path and nodeids
|
||||||
|
- creating subscriptions
|
||||||
|
- subscribing to items for data change
|
||||||
|
- subscribing to events
|
||||||
|
- adding nodes
|
||||||
|
- method call
|
||||||
|
- user and password
|
||||||
|
- history read
|
||||||
|
- login with certificate
|
||||||
|
- communication encryption
|
||||||
|
- removing nodes
|
||||||
|
|
||||||
|
Tested servers: freeopcua C++, freeopcua Python, prosys, kepware, beckhoff, winCC, B&R, …
|
||||||
|
|
||||||
|
Not implemented yet:
|
||||||
|
|
||||||
|
- localized text feature
|
||||||
|
- XML protocol
|
||||||
|
- UDP (PubSub stuff)
|
||||||
|
- WebSocket
|
||||||
|
- maybe automatic reconnection...
|
||||||
|
|
||||||
|
## Server support
|
||||||
|
|
||||||
|
What works:
|
||||||
|
|
||||||
|
- creating channel and sessions
|
||||||
|
- read/set attributes and browse
|
||||||
|
- getting nodes by path and nodeids
|
||||||
|
- autogenerate address space from spec
|
||||||
|
- adding nodes to address space
|
||||||
|
- datachange events
|
||||||
|
- events
|
||||||
|
- methods
|
||||||
|
- basic user implementation (one existing user called admin, which can be disabled, all others are read only)
|
||||||
|
- encryption
|
||||||
|
- certificate handling
|
||||||
|
- removing nodes
|
||||||
|
- history support for data change and events
|
||||||
|
- more high level solution to create custom structures
|
||||||
|
|
||||||
|
Tested clients: freeopcua C++, freeopcua Python, uaexpert, prosys, quickopc
|
||||||
|
|
||||||
|
Not yet implemented:
|
||||||
|
|
||||||
|
- UDP (PubSub stuff)
|
||||||
|
- WebSocket
|
||||||
|
- session restore
|
||||||
|
- alarms
|
||||||
|
- XML protocol
|
||||||
|
- views
|
||||||
|
- localized text features
|
||||||
|
- better security model with users and password
|
||||||
|
|
||||||
|
### Running a server on a Raspberry Pi
|
||||||
|
|
||||||
|
Setting up the standard address-space from XML is the most time-consuming step of the startup process which may lead to
|
||||||
|
long startup times on less powerful devices like a Raspberry Pi. By passing a path to a cache-file to the server constructor,
|
||||||
|
a shelve holding the address space will be created during the first startup. All following startups will make use of the
|
||||||
|
cache-file which leads to significantly better startup performance (~3.5 vs 125 seconds on a Raspberry Pi Model B).
|
||||||
|
|
||||||
|
# Development
|
||||||
|
|
||||||
|
Code follows PEP8 apart for line lengths which should be max 160 characters and OPC UA structures that keep camel case
|
||||||
|
from XML definition.
|
||||||
|
|
||||||
|
All protocol code is under opcua directory
|
||||||
|
|
||||||
|
- `asyncua/ua` contains all UA structures from specification, most are autogenerated
|
||||||
|
- `asyncua/common` contains high level objects and methods used both in server and client
|
||||||
|
- `asyncua/client` contains client specific code
|
||||||
|
- `asyncua/server` contains server specific code
|
||||||
|
- `asyncua/utils` contains some utilities function and classes
|
||||||
|
- `asyncua/tools` contains code for command lines tools
|
||||||
|
- `schemas` contains the XML and text files from specification and the python scripts used to autogenerate code
|
||||||
|
- `tests` contains tests
|
||||||
|
- `docs` contains files to auto generate documentation from doc strings
|
||||||
|
- `examples` contains many example files
|
||||||
|
- `examples/sync` contains many example files using sync API
|
||||||
|
- `tools` contains python scripts that can be used to run command line tools from repository without installing
|
||||||
|
|
||||||
|
## Running a command for testing:
|
||||||
|
|
||||||
|
```
|
||||||
|
uv run uals -u opc.tcp://localhost:4840/myserver
|
||||||
|
```
|
||||||
|
|
||||||
|
## Running tests:
|
||||||
|
|
||||||
|
```
|
||||||
|
uv run pytest -v -s tests
|
||||||
|
```
|
||||||
|
|
||||||
|
## Coverage
|
||||||
|
|
||||||
|
```
|
||||||
|
uv run pytest -v -s --cov asyncua --cov-report=html
|
||||||
|
```
|
||||||
|
|
||||||
|
## Linting
|
||||||
|
|
||||||
|
To apply linting checks (including ruff, and mypy) at each commit run,
|
||||||
|
|
||||||
|
```bash
|
||||||
|
uv sync --group lint
|
||||||
|
uv run pre-commit install
|
||||||
|
```
|
||||||
|
|
||||||
|
You can also run all linters on all files with,
|
||||||
|
|
||||||
|
```bash
|
||||||
|
uv run pre-commit run -a
|
||||||
|
```
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta name="generator" content="simple503 version 0.4.0" />
|
||||||
|
<meta name="pypi:repository-version" content="1.0" />
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<title>
|
||||||
|
Links for asyncua
|
||||||
|
</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>
|
||||||
|
Links for asyncua
|
||||||
|
</h1>
|
||||||
|
<a href="/asyncua/asyncua-1.1.8-py3-none-any.whl#sha256=40c57151b93537beb77cb3f1a0190d75cef5326e8c40978de28b69e5b41e6ede" data-requires-python=">=3.9" data-dist-info-metadata="sha256=54ed6b16b77d680fef02438810d634209456528155261466b252b9bc8bfdfc71">
|
||||||
|
asyncua-1.1.8-py3-none-any.whl
|
||||||
|
</a>
|
||||||
|
<br />
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,235 @@
|
||||||
|
Metadata-Version: 2.4
|
||||||
|
Name: attrs
|
||||||
|
Version: 25.4.0
|
||||||
|
Summary: Classes Without Boilerplate
|
||||||
|
Project-URL: Documentation, https://www.attrs.org/
|
||||||
|
Project-URL: Changelog, https://www.attrs.org/en/stable/changelog.html
|
||||||
|
Project-URL: GitHub, https://github.com/python-attrs/attrs
|
||||||
|
Project-URL: Funding, https://github.com/sponsors/hynek
|
||||||
|
Project-URL: Tidelift, https://tidelift.com/subscription/pkg/pypi-attrs?utm_source=pypi-attrs&utm_medium=pypi
|
||||||
|
Author-email: Hynek Schlawack <hs@ox.cx>
|
||||||
|
License-Expression: MIT
|
||||||
|
License-File: LICENSE
|
||||||
|
Keywords: attribute,boilerplate,class
|
||||||
|
Classifier: Development Status :: 5 - Production/Stable
|
||||||
|
Classifier: Programming Language :: Python :: 3.9
|
||||||
|
Classifier: Programming Language :: Python :: 3.10
|
||||||
|
Classifier: Programming Language :: Python :: 3.11
|
||||||
|
Classifier: Programming Language :: Python :: 3.12
|
||||||
|
Classifier: Programming Language :: Python :: 3.13
|
||||||
|
Classifier: Programming Language :: Python :: 3.14
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
||||||
|
Classifier: Typing :: Typed
|
||||||
|
Requires-Python: >=3.9
|
||||||
|
Description-Content-Type: text/markdown
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<a href="https://www.attrs.org/">
|
||||||
|
<img src="https://raw.githubusercontent.com/python-attrs/attrs/main/docs/_static/attrs_logo.svg" width="35%" alt="attrs" />
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
*attrs* is the Python package that will bring back the **joy** of **writing classes** by relieving you from the drudgery of implementing object protocols (aka [dunder methods](https://www.attrs.org/en/latest/glossary.html#term-dunder-methods)).
|
||||||
|
Trusted by NASA for [Mars missions since 2020](https://github.com/readme/featured/nasa-ingenuity-helicopter)!
|
||||||
|
|
||||||
|
Its main goal is to help you to write **concise** and **correct** software without slowing down your code.
|
||||||
|
|
||||||
|
|
||||||
|
## Sponsors
|
||||||
|
|
||||||
|
*attrs* would not be possible without our [amazing sponsors](https://github.com/sponsors/hynek).
|
||||||
|
Especially those generously supporting us at the *The Organization* tier and higher:
|
||||||
|
|
||||||
|
<!-- sponsor-break-begin -->
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
|
||||||
|
<!-- [[[cog
|
||||||
|
import pathlib, tomllib
|
||||||
|
|
||||||
|
for sponsor in tomllib.loads(pathlib.Path("pyproject.toml").read_text())["tool"]["sponcon"]["sponsors"]:
|
||||||
|
print(f'<a href="{sponsor["url"]}"><img title="{sponsor["title"]}" src="https://www.attrs.org/en/25.4.0/_static/sponsors/{sponsor["img"]}" width="190" /></a>')
|
||||||
|
]]] -->
|
||||||
|
<a href="https://www.variomedia.de/"><img title="Variomedia AG" src="https://www.attrs.org/en/25.4.0/_static/sponsors/Variomedia.svg" width="190" /></a>
|
||||||
|
<a href="https://tidelift.com/?utm_source=lifter&utm_medium=referral&utm_campaign=hynek"><img title="Tidelift" src="https://www.attrs.org/en/25.4.0/_static/sponsors/Tidelift.svg" width="190" /></a>
|
||||||
|
<a href="https://privacy-solutions.org/"><img title="Privacy Solutions" src="https://www.attrs.org/en/25.4.0/_static/sponsors/Privacy-Solutions.svg" width="190" /></a>
|
||||||
|
<a href="https://filepreviews.io/"><img title="FilePreviews" src="https://www.attrs.org/en/25.4.0/_static/sponsors/FilePreviews.svg" width="190" /></a>
|
||||||
|
<a href="https://polar.sh/"><img title="Polar" src="https://www.attrs.org/en/25.4.0/_static/sponsors/Polar.svg" width="190" /></a>
|
||||||
|
<!-- [[[end]]] -->
|
||||||
|
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<!-- sponsor-break-end -->
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<strong>Please consider <a href="https://github.com/sponsors/hynek">joining them</a> to help make <em>attrs</em>’s maintenance more sustainable!</strong>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<!-- teaser-end -->
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
*attrs* gives you a class decorator and a way to declaratively define the attributes on that class:
|
||||||
|
|
||||||
|
<!-- code-begin -->
|
||||||
|
|
||||||
|
```pycon
|
||||||
|
>>> from attrs import asdict, define, make_class, Factory
|
||||||
|
|
||||||
|
>>> @define
|
||||||
|
... class SomeClass:
|
||||||
|
... a_number: int = 42
|
||||||
|
... list_of_numbers: list[int] = Factory(list)
|
||||||
|
...
|
||||||
|
... def hard_math(self, another_number):
|
||||||
|
... return self.a_number + sum(self.list_of_numbers) * another_number
|
||||||
|
|
||||||
|
|
||||||
|
>>> sc = SomeClass(1, [1, 2, 3])
|
||||||
|
>>> sc
|
||||||
|
SomeClass(a_number=1, list_of_numbers=[1, 2, 3])
|
||||||
|
|
||||||
|
>>> sc.hard_math(3)
|
||||||
|
19
|
||||||
|
>>> sc == SomeClass(1, [1, 2, 3])
|
||||||
|
True
|
||||||
|
>>> sc != SomeClass(2, [3, 2, 1])
|
||||||
|
True
|
||||||
|
|
||||||
|
>>> asdict(sc)
|
||||||
|
{'a_number': 1, 'list_of_numbers': [1, 2, 3]}
|
||||||
|
|
||||||
|
>>> SomeClass()
|
||||||
|
SomeClass(a_number=42, list_of_numbers=[])
|
||||||
|
|
||||||
|
>>> C = make_class("C", ["a", "b"])
|
||||||
|
>>> C("foo", "bar")
|
||||||
|
C(a='foo', b='bar')
|
||||||
|
```
|
||||||
|
|
||||||
|
After *declaring* your attributes, *attrs* gives you:
|
||||||
|
|
||||||
|
- a concise and explicit overview of the class's attributes,
|
||||||
|
- a nice human-readable `__repr__`,
|
||||||
|
- equality-checking methods,
|
||||||
|
- an initializer,
|
||||||
|
- and much more,
|
||||||
|
|
||||||
|
*without* writing dull boilerplate code again and again and *without* runtime performance penalties.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
This example uses *attrs*'s modern APIs that have been introduced in version 20.1.0, and the *attrs* package import name that has been added in version 21.3.0.
|
||||||
|
The classic APIs (`@attr.s`, `attr.ib`, plus their serious-business aliases) and the `attr` package import name will remain **indefinitely**.
|
||||||
|
|
||||||
|
Check out [*On The Core API Names*](https://www.attrs.org/en/latest/names.html) for an in-depth explanation!
|
||||||
|
|
||||||
|
|
||||||
|
### Hate Type Annotations!?
|
||||||
|
|
||||||
|
No problem!
|
||||||
|
Types are entirely **optional** with *attrs*.
|
||||||
|
Simply assign `attrs.field()` to the attributes instead of annotating them with types:
|
||||||
|
|
||||||
|
```python
|
||||||
|
from attrs import define, field
|
||||||
|
|
||||||
|
@define
|
||||||
|
class SomeClass:
|
||||||
|
a_number = field(default=42)
|
||||||
|
list_of_numbers = field(factory=list)
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## Data Classes
|
||||||
|
|
||||||
|
On the tin, *attrs* might remind you of `dataclasses` (and indeed, `dataclasses` [are a descendant](https://hynek.me/articles/import-attrs/) of *attrs*).
|
||||||
|
In practice it does a lot more and is more flexible.
|
||||||
|
For instance, it allows you to define [special handling of NumPy arrays for equality checks](https://www.attrs.org/en/stable/comparison.html#customization), allows more ways to [plug into the initialization process](https://www.attrs.org/en/stable/init.html#hooking-yourself-into-initialization), has a replacement for `__init_subclass__`, and allows for stepping through the generated methods using a debugger.
|
||||||
|
|
||||||
|
For more details, please refer to our [comparison page](https://www.attrs.org/en/stable/why.html#data-classes), but generally speaking, we are more likely to commit crimes against nature to make things work that one would expect to work, but that are quite complicated in practice.
|
||||||
|
|
||||||
|
|
||||||
|
## Project Information
|
||||||
|
|
||||||
|
- [**Changelog**](https://www.attrs.org/en/stable/changelog.html)
|
||||||
|
- [**Documentation**](https://www.attrs.org/)
|
||||||
|
- [**PyPI**](https://pypi.org/project/attrs/)
|
||||||
|
- [**Source Code**](https://github.com/python-attrs/attrs)
|
||||||
|
- [**Contributing**](https://github.com/python-attrs/attrs/blob/main/.github/CONTRIBUTING.md)
|
||||||
|
- [**Third-party Extensions**](https://github.com/python-attrs/attrs/wiki/Extensions-to-attrs)
|
||||||
|
- **Get Help**: use the `python-attrs` tag on [Stack Overflow](https://stackoverflow.com/questions/tagged/python-attrs)
|
||||||
|
|
||||||
|
|
||||||
|
### *attrs* for Enterprise
|
||||||
|
|
||||||
|
Available as part of the [Tidelift Subscription](https://tidelift.com/?utm_source=lifter&utm_medium=referral&utm_campaign=hynek).
|
||||||
|
|
||||||
|
The maintainers of *attrs* and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source packages you use to build your applications.
|
||||||
|
Save time, reduce risk, and improve code health, while paying the maintainers of the exact packages you use.
|
||||||
|
|
||||||
|
## Release Information
|
||||||
|
|
||||||
|
### Backwards-incompatible Changes
|
||||||
|
|
||||||
|
- Class-level `kw_only=True` behavior is now consistent with `dataclasses`.
|
||||||
|
|
||||||
|
Previously, a class that sets `kw_only=True` makes all attributes keyword-only, including those from base classes.
|
||||||
|
If an attribute sets `kw_only=False`, that setting is ignored, and it is still made keyword-only.
|
||||||
|
|
||||||
|
Now, only the attributes defined in that class that doesn't explicitly set `kw_only=False` are made keyword-only.
|
||||||
|
|
||||||
|
This shouldn't be a problem for most users, unless you have a pattern like this:
|
||||||
|
|
||||||
|
```python
|
||||||
|
@attrs.define(kw_only=True)
|
||||||
|
class Base:
|
||||||
|
a: int
|
||||||
|
b: int = attrs.field(default=1, kw_only=False)
|
||||||
|
|
||||||
|
@attrs.define
|
||||||
|
class Subclass(Base):
|
||||||
|
c: int
|
||||||
|
```
|
||||||
|
|
||||||
|
Here, we have a `kw_only=True` *attrs* class (`Base`) with an attribute that sets `kw_only=False` and has a default (`Base.b`), and then create a subclass (`Subclass`) with required arguments (`Subclass.c`).
|
||||||
|
Previously this would work, since it would make `Base.b` keyword-only, but now this fails since `Base.b` is positional, and we have a required positional argument (`Subclass.c`) following another argument with defaults.
|
||||||
|
[#1457](https://github.com/python-attrs/attrs/issues/1457)
|
||||||
|
|
||||||
|
|
||||||
|
### Changes
|
||||||
|
|
||||||
|
- Values passed to the `__init__()` method of `attrs` classes are now correctly passed to `__attrs_pre_init__()` instead of their default values (in cases where *kw_only* was not specified).
|
||||||
|
[#1427](https://github.com/python-attrs/attrs/issues/1427)
|
||||||
|
- Added support for Python 3.14 and [PEP 749](https://peps.python.org/pep-0749/).
|
||||||
|
[#1446](https://github.com/python-attrs/attrs/issues/1446),
|
||||||
|
[#1451](https://github.com/python-attrs/attrs/issues/1451)
|
||||||
|
- `attrs.validators.deep_mapping()` now allows to leave out either *key_validator* xor *value_validator*.
|
||||||
|
[#1448](https://github.com/python-attrs/attrs/issues/1448)
|
||||||
|
- `attrs.validators.deep_iterator()` and `attrs.validators.deep_mapping()` now accept lists and tuples for all validators and wrap them into a `attrs.validators.and_()`.
|
||||||
|
[#1449](https://github.com/python-attrs/attrs/issues/1449)
|
||||||
|
- Added a new **experimental** way to inspect classes:
|
||||||
|
|
||||||
|
`attrs.inspect(cls)` returns the _effective_ class-wide parameters that were used by *attrs* to construct the class.
|
||||||
|
|
||||||
|
The returned class is the same data structure that *attrs* uses internally to decide how to construct the final class.
|
||||||
|
[#1454](https://github.com/python-attrs/attrs/issues/1454)
|
||||||
|
- Fixed annotations for `attrs.field(converter=...)`.
|
||||||
|
Previously, a `tuple` of converters was only accepted if it had exactly one element.
|
||||||
|
[#1461](https://github.com/python-attrs/attrs/issues/1461)
|
||||||
|
- The performance of `attrs.asdict()` has been improved by 45–260%.
|
||||||
|
[#1463](https://github.com/python-attrs/attrs/issues/1463)
|
||||||
|
- The performance of `attrs.astuple()` has been improved by 49–270%.
|
||||||
|
[#1469](https://github.com/python-attrs/attrs/issues/1469)
|
||||||
|
- The type annotation for `attrs.validators.or_()` now allows for different types of validators.
|
||||||
|
|
||||||
|
This was only an issue on Pyright.
|
||||||
|
[#1474](https://github.com/python-attrs/attrs/issues/1474)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
[Full changelog →](https://www.attrs.org/en/stable/changelog.html)
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta name="generator" content="simple503 version 0.4.0" />
|
||||||
|
<meta name="pypi:repository-version" content="1.0" />
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<title>
|
||||||
|
Links for attrs
|
||||||
|
</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>
|
||||||
|
Links for attrs
|
||||||
|
</h1>
|
||||||
|
<a href="/attrs/attrs-25.4.0-py3-none-any.whl#sha256=adcf7e2a1fb3b36ac48d97835bb6d8ade15b8dcce26aba8bf1d14847b57a3373" data-requires-python=">=3.9" data-dist-info-metadata="sha256=d917abc63eda81c311c62c1d92dea50b682ea870269062821f5de75962bb6684">
|
||||||
|
attrs-25.4.0-py3-none-any.whl
|
||||||
|
</a>
|
||||||
|
<br />
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,24 @@
|
||||||
|
Metadata-Version: 2.1
|
||||||
|
Name: beniget
|
||||||
|
Version: 0.4.2.post1
|
||||||
|
Summary: Extract semantic information about static Python code
|
||||||
|
Home-page: https://github.com/serge-sans-paille/beniget/
|
||||||
|
Author: serge-sans-paille
|
||||||
|
Author-email: serge.guelton@telecom-bretagne.eu
|
||||||
|
License: BSD 3-Clause
|
||||||
|
Classifier: Development Status :: 4 - Beta
|
||||||
|
Classifier: Environment :: Console
|
||||||
|
Classifier: Intended Audience :: Developers
|
||||||
|
Classifier: License :: OSI Approved :: BSD License
|
||||||
|
Classifier: Natural Language :: English
|
||||||
|
Classifier: Programming Language :: Python :: 3
|
||||||
|
Requires-Python: >=3.6
|
||||||
|
License-File: LICENSE
|
||||||
|
Requires-Dist: gast >=0.5.0
|
||||||
|
|
||||||
|
|
||||||
|
A static analyzer for Python code.
|
||||||
|
|
||||||
|
Beniget provides a static over-approximation of the global and
|
||||||
|
local definitions inside Python Module/Class/Function.
|
||||||
|
It can also compute def-use chains from each definition.
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta name="generator" content="simple503 version 0.4.0" />
|
||||||
|
<meta name="pypi:repository-version" content="1.0" />
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<title>
|
||||||
|
Links for beniget
|
||||||
|
</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>
|
||||||
|
Links for beniget
|
||||||
|
</h1>
|
||||||
|
<a href="/beniget/beniget-0.4.2.post1-py3-none-any.whl#sha256=e1b336e7b5f2ae201e6cc21f533486669f1b9eccba018dcff5969cd52f1c20ba" data-requires-python=">=3.6" data-dist-info-metadata="sha256=93abce9ee6ad15817ded0cace625dacfe441a5a18b16267b7d36d5a85584412e">
|
||||||
|
beniget-0.4.2.post1-py3-none-any.whl
|
||||||
|
</a>
|
||||||
|
<br />
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,186 @@
|
||||||
|
Metadata-Version: 2.1
|
||||||
|
Name: boto3
|
||||||
|
Version: 1.41.4
|
||||||
|
Summary: The AWS SDK for Python
|
||||||
|
Home-page: https://github.com/boto/boto3
|
||||||
|
Author: Amazon Web Services
|
||||||
|
License: Apache-2.0
|
||||||
|
Project-URL: Documentation, https://boto3.amazonaws.com/v1/documentation/api/latest/index.html
|
||||||
|
Project-URL: Source, https://github.com/boto/boto3
|
||||||
|
Classifier: Development Status :: 5 - Production/Stable
|
||||||
|
Classifier: Intended Audience :: Developers
|
||||||
|
Classifier: Natural Language :: English
|
||||||
|
Classifier: Programming Language :: Python
|
||||||
|
Classifier: Programming Language :: Python :: 3
|
||||||
|
Classifier: Programming Language :: Python :: 3 :: Only
|
||||||
|
Classifier: Programming Language :: Python :: 3.9
|
||||||
|
Classifier: Programming Language :: Python :: 3.10
|
||||||
|
Classifier: Programming Language :: Python :: 3.11
|
||||||
|
Classifier: Programming Language :: Python :: 3.12
|
||||||
|
Classifier: Programming Language :: Python :: 3.13
|
||||||
|
Classifier: Programming Language :: Python :: 3.14
|
||||||
|
Requires-Python: >= 3.9
|
||||||
|
License-File: LICENSE
|
||||||
|
License-File: NOTICE
|
||||||
|
Requires-Dist: botocore (<1.42.0,>=1.41.4)
|
||||||
|
Requires-Dist: jmespath (<2.0.0,>=0.7.1)
|
||||||
|
Requires-Dist: s3transfer (<0.16.0,>=0.15.0)
|
||||||
|
Provides-Extra: crt
|
||||||
|
Requires-Dist: botocore[crt] (<2.0a0,>=1.21.0) ; extra == 'crt'
|
||||||
|
|
||||||
|
===============================
|
||||||
|
Boto3 - The AWS SDK for Python
|
||||||
|
===============================
|
||||||
|
|
||||||
|
|Version| |Python| |License|
|
||||||
|
|
||||||
|
Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK) for
|
||||||
|
Python, which allows Python developers to write software that makes use
|
||||||
|
of services like Amazon S3 and Amazon EC2. You can find the latest, most
|
||||||
|
up to date, documentation at our `doc site`_, including a list of
|
||||||
|
services that are supported.
|
||||||
|
|
||||||
|
Boto3 is maintained and published by `Amazon Web Services`_.
|
||||||
|
|
||||||
|
Boto (pronounced boh-toh) was named after the fresh water dolphin native to the Amazon river. The name was chosen by the author of the original Boto library, Mitch Garnaat, as a reference to the company.
|
||||||
|
|
||||||
|
Notices
|
||||||
|
-------
|
||||||
|
|
||||||
|
On 2026-04-29, support for Python 3.9 will end for Boto3. This follows the
|
||||||
|
Python Software Foundation `end of support <https://peps.python.org/pep-0596/#lifespan>`__
|
||||||
|
for the runtime which occurred on 2025-10-31.
|
||||||
|
|
||||||
|
On 2025-04-22, support for Python 3.8 ended for Boto3. This follows the
|
||||||
|
Python Software Foundation `end of support <https://peps.python.org/pep-0569/#lifespan>`__
|
||||||
|
for the runtime which occurred on 2024-10-07.
|
||||||
|
|
||||||
|
For more information on deprecations, see this
|
||||||
|
`blog post <https://aws.amazon.com/blogs/developer/python-support-policy-updates-for-aws-sdks-and-tools/>`__.
|
||||||
|
|
||||||
|
.. _boto: https://docs.pythonboto.org/
|
||||||
|
.. _`doc site`: https://boto3.amazonaws.com/v1/documentation/api/latest/index.html
|
||||||
|
.. _`Amazon Web Services`: https://aws.amazon.com/what-is-aws/
|
||||||
|
.. |Python| image:: https://img.shields.io/pypi/pyversions/boto3.svg?style=flat
|
||||||
|
:target: https://pypi.python.org/pypi/boto3/
|
||||||
|
:alt: Python Versions
|
||||||
|
.. |Version| image:: http://img.shields.io/pypi/v/boto3.svg?style=flat
|
||||||
|
:target: https://pypi.python.org/pypi/boto3/
|
||||||
|
:alt: Package Version
|
||||||
|
.. |License| image:: http://img.shields.io/pypi/l/boto3.svg?style=flat
|
||||||
|
:target: https://github.com/boto/boto3/blob/develop/LICENSE
|
||||||
|
:alt: License
|
||||||
|
|
||||||
|
Getting Started
|
||||||
|
---------------
|
||||||
|
Assuming that you have a supported version of Python installed, you can first
|
||||||
|
set up your environment with:
|
||||||
|
|
||||||
|
.. code-block:: sh
|
||||||
|
|
||||||
|
$ python -m venv .venv
|
||||||
|
...
|
||||||
|
$ . .venv/bin/activate
|
||||||
|
|
||||||
|
Then, you can install boto3 from PyPI with:
|
||||||
|
|
||||||
|
.. code-block:: sh
|
||||||
|
|
||||||
|
$ python -m pip install boto3
|
||||||
|
|
||||||
|
or install from source with:
|
||||||
|
|
||||||
|
.. code-block:: sh
|
||||||
|
|
||||||
|
$ git clone https://github.com/boto/boto3.git
|
||||||
|
$ cd boto3
|
||||||
|
$ python -m pip install -r requirements.txt
|
||||||
|
$ python -m pip install -e .
|
||||||
|
|
||||||
|
|
||||||
|
Using Boto3
|
||||||
|
~~~~~~~~~~~~~~
|
||||||
|
After installing boto3
|
||||||
|
|
||||||
|
Next, set up credentials (in e.g. ``~/.aws/credentials``):
|
||||||
|
|
||||||
|
.. code-block:: ini
|
||||||
|
|
||||||
|
[default]
|
||||||
|
aws_access_key_id = YOUR_KEY
|
||||||
|
aws_secret_access_key = YOUR_SECRET
|
||||||
|
|
||||||
|
Then, set up a default region (in e.g. ``~/.aws/config``):
|
||||||
|
|
||||||
|
.. code-block:: ini
|
||||||
|
|
||||||
|
[default]
|
||||||
|
region=us-east-1
|
||||||
|
|
||||||
|
Other credential configuration methods can be found `here <https://boto3.amazonaws.com/v1/documentation/api/latest/guide/credentials.html>`__
|
||||||
|
|
||||||
|
Then, from a Python interpreter:
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
|
>>> import boto3
|
||||||
|
>>> s3 = boto3.resource('s3')
|
||||||
|
>>> for bucket in s3.buckets.all():
|
||||||
|
print(bucket.name)
|
||||||
|
|
||||||
|
Running Tests
|
||||||
|
~~~~~~~~~~~~~
|
||||||
|
You can run tests in all supported Python versions using ``tox``. By default,
|
||||||
|
it will run all of the unit and functional tests, but you can also specify your own
|
||||||
|
``pytest`` options. Note that this requires that you have all supported
|
||||||
|
versions of Python installed, otherwise you must pass ``-e`` or run the
|
||||||
|
``pytest`` command directly:
|
||||||
|
|
||||||
|
.. code-block:: sh
|
||||||
|
|
||||||
|
$ tox
|
||||||
|
$ tox -- unit/test_session.py
|
||||||
|
$ tox -e py26,py33 -- integration/
|
||||||
|
|
||||||
|
You can also run individual tests with your default Python version:
|
||||||
|
|
||||||
|
.. code-block:: sh
|
||||||
|
|
||||||
|
$ pytest tests/unit
|
||||||
|
|
||||||
|
|
||||||
|
Getting Help
|
||||||
|
------------
|
||||||
|
|
||||||
|
We use GitHub issues for tracking bugs and feature requests and have limited
|
||||||
|
bandwidth to address them. Please use these community resources for getting
|
||||||
|
help:
|
||||||
|
|
||||||
|
* Ask a question on `Stack Overflow <https://stackoverflow.com/>`__ and tag it with `boto3 <https://stackoverflow.com/questions/tagged/boto3>`__
|
||||||
|
* Open a support ticket with `AWS Support <https://console.aws.amazon.com/support/home#/>`__
|
||||||
|
* If it turns out that you may have found a bug, please `open an issue <https://github.com/boto/boto3/issues/new>`__
|
||||||
|
|
||||||
|
|
||||||
|
Contributing
|
||||||
|
------------
|
||||||
|
|
||||||
|
We value feedback and contributions from our community. Whether it's a bug report, new feature, correction, or additional documentation, we welcome your issues and pull requests. Please read through this `CONTRIBUTING <https://github.com/boto/boto3/blob/develop/CONTRIBUTING.rst>`__ document before submitting any issues or pull requests to ensure we have all the necessary information to effectively respond to your contribution.
|
||||||
|
|
||||||
|
|
||||||
|
Maintenance and Support for SDK Major Versions
|
||||||
|
----------------------------------------------
|
||||||
|
|
||||||
|
Boto3 was made generally available on 06/22/2015 and is currently in the full support phase of the availability life cycle.
|
||||||
|
|
||||||
|
For information about maintenance and support for SDK major versions and their underlying dependencies, see the following in the AWS SDKs and Tools Shared Configuration and Credentials Reference Guide:
|
||||||
|
|
||||||
|
* `AWS SDKs and Tools Maintenance Policy <https://docs.aws.amazon.com/sdkref/latest/guide/maint-policy.html>`__
|
||||||
|
* `AWS SDKs and Tools Version Support Matrix <https://docs.aws.amazon.com/sdkref/latest/guide/version-support-matrix.html>`__
|
||||||
|
|
||||||
|
|
||||||
|
More Resources
|
||||||
|
--------------
|
||||||
|
|
||||||
|
* `NOTICE <https://github.com/boto/boto3/blob/develop/NOTICE>`__
|
||||||
|
* `Changelog <https://github.com/boto/boto3/blob/develop/CHANGELOG.rst>`__
|
||||||
|
* `License <https://github.com/boto/boto3/blob/develop/LICENSE>`__
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta name="generator" content="simple503 version 0.4.0" />
|
||||||
|
<meta name="pypi:repository-version" content="1.0" />
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<title>
|
||||||
|
Links for boto3
|
||||||
|
</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>
|
||||||
|
Links for boto3
|
||||||
|
</h1>
|
||||||
|
<a href="/boto3/boto3-1.41.4-py3-none-any.whl#sha256=77d84b7ce890a9b0c6a8993f8de106d8cf8138f332a4685e6de453965e60cb24" data-requires-python=">= 3.9" data-dist-info-metadata="sha256=c263458fb50f5617ae8ff675602ce4b3eedbbaa5c7b7ccf58a72adc50ea35e56">
|
||||||
|
boto3-1.41.4-py3-none-any.whl
|
||||||
|
</a>
|
||||||
|
<br />
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,146 @@
|
||||||
|
Metadata-Version: 2.1
|
||||||
|
Name: botocore
|
||||||
|
Version: 1.40.70
|
||||||
|
Summary: Low-level, data-driven core of boto 3.
|
||||||
|
Home-page: https://github.com/boto/botocore
|
||||||
|
Author: Amazon Web Services
|
||||||
|
License: Apache-2.0
|
||||||
|
Classifier: Development Status :: 5 - Production/Stable
|
||||||
|
Classifier: Intended Audience :: Developers
|
||||||
|
Classifier: Intended Audience :: System Administrators
|
||||||
|
Classifier: Natural Language :: English
|
||||||
|
Classifier: Programming Language :: Python
|
||||||
|
Classifier: Programming Language :: Python :: 3 :: Only
|
||||||
|
Classifier: Programming Language :: Python :: 3
|
||||||
|
Classifier: Programming Language :: Python :: 3.9
|
||||||
|
Classifier: Programming Language :: Python :: 3.10
|
||||||
|
Classifier: Programming Language :: Python :: 3.11
|
||||||
|
Classifier: Programming Language :: Python :: 3.12
|
||||||
|
Classifier: Programming Language :: Python :: 3.13
|
||||||
|
Classifier: Programming Language :: Python :: 3.14
|
||||||
|
Requires-Python: >= 3.9
|
||||||
|
License-File: LICENSE.txt
|
||||||
|
License-File: NOTICE
|
||||||
|
Requires-Dist: jmespath (<2.0.0,>=0.7.1)
|
||||||
|
Requires-Dist: python-dateutil (<3.0.0,>=2.1)
|
||||||
|
Requires-Dist: urllib3 (<1.27,>=1.25.4) ; python_version < "3.10"
|
||||||
|
Requires-Dist: urllib3 (!=2.2.0,<3,>=1.25.4) ; python_version >= "3.10"
|
||||||
|
Provides-Extra: crt
|
||||||
|
Requires-Dist: awscrt (==0.27.6) ; extra == 'crt'
|
||||||
|
|
||||||
|
botocore
|
||||||
|
========
|
||||||
|
|
||||||
|
|Version| |Python| |License|
|
||||||
|
|
||||||
|
A low-level interface to a growing number of Amazon Web Services. The
|
||||||
|
botocore package is the foundation for the
|
||||||
|
`AWS CLI <https://github.com/aws/aws-cli>`__ as well as
|
||||||
|
`boto3 <https://github.com/boto/boto3>`__.
|
||||||
|
|
||||||
|
Botocore is maintained and published by `Amazon Web Services`_.
|
||||||
|
|
||||||
|
Notices
|
||||||
|
-------
|
||||||
|
|
||||||
|
On 2025-04-22, support for Python 3.8 ended for Botocore. This follows the
|
||||||
|
Python Software Foundation `end of support <https://peps.python.org/pep-0569/#lifespan>`__
|
||||||
|
for the runtime which occurred on 2024-10-07.
|
||||||
|
For more information, see this `blog post <https://aws.amazon.com/blogs/developer/python-support-policy-updates-for-aws-sdks-and-tools/>`__.
|
||||||
|
|
||||||
|
.. _`Amazon Web Services`: https://aws.amazon.com/what-is-aws/
|
||||||
|
.. |Python| image:: https://img.shields.io/pypi/pyversions/botocore.svg?style=flat
|
||||||
|
:target: https://pypi.python.org/pypi/botocore/
|
||||||
|
:alt: Python Versions
|
||||||
|
.. |Version| image:: http://img.shields.io/pypi/v/botocore.svg?style=flat
|
||||||
|
:target: https://pypi.python.org/pypi/botocore/
|
||||||
|
:alt: Package Version
|
||||||
|
.. |License| image:: http://img.shields.io/pypi/l/botocore.svg?style=flat
|
||||||
|
:target: https://github.com/boto/botocore/blob/develop/LICENSE.txt
|
||||||
|
:alt: License
|
||||||
|
|
||||||
|
Getting Started
|
||||||
|
---------------
|
||||||
|
Assuming that you have Python and ``virtualenv`` installed, set up your environment and install the required dependencies like this or you can install the library using ``pip``:
|
||||||
|
|
||||||
|
.. code-block:: sh
|
||||||
|
|
||||||
|
$ git clone https://github.com/boto/botocore.git
|
||||||
|
$ cd botocore
|
||||||
|
$ python -m venv .venv
|
||||||
|
...
|
||||||
|
$ source .venv/bin/activate
|
||||||
|
$ python -m pip install -r requirements.txt
|
||||||
|
$ python -m pip install -e .
|
||||||
|
|
||||||
|
.. code-block:: sh
|
||||||
|
|
||||||
|
$ pip install botocore
|
||||||
|
|
||||||
|
Using Botocore
|
||||||
|
~~~~~~~~~~~~~~
|
||||||
|
After installing botocore
|
||||||
|
|
||||||
|
Next, set up credentials (in e.g. ``~/.aws/credentials``):
|
||||||
|
|
||||||
|
.. code-block:: ini
|
||||||
|
|
||||||
|
[default]
|
||||||
|
aws_access_key_id = YOUR_KEY
|
||||||
|
aws_secret_access_key = YOUR_SECRET
|
||||||
|
|
||||||
|
Then, set up a default region (in e.g. ``~/.aws/config``):
|
||||||
|
|
||||||
|
.. code-block:: ini
|
||||||
|
|
||||||
|
[default]
|
||||||
|
region=us-east-1
|
||||||
|
|
||||||
|
Other credentials configuration method can be found `here <https://boto3.amazonaws.com/v1/documentation/api/latest/guide/credentials.html>`__
|
||||||
|
|
||||||
|
Then, from a Python interpreter:
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
|
>>> import botocore.session
|
||||||
|
>>> session = botocore.session.get_session()
|
||||||
|
>>> client = session.create_client('ec2')
|
||||||
|
>>> print(client.describe_instances())
|
||||||
|
|
||||||
|
|
||||||
|
Getting Help
|
||||||
|
------------
|
||||||
|
|
||||||
|
We use GitHub issues for tracking bugs and feature requests and have limited
|
||||||
|
bandwidth to address them. Please use these community resources for getting
|
||||||
|
help. Please note many of the same resources available for ``boto3`` are
|
||||||
|
applicable for ``botocore``:
|
||||||
|
|
||||||
|
* Ask a question on `Stack Overflow <https://stackoverflow.com/>`__ and tag it with `boto3 <https://stackoverflow.com/questions/tagged/boto3>`__
|
||||||
|
* Open a support ticket with `AWS Support <https://console.aws.amazon.com/support/home#/>`__
|
||||||
|
* If it turns out that you may have found a bug, please `open an issue <https://github.com/boto/botocore/issues/new/choose>`__
|
||||||
|
|
||||||
|
|
||||||
|
Contributing
|
||||||
|
------------
|
||||||
|
|
||||||
|
We value feedback and contributions from our community. Whether it's a bug report, new feature, correction, or additional documentation, we welcome your issues and pull requests. Please read through this `CONTRIBUTING <https://github.com/boto/botocore/blob/develop/CONTRIBUTING.rst>`__ document before submitting any issues or pull requests to ensure we have all the necessary information to effectively respond to your contribution.
|
||||||
|
|
||||||
|
|
||||||
|
Maintenance and Support for SDK Major Versions
|
||||||
|
----------------------------------------------
|
||||||
|
|
||||||
|
Botocore was made generally available on 06/22/2015 and is currently in the full support phase of the availability life cycle.
|
||||||
|
|
||||||
|
For information about maintenance and support for SDK major versions and their underlying dependencies, see the following in the AWS SDKs and Tools Reference Guide:
|
||||||
|
|
||||||
|
* `AWS SDKs and Tools Maintenance Policy <https://docs.aws.amazon.com/sdkref/latest/guide/maint-policy.html>`__
|
||||||
|
* `AWS SDKs and Tools Version Support Matrix <https://docs.aws.amazon.com/sdkref/latest/guide/version-support-matrix.html>`__
|
||||||
|
|
||||||
|
|
||||||
|
More Resources
|
||||||
|
--------------
|
||||||
|
|
||||||
|
* `NOTICE <https://github.com/boto/botocore/blob/develop/NOTICE>`__
|
||||||
|
* `Changelog <https://github.com/boto/botocore/blob/develop/CHANGELOG.rst>`__
|
||||||
|
* `License <https://github.com/boto/botocore/blob/develop/LICENSE.txt>`__
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,151 @@
|
||||||
|
Metadata-Version: 2.1
|
||||||
|
Name: botocore
|
||||||
|
Version: 1.41.4
|
||||||
|
Summary: Low-level, data-driven core of boto 3.
|
||||||
|
Home-page: https://github.com/boto/botocore
|
||||||
|
Author: Amazon Web Services
|
||||||
|
License: Apache-2.0
|
||||||
|
Classifier: Development Status :: 5 - Production/Stable
|
||||||
|
Classifier: Intended Audience :: Developers
|
||||||
|
Classifier: Intended Audience :: System Administrators
|
||||||
|
Classifier: Natural Language :: English
|
||||||
|
Classifier: Programming Language :: Python
|
||||||
|
Classifier: Programming Language :: Python :: 3 :: Only
|
||||||
|
Classifier: Programming Language :: Python :: 3
|
||||||
|
Classifier: Programming Language :: Python :: 3.9
|
||||||
|
Classifier: Programming Language :: Python :: 3.10
|
||||||
|
Classifier: Programming Language :: Python :: 3.11
|
||||||
|
Classifier: Programming Language :: Python :: 3.12
|
||||||
|
Classifier: Programming Language :: Python :: 3.13
|
||||||
|
Classifier: Programming Language :: Python :: 3.14
|
||||||
|
Requires-Python: >= 3.9
|
||||||
|
License-File: LICENSE.txt
|
||||||
|
License-File: NOTICE
|
||||||
|
Requires-Dist: jmespath (<2.0.0,>=0.7.1)
|
||||||
|
Requires-Dist: python-dateutil (<3.0.0,>=2.1)
|
||||||
|
Requires-Dist: urllib3 (<1.27,>=1.25.4) ; python_version < "3.10"
|
||||||
|
Requires-Dist: urllib3 (!=2.2.0,<3,>=1.25.4) ; python_version >= "3.10"
|
||||||
|
Provides-Extra: crt
|
||||||
|
Requires-Dist: awscrt (==0.29.0) ; extra == 'crt'
|
||||||
|
|
||||||
|
botocore
|
||||||
|
========
|
||||||
|
|
||||||
|
|Version| |Python| |License|
|
||||||
|
|
||||||
|
A low-level interface to a growing number of Amazon Web Services. The
|
||||||
|
botocore package is the foundation for the
|
||||||
|
`AWS CLI <https://github.com/aws/aws-cli>`__ as well as
|
||||||
|
`boto3 <https://github.com/boto/boto3>`__.
|
||||||
|
|
||||||
|
Botocore is maintained and published by `Amazon Web Services`_.
|
||||||
|
|
||||||
|
Notices
|
||||||
|
-------
|
||||||
|
|
||||||
|
On 2026-04-29, support for Python 3.9 will end for Botocore. This follows the
|
||||||
|
Python Software Foundation `end of support <https://peps.python.org/pep-0596/#lifespan>`__
|
||||||
|
for the runtime which occurred on 2025-10-31.
|
||||||
|
|
||||||
|
On 2025-04-22, support for Python 3.8 ended for Botocore. This follows the
|
||||||
|
Python Software Foundation `end of support <https://peps.python.org/pep-0569/#lifespan>`__
|
||||||
|
for the runtime which occurred on 2024-10-07.
|
||||||
|
|
||||||
|
For more information, see this `blog post <https://aws.amazon.com/blogs/developer/python-support-policy-updates-for-aws-sdks-and-tools/>`__.
|
||||||
|
|
||||||
|
.. _`Amazon Web Services`: https://aws.amazon.com/what-is-aws/
|
||||||
|
.. |Python| image:: https://img.shields.io/pypi/pyversions/botocore.svg?style=flat
|
||||||
|
:target: https://pypi.python.org/pypi/botocore/
|
||||||
|
:alt: Python Versions
|
||||||
|
.. |Version| image:: http://img.shields.io/pypi/v/botocore.svg?style=flat
|
||||||
|
:target: https://pypi.python.org/pypi/botocore/
|
||||||
|
:alt: Package Version
|
||||||
|
.. |License| image:: http://img.shields.io/pypi/l/botocore.svg?style=flat
|
||||||
|
:target: https://github.com/boto/botocore/blob/develop/LICENSE.txt
|
||||||
|
:alt: License
|
||||||
|
|
||||||
|
Getting Started
|
||||||
|
---------------
|
||||||
|
Assuming that you have Python and ``virtualenv`` installed, set up your environment and install the required dependencies like this or you can install the library using ``pip``:
|
||||||
|
|
||||||
|
.. code-block:: sh
|
||||||
|
|
||||||
|
$ git clone https://github.com/boto/botocore.git
|
||||||
|
$ cd botocore
|
||||||
|
$ python -m venv .venv
|
||||||
|
...
|
||||||
|
$ source .venv/bin/activate
|
||||||
|
$ python -m pip install -r requirements.txt
|
||||||
|
$ python -m pip install -e .
|
||||||
|
|
||||||
|
.. code-block:: sh
|
||||||
|
|
||||||
|
$ pip install botocore
|
||||||
|
|
||||||
|
Using Botocore
|
||||||
|
~~~~~~~~~~~~~~
|
||||||
|
After installing botocore
|
||||||
|
|
||||||
|
Next, set up credentials (in e.g. ``~/.aws/credentials``):
|
||||||
|
|
||||||
|
.. code-block:: ini
|
||||||
|
|
||||||
|
[default]
|
||||||
|
aws_access_key_id = YOUR_KEY
|
||||||
|
aws_secret_access_key = YOUR_SECRET
|
||||||
|
|
||||||
|
Then, set up a default region (in e.g. ``~/.aws/config``):
|
||||||
|
|
||||||
|
.. code-block:: ini
|
||||||
|
|
||||||
|
[default]
|
||||||
|
region=us-east-1
|
||||||
|
|
||||||
|
Other credentials configuration method can be found `here <https://boto3.amazonaws.com/v1/documentation/api/latest/guide/credentials.html>`__
|
||||||
|
|
||||||
|
Then, from a Python interpreter:
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
|
>>> import botocore.session
|
||||||
|
>>> session = botocore.session.get_session()
|
||||||
|
>>> client = session.create_client('ec2')
|
||||||
|
>>> print(client.describe_instances())
|
||||||
|
|
||||||
|
|
||||||
|
Getting Help
|
||||||
|
------------
|
||||||
|
|
||||||
|
We use GitHub issues for tracking bugs and feature requests and have limited
|
||||||
|
bandwidth to address them. Please use these community resources for getting
|
||||||
|
help. Please note many of the same resources available for ``boto3`` are
|
||||||
|
applicable for ``botocore``:
|
||||||
|
|
||||||
|
* Ask a question on `Stack Overflow <https://stackoverflow.com/>`__ and tag it with `boto3 <https://stackoverflow.com/questions/tagged/boto3>`__
|
||||||
|
* Open a support ticket with `AWS Support <https://console.aws.amazon.com/support/home#/>`__
|
||||||
|
* If it turns out that you may have found a bug, please `open an issue <https://github.com/boto/botocore/issues/new/choose>`__
|
||||||
|
|
||||||
|
|
||||||
|
Contributing
|
||||||
|
------------
|
||||||
|
|
||||||
|
We value feedback and contributions from our community. Whether it's a bug report, new feature, correction, or additional documentation, we welcome your issues and pull requests. Please read through this `CONTRIBUTING <https://github.com/boto/botocore/blob/develop/CONTRIBUTING.rst>`__ document before submitting any issues or pull requests to ensure we have all the necessary information to effectively respond to your contribution.
|
||||||
|
|
||||||
|
|
||||||
|
Maintenance and Support for SDK Major Versions
|
||||||
|
----------------------------------------------
|
||||||
|
|
||||||
|
Botocore was made generally available on 06/22/2015 and is currently in the full support phase of the availability life cycle.
|
||||||
|
|
||||||
|
For information about maintenance and support for SDK major versions and their underlying dependencies, see the following in the AWS SDKs and Tools Reference Guide:
|
||||||
|
|
||||||
|
* `AWS SDKs and Tools Maintenance Policy <https://docs.aws.amazon.com/sdkref/latest/guide/maint-policy.html>`__
|
||||||
|
* `AWS SDKs and Tools Version Support Matrix <https://docs.aws.amazon.com/sdkref/latest/guide/version-support-matrix.html>`__
|
||||||
|
|
||||||
|
|
||||||
|
More Resources
|
||||||
|
--------------
|
||||||
|
|
||||||
|
* `NOTICE <https://github.com/boto/botocore/blob/develop/NOTICE>`__
|
||||||
|
* `Changelog <https://github.com/boto/botocore/blob/develop/CHANGELOG.rst>`__
|
||||||
|
* `License <https://github.com/boto/botocore/blob/develop/LICENSE.txt>`__
|
||||||
|
|
@ -0,0 +1,24 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta name="generator" content="simple503 version 0.4.0" />
|
||||||
|
<meta name="pypi:repository-version" content="1.0" />
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<title>
|
||||||
|
Links for botocore
|
||||||
|
</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>
|
||||||
|
Links for botocore
|
||||||
|
</h1>
|
||||||
|
<a href="/botocore/botocore-1.41.4-py3-none-any.whl#sha256=7143ef845f1d1400dbbf05d999f8c5e8cfaecd6bd84cbfbe5fa0a40e3a9f6353" data-requires-python=">= 3.9" data-dist-info-metadata="sha256=c54e339761f3067ceebafb82873edf4713098abb5ad00b802f347104b1200a04">
|
||||||
|
botocore-1.41.4-py3-none-any.whl
|
||||||
|
</a>
|
||||||
|
<br />
|
||||||
|
<a href="/botocore/botocore-1.40.70-py3-none-any.whl#sha256=4a394ad25f5d9f1ef0bed610365744523eeb5c22de6862ab25d8c93f9f6d295c" data-requires-python=">= 3.9" data-dist-info-metadata="sha256=ff124fb918cb0210e04c2c4396cb3ad31bbe26884306bf4d35b9535ece1feb27">
|
||||||
|
botocore-1.40.70-py3-none-any.whl
|
||||||
|
</a>
|
||||||
|
<br />
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,107 @@
|
||||||
|
Metadata-Version: 2.4
|
||||||
|
Name: calver
|
||||||
|
Version: 2025.10.20
|
||||||
|
Summary: Setuptools extension for CalVer package versions
|
||||||
|
Author-email: Dustin Ingram <di@python.org>
|
||||||
|
License-Expression: Apache-2.0
|
||||||
|
Project-URL: Homepage, https://github.com/di/calver
|
||||||
|
Project-URL: Repository, https://github.com/di/calver
|
||||||
|
Keywords: calver
|
||||||
|
Classifier: Intended Audience :: Developers
|
||||||
|
Classifier: Topic :: Software Development :: Build Tools
|
||||||
|
Classifier: Programming Language :: Python :: 3
|
||||||
|
Requires-Python: >=3.9
|
||||||
|
Description-Content-Type: text/markdown
|
||||||
|
License-File: LICENSE
|
||||||
|
Dynamic: license-file
|
||||||
|
|
||||||
|
# CalVer
|
||||||
|
|
||||||
|
The `calver` package is a [setuptools](https://pypi.org/p/setuptools) extension
|
||||||
|
for automatically defining your Python package version as a calendar version.
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
First, ensure `calver` is present during the project's build step by specifying
|
||||||
|
it as one of the build requirements:
|
||||||
|
|
||||||
|
`pyproject.toml`:
|
||||||
|
```toml
|
||||||
|
[build-system]
|
||||||
|
requires = ["setuptools>=42", "calver"]
|
||||||
|
```
|
||||||
|
|
||||||
|
To enable generating the version automatically based on the date, add the
|
||||||
|
following to `setup.py`:
|
||||||
|
|
||||||
|
`setup.py`:
|
||||||
|
```python
|
||||||
|
from setuptools import setup
|
||||||
|
|
||||||
|
setup(
|
||||||
|
...
|
||||||
|
use_calver=True,
|
||||||
|
setup_requires=['calver'],
|
||||||
|
...
|
||||||
|
)
|
||||||
|
```
|
||||||
|
|
||||||
|
You can test that it is working with:
|
||||||
|
|
||||||
|
```console
|
||||||
|
$ python setup.py --version
|
||||||
|
2020.6.16
|
||||||
|
```
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
|
||||||
|
By default, when setting `use_calver=True`, it uses the following to generate
|
||||||
|
the version string:
|
||||||
|
|
||||||
|
```pycon
|
||||||
|
>>> import datetime
|
||||||
|
>>> datetime.datetime.now(tz=datetime.timezone.utc).strftime("%Y.%m.%d")
|
||||||
|
2020.6.16
|
||||||
|
```
|
||||||
|
|
||||||
|
You can override the format string by passing it instead of `True`:
|
||||||
|
|
||||||
|
`setup.py`:
|
||||||
|
```python
|
||||||
|
from setuptools import setup
|
||||||
|
|
||||||
|
setup(
|
||||||
|
...
|
||||||
|
use_calver="%Y.%m.%d.%H.%M",
|
||||||
|
setup_requires=['calver'],
|
||||||
|
...
|
||||||
|
)
|
||||||
|
```
|
||||||
|
|
||||||
|
You can override the current date/time by passing the environment variable
|
||||||
|
`SOURCE_DATE_EPOCH`, which should be a Unix timestamp in seconds.
|
||||||
|
This is useful for reproducible builds (see https://reproducible-builds.org/docs/source-date-epoch/):
|
||||||
|
|
||||||
|
```console
|
||||||
|
env SOURCE_DATE_EPOCH=1743428011000 python setup.py --version
|
||||||
|
```
|
||||||
|
|
||||||
|
You can override this entirely by passing a callable instead, which will be called
|
||||||
|
with no arguments at build time:
|
||||||
|
|
||||||
|
`setup.py`:
|
||||||
|
```python
|
||||||
|
import datetime
|
||||||
|
from setuptools import setup
|
||||||
|
|
||||||
|
def long_now_version():
|
||||||
|
now = datetime.datetime.now(tz=datetime.timezone.utc)
|
||||||
|
return now.strftime("%Y").zfill(5) + "." + now.strftime("%m.%d")
|
||||||
|
|
||||||
|
setup(
|
||||||
|
...
|
||||||
|
use_calver=long_now_version,
|
||||||
|
setup_requires=['calver'],
|
||||||
|
...
|
||||||
|
)
|
||||||
|
```
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta name="generator" content="simple503 version 0.4.0" />
|
||||||
|
<meta name="pypi:repository-version" content="1.0" />
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<title>
|
||||||
|
Links for calver
|
||||||
|
</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>
|
||||||
|
Links for calver
|
||||||
|
</h1>
|
||||||
|
<a href="/calver/calver-2025.10.20-py3-none-any.whl#sha256=d7d75224eed9d9263f4fb30008487615196d208d14752bfd93fea7af2c84f508" data-requires-python=">=3.9" data-dist-info-metadata="sha256=46b969834bb99e6a06ade2eefd609814ad6cbdb83459a7d4ed7ac9a04244634e">
|
||||||
|
calver-2025.10.20-py3-none-any.whl
|
||||||
|
</a>
|
||||||
|
<br />
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,68 @@
|
||||||
|
Metadata-Version: 2.4
|
||||||
|
Name: cffi
|
||||||
|
Version: 2.0.0
|
||||||
|
Summary: Foreign Function Interface for Python calling C code.
|
||||||
|
Author: Armin Rigo, Maciej Fijalkowski
|
||||||
|
Maintainer: Matt Davis, Matt Clay, Matti Picus
|
||||||
|
License-Expression: MIT
|
||||||
|
Project-URL: Documentation, https://cffi.readthedocs.io/
|
||||||
|
Project-URL: Changelog, https://cffi.readthedocs.io/en/latest/whatsnew.html
|
||||||
|
Project-URL: Downloads, https://github.com/python-cffi/cffi/releases
|
||||||
|
Project-URL: Contact, https://groups.google.com/forum/#!forum/python-cffi
|
||||||
|
Project-URL: Source Code, https://github.com/python-cffi/cffi
|
||||||
|
Project-URL: Issue Tracker, https://github.com/python-cffi/cffi/issues
|
||||||
|
Classifier: Programming Language :: Python
|
||||||
|
Classifier: Programming Language :: Python :: 3
|
||||||
|
Classifier: Programming Language :: Python :: 3.9
|
||||||
|
Classifier: Programming Language :: Python :: 3.10
|
||||||
|
Classifier: Programming Language :: Python :: 3.11
|
||||||
|
Classifier: Programming Language :: Python :: 3.12
|
||||||
|
Classifier: Programming Language :: Python :: 3.13
|
||||||
|
Classifier: Programming Language :: Python :: 3.14
|
||||||
|
Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
||||||
|
Requires-Python: >=3.9
|
||||||
|
Description-Content-Type: text/markdown
|
||||||
|
License-File: LICENSE
|
||||||
|
License-File: AUTHORS
|
||||||
|
Requires-Dist: pycparser; implementation_name != "PyPy"
|
||||||
|
Dynamic: license-file
|
||||||
|
|
||||||
|
[](https://github.com/python-cffi/cffi/actions/workflows/ci.yaml?query=branch%3Amain++)
|
||||||
|
[](https://pypi.org/project/cffi)
|
||||||
|
[][Documentation]
|
||||||
|
|
||||||
|
|
||||||
|
CFFI
|
||||||
|
====
|
||||||
|
|
||||||
|
Foreign Function Interface for Python calling C code.
|
||||||
|
|
||||||
|
Please see the [Documentation] or uncompiled in the `doc/` subdirectory.
|
||||||
|
|
||||||
|
Download
|
||||||
|
--------
|
||||||
|
|
||||||
|
[Download page](https://github.com/python-cffi/cffi/releases)
|
||||||
|
|
||||||
|
Source Code
|
||||||
|
-----------
|
||||||
|
|
||||||
|
Source code is publicly available on
|
||||||
|
[GitHub](https://github.com/python-cffi/cffi).
|
||||||
|
|
||||||
|
Contact
|
||||||
|
-------
|
||||||
|
|
||||||
|
[Mailing list](https://groups.google.com/forum/#!forum/python-cffi)
|
||||||
|
|
||||||
|
Testing/development tips
|
||||||
|
------------------------
|
||||||
|
|
||||||
|
After `git clone` or `wget && tar`, we will get a directory called `cffi` or `cffi-x.x.x`. we call it `repo-directory`. To run tests under CPython, run the following in the `repo-directory`:
|
||||||
|
|
||||||
|
pip install pytest
|
||||||
|
pip install -e . # editable install of CFFI for local development
|
||||||
|
pytest src/c/ testing/
|
||||||
|
|
||||||
|
[Documentation]: http://cffi.readthedocs.org/
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,68 @@
|
||||||
|
Metadata-Version: 2.4
|
||||||
|
Name: cffi
|
||||||
|
Version: 2.0.0
|
||||||
|
Summary: Foreign Function Interface for Python calling C code.
|
||||||
|
Author: Armin Rigo, Maciej Fijalkowski
|
||||||
|
Maintainer: Matt Davis, Matt Clay, Matti Picus
|
||||||
|
License-Expression: MIT
|
||||||
|
Project-URL: Documentation, https://cffi.readthedocs.io/
|
||||||
|
Project-URL: Changelog, https://cffi.readthedocs.io/en/latest/whatsnew.html
|
||||||
|
Project-URL: Downloads, https://github.com/python-cffi/cffi/releases
|
||||||
|
Project-URL: Contact, https://groups.google.com/forum/#!forum/python-cffi
|
||||||
|
Project-URL: Source Code, https://github.com/python-cffi/cffi
|
||||||
|
Project-URL: Issue Tracker, https://github.com/python-cffi/cffi/issues
|
||||||
|
Classifier: Programming Language :: Python
|
||||||
|
Classifier: Programming Language :: Python :: 3
|
||||||
|
Classifier: Programming Language :: Python :: 3.9
|
||||||
|
Classifier: Programming Language :: Python :: 3.10
|
||||||
|
Classifier: Programming Language :: Python :: 3.11
|
||||||
|
Classifier: Programming Language :: Python :: 3.12
|
||||||
|
Classifier: Programming Language :: Python :: 3.13
|
||||||
|
Classifier: Programming Language :: Python :: 3.14
|
||||||
|
Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
||||||
|
Requires-Python: >=3.9
|
||||||
|
Description-Content-Type: text/markdown
|
||||||
|
License-File: LICENSE
|
||||||
|
License-File: AUTHORS
|
||||||
|
Requires-Dist: pycparser; implementation_name != "PyPy"
|
||||||
|
Dynamic: license-file
|
||||||
|
|
||||||
|
[](https://github.com/python-cffi/cffi/actions/workflows/ci.yaml?query=branch%3Amain++)
|
||||||
|
[](https://pypi.org/project/cffi)
|
||||||
|
[][Documentation]
|
||||||
|
|
||||||
|
|
||||||
|
CFFI
|
||||||
|
====
|
||||||
|
|
||||||
|
Foreign Function Interface for Python calling C code.
|
||||||
|
|
||||||
|
Please see the [Documentation] or uncompiled in the `doc/` subdirectory.
|
||||||
|
|
||||||
|
Download
|
||||||
|
--------
|
||||||
|
|
||||||
|
[Download page](https://github.com/python-cffi/cffi/releases)
|
||||||
|
|
||||||
|
Source Code
|
||||||
|
-----------
|
||||||
|
|
||||||
|
Source code is publicly available on
|
||||||
|
[GitHub](https://github.com/python-cffi/cffi).
|
||||||
|
|
||||||
|
Contact
|
||||||
|
-------
|
||||||
|
|
||||||
|
[Mailing list](https://groups.google.com/forum/#!forum/python-cffi)
|
||||||
|
|
||||||
|
Testing/development tips
|
||||||
|
------------------------
|
||||||
|
|
||||||
|
After `git clone` or `wget && tar`, we will get a directory called `cffi` or `cffi-x.x.x`. we call it `repo-directory`. To run tests under CPython, run the following in the `repo-directory`:
|
||||||
|
|
||||||
|
pip install pytest
|
||||||
|
pip install -e . # editable install of CFFI for local development
|
||||||
|
pytest src/c/ testing/
|
||||||
|
|
||||||
|
[Documentation]: http://cffi.readthedocs.org/
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,68 @@
|
||||||
|
Metadata-Version: 2.4
|
||||||
|
Name: cffi
|
||||||
|
Version: 2.0.0
|
||||||
|
Summary: Foreign Function Interface for Python calling C code.
|
||||||
|
Author: Armin Rigo, Maciej Fijalkowski
|
||||||
|
Maintainer: Matt Davis, Matt Clay, Matti Picus
|
||||||
|
License-Expression: MIT
|
||||||
|
Project-URL: Documentation, https://cffi.readthedocs.io/
|
||||||
|
Project-URL: Changelog, https://cffi.readthedocs.io/en/latest/whatsnew.html
|
||||||
|
Project-URL: Downloads, https://github.com/python-cffi/cffi/releases
|
||||||
|
Project-URL: Contact, https://groups.google.com/forum/#!forum/python-cffi
|
||||||
|
Project-URL: Source Code, https://github.com/python-cffi/cffi
|
||||||
|
Project-URL: Issue Tracker, https://github.com/python-cffi/cffi/issues
|
||||||
|
Classifier: Programming Language :: Python
|
||||||
|
Classifier: Programming Language :: Python :: 3
|
||||||
|
Classifier: Programming Language :: Python :: 3.9
|
||||||
|
Classifier: Programming Language :: Python :: 3.10
|
||||||
|
Classifier: Programming Language :: Python :: 3.11
|
||||||
|
Classifier: Programming Language :: Python :: 3.12
|
||||||
|
Classifier: Programming Language :: Python :: 3.13
|
||||||
|
Classifier: Programming Language :: Python :: 3.14
|
||||||
|
Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
||||||
|
Requires-Python: >=3.9
|
||||||
|
Description-Content-Type: text/markdown
|
||||||
|
License-File: LICENSE
|
||||||
|
License-File: AUTHORS
|
||||||
|
Requires-Dist: pycparser; implementation_name != "PyPy"
|
||||||
|
Dynamic: license-file
|
||||||
|
|
||||||
|
[](https://github.com/python-cffi/cffi/actions/workflows/ci.yaml?query=branch%3Amain++)
|
||||||
|
[](https://pypi.org/project/cffi)
|
||||||
|
[][Documentation]
|
||||||
|
|
||||||
|
|
||||||
|
CFFI
|
||||||
|
====
|
||||||
|
|
||||||
|
Foreign Function Interface for Python calling C code.
|
||||||
|
|
||||||
|
Please see the [Documentation] or uncompiled in the `doc/` subdirectory.
|
||||||
|
|
||||||
|
Download
|
||||||
|
--------
|
||||||
|
|
||||||
|
[Download page](https://github.com/python-cffi/cffi/releases)
|
||||||
|
|
||||||
|
Source Code
|
||||||
|
-----------
|
||||||
|
|
||||||
|
Source code is publicly available on
|
||||||
|
[GitHub](https://github.com/python-cffi/cffi).
|
||||||
|
|
||||||
|
Contact
|
||||||
|
-------
|
||||||
|
|
||||||
|
[Mailing list](https://groups.google.com/forum/#!forum/python-cffi)
|
||||||
|
|
||||||
|
Testing/development tips
|
||||||
|
------------------------
|
||||||
|
|
||||||
|
After `git clone` or `wget && tar`, we will get a directory called `cffi` or `cffi-x.x.x`. we call it `repo-directory`. To run tests under CPython, run the following in the `repo-directory`:
|
||||||
|
|
||||||
|
pip install pytest
|
||||||
|
pip install -e . # editable install of CFFI for local development
|
||||||
|
pytest src/c/ testing/
|
||||||
|
|
||||||
|
[Documentation]: http://cffi.readthedocs.org/
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,68 @@
|
||||||
|
Metadata-Version: 2.4
|
||||||
|
Name: cffi
|
||||||
|
Version: 2.0.0
|
||||||
|
Summary: Foreign Function Interface for Python calling C code.
|
||||||
|
Author: Armin Rigo, Maciej Fijalkowski
|
||||||
|
Maintainer: Matt Davis, Matt Clay, Matti Picus
|
||||||
|
License-Expression: MIT
|
||||||
|
Project-URL: Documentation, https://cffi.readthedocs.io/
|
||||||
|
Project-URL: Changelog, https://cffi.readthedocs.io/en/latest/whatsnew.html
|
||||||
|
Project-URL: Downloads, https://github.com/python-cffi/cffi/releases
|
||||||
|
Project-URL: Contact, https://groups.google.com/forum/#!forum/python-cffi
|
||||||
|
Project-URL: Source Code, https://github.com/python-cffi/cffi
|
||||||
|
Project-URL: Issue Tracker, https://github.com/python-cffi/cffi/issues
|
||||||
|
Classifier: Programming Language :: Python
|
||||||
|
Classifier: Programming Language :: Python :: 3
|
||||||
|
Classifier: Programming Language :: Python :: 3.9
|
||||||
|
Classifier: Programming Language :: Python :: 3.10
|
||||||
|
Classifier: Programming Language :: Python :: 3.11
|
||||||
|
Classifier: Programming Language :: Python :: 3.12
|
||||||
|
Classifier: Programming Language :: Python :: 3.13
|
||||||
|
Classifier: Programming Language :: Python :: 3.14
|
||||||
|
Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
||||||
|
Requires-Python: >=3.9
|
||||||
|
Description-Content-Type: text/markdown
|
||||||
|
License-File: LICENSE
|
||||||
|
License-File: AUTHORS
|
||||||
|
Requires-Dist: pycparser; implementation_name != "PyPy"
|
||||||
|
Dynamic: license-file
|
||||||
|
|
||||||
|
[](https://github.com/python-cffi/cffi/actions/workflows/ci.yaml?query=branch%3Amain++)
|
||||||
|
[](https://pypi.org/project/cffi)
|
||||||
|
[][Documentation]
|
||||||
|
|
||||||
|
|
||||||
|
CFFI
|
||||||
|
====
|
||||||
|
|
||||||
|
Foreign Function Interface for Python calling C code.
|
||||||
|
|
||||||
|
Please see the [Documentation] or uncompiled in the `doc/` subdirectory.
|
||||||
|
|
||||||
|
Download
|
||||||
|
--------
|
||||||
|
|
||||||
|
[Download page](https://github.com/python-cffi/cffi/releases)
|
||||||
|
|
||||||
|
Source Code
|
||||||
|
-----------
|
||||||
|
|
||||||
|
Source code is publicly available on
|
||||||
|
[GitHub](https://github.com/python-cffi/cffi).
|
||||||
|
|
||||||
|
Contact
|
||||||
|
-------
|
||||||
|
|
||||||
|
[Mailing list](https://groups.google.com/forum/#!forum/python-cffi)
|
||||||
|
|
||||||
|
Testing/development tips
|
||||||
|
------------------------
|
||||||
|
|
||||||
|
After `git clone` or `wget && tar`, we will get a directory called `cffi` or `cffi-x.x.x`. we call it `repo-directory`. To run tests under CPython, run the following in the `repo-directory`:
|
||||||
|
|
||||||
|
pip install pytest
|
||||||
|
pip install -e . # editable install of CFFI for local development
|
||||||
|
pytest src/c/ testing/
|
||||||
|
|
||||||
|
[Documentation]: http://cffi.readthedocs.org/
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,68 @@
|
||||||
|
Metadata-Version: 2.4
|
||||||
|
Name: cffi
|
||||||
|
Version: 2.0.0
|
||||||
|
Summary: Foreign Function Interface for Python calling C code.
|
||||||
|
Author: Armin Rigo, Maciej Fijalkowski
|
||||||
|
Maintainer: Matt Davis, Matt Clay, Matti Picus
|
||||||
|
License-Expression: MIT
|
||||||
|
Project-URL: Documentation, https://cffi.readthedocs.io/
|
||||||
|
Project-URL: Changelog, https://cffi.readthedocs.io/en/latest/whatsnew.html
|
||||||
|
Project-URL: Downloads, https://github.com/python-cffi/cffi/releases
|
||||||
|
Project-URL: Contact, https://groups.google.com/forum/#!forum/python-cffi
|
||||||
|
Project-URL: Source Code, https://github.com/python-cffi/cffi
|
||||||
|
Project-URL: Issue Tracker, https://github.com/python-cffi/cffi/issues
|
||||||
|
Classifier: Programming Language :: Python
|
||||||
|
Classifier: Programming Language :: Python :: 3
|
||||||
|
Classifier: Programming Language :: Python :: 3.9
|
||||||
|
Classifier: Programming Language :: Python :: 3.10
|
||||||
|
Classifier: Programming Language :: Python :: 3.11
|
||||||
|
Classifier: Programming Language :: Python :: 3.12
|
||||||
|
Classifier: Programming Language :: Python :: 3.13
|
||||||
|
Classifier: Programming Language :: Python :: 3.14
|
||||||
|
Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
||||||
|
Requires-Python: >=3.9
|
||||||
|
Description-Content-Type: text/markdown
|
||||||
|
License-File: LICENSE
|
||||||
|
License-File: AUTHORS
|
||||||
|
Requires-Dist: pycparser; implementation_name != "PyPy"
|
||||||
|
Dynamic: license-file
|
||||||
|
|
||||||
|
[](https://github.com/python-cffi/cffi/actions/workflows/ci.yaml?query=branch%3Amain++)
|
||||||
|
[](https://pypi.org/project/cffi)
|
||||||
|
[][Documentation]
|
||||||
|
|
||||||
|
|
||||||
|
CFFI
|
||||||
|
====
|
||||||
|
|
||||||
|
Foreign Function Interface for Python calling C code.
|
||||||
|
|
||||||
|
Please see the [Documentation] or uncompiled in the `doc/` subdirectory.
|
||||||
|
|
||||||
|
Download
|
||||||
|
--------
|
||||||
|
|
||||||
|
[Download page](https://github.com/python-cffi/cffi/releases)
|
||||||
|
|
||||||
|
Source Code
|
||||||
|
-----------
|
||||||
|
|
||||||
|
Source code is publicly available on
|
||||||
|
[GitHub](https://github.com/python-cffi/cffi).
|
||||||
|
|
||||||
|
Contact
|
||||||
|
-------
|
||||||
|
|
||||||
|
[Mailing list](https://groups.google.com/forum/#!forum/python-cffi)
|
||||||
|
|
||||||
|
Testing/development tips
|
||||||
|
------------------------
|
||||||
|
|
||||||
|
After `git clone` or `wget && tar`, we will get a directory called `cffi` or `cffi-x.x.x`. we call it `repo-directory`. To run tests under CPython, run the following in the `repo-directory`:
|
||||||
|
|
||||||
|
pip install pytest
|
||||||
|
pip install -e . # editable install of CFFI for local development
|
||||||
|
pytest src/c/ testing/
|
||||||
|
|
||||||
|
[Documentation]: http://cffi.readthedocs.org/
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,68 @@
|
||||||
|
Metadata-Version: 2.4
|
||||||
|
Name: cffi
|
||||||
|
Version: 2.0.0
|
||||||
|
Summary: Foreign Function Interface for Python calling C code.
|
||||||
|
Author: Armin Rigo, Maciej Fijalkowski
|
||||||
|
Maintainer: Matt Davis, Matt Clay, Matti Picus
|
||||||
|
License-Expression: MIT
|
||||||
|
Project-URL: Documentation, https://cffi.readthedocs.io/
|
||||||
|
Project-URL: Changelog, https://cffi.readthedocs.io/en/latest/whatsnew.html
|
||||||
|
Project-URL: Downloads, https://github.com/python-cffi/cffi/releases
|
||||||
|
Project-URL: Contact, https://groups.google.com/forum/#!forum/python-cffi
|
||||||
|
Project-URL: Source Code, https://github.com/python-cffi/cffi
|
||||||
|
Project-URL: Issue Tracker, https://github.com/python-cffi/cffi/issues
|
||||||
|
Classifier: Programming Language :: Python
|
||||||
|
Classifier: Programming Language :: Python :: 3
|
||||||
|
Classifier: Programming Language :: Python :: 3.9
|
||||||
|
Classifier: Programming Language :: Python :: 3.10
|
||||||
|
Classifier: Programming Language :: Python :: 3.11
|
||||||
|
Classifier: Programming Language :: Python :: 3.12
|
||||||
|
Classifier: Programming Language :: Python :: 3.13
|
||||||
|
Classifier: Programming Language :: Python :: 3.14
|
||||||
|
Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
||||||
|
Requires-Python: >=3.9
|
||||||
|
Description-Content-Type: text/markdown
|
||||||
|
License-File: LICENSE
|
||||||
|
License-File: AUTHORS
|
||||||
|
Requires-Dist: pycparser; implementation_name != "PyPy"
|
||||||
|
Dynamic: license-file
|
||||||
|
|
||||||
|
[](https://github.com/python-cffi/cffi/actions/workflows/ci.yaml?query=branch%3Amain++)
|
||||||
|
[](https://pypi.org/project/cffi)
|
||||||
|
[][Documentation]
|
||||||
|
|
||||||
|
|
||||||
|
CFFI
|
||||||
|
====
|
||||||
|
|
||||||
|
Foreign Function Interface for Python calling C code.
|
||||||
|
|
||||||
|
Please see the [Documentation] or uncompiled in the `doc/` subdirectory.
|
||||||
|
|
||||||
|
Download
|
||||||
|
--------
|
||||||
|
|
||||||
|
[Download page](https://github.com/python-cffi/cffi/releases)
|
||||||
|
|
||||||
|
Source Code
|
||||||
|
-----------
|
||||||
|
|
||||||
|
Source code is publicly available on
|
||||||
|
[GitHub](https://github.com/python-cffi/cffi).
|
||||||
|
|
||||||
|
Contact
|
||||||
|
-------
|
||||||
|
|
||||||
|
[Mailing list](https://groups.google.com/forum/#!forum/python-cffi)
|
||||||
|
|
||||||
|
Testing/development tips
|
||||||
|
------------------------
|
||||||
|
|
||||||
|
After `git clone` or `wget && tar`, we will get a directory called `cffi` or `cffi-x.x.x`. we call it `repo-directory`. To run tests under CPython, run the following in the `repo-directory`:
|
||||||
|
|
||||||
|
pip install pytest
|
||||||
|
pip install -e . # editable install of CFFI for local development
|
||||||
|
pytest src/c/ testing/
|
||||||
|
|
||||||
|
[Documentation]: http://cffi.readthedocs.org/
|
||||||
|
|
@ -0,0 +1,40 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta name="generator" content="simple503 version 0.4.0" />
|
||||||
|
<meta name="pypi:repository-version" content="1.0" />
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<title>
|
||||||
|
Links for cffi
|
||||||
|
</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>
|
||||||
|
Links for cffi
|
||||||
|
</h1>
|
||||||
|
<a href="/cffi/cffi-2.0.0-cp311-cp311-musllinux_1_2_x86_64.whl#sha256=5fed36fccc0612a53f1d4d9a816b50a36702c28a2aa880cb8a122b3466638743" data-requires-python=">=3.9" data-dist-info-metadata="sha256=b98ce7e3417af089bc12d5c73412d9b3b1683ccf8ec73c986c35ac8c9be1ba39">
|
||||||
|
cffi-2.0.0-cp311-cp311-musllinux_1_2_x86_64.whl
|
||||||
|
</a>
|
||||||
|
<br />
|
||||||
|
<a href="/cffi/cffi-2.0.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl#sha256=8941aaadaf67246224cee8c3803777eed332a19d909b47e29c9842ef1e79ac26" data-requires-python=">=3.9" data-dist-info-metadata="sha256=b98ce7e3417af089bc12d5c73412d9b3b1683ccf8ec73c986c35ac8c9be1ba39">
|
||||||
|
cffi-2.0.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
|
||||||
|
</a>
|
||||||
|
<br />
|
||||||
|
<a href="/cffi/cffi-2.0.0-cp310-cp310-musllinux_1_2_x86_64.whl#sha256=8ea985900c5c95ce9db1745f7933eeef5d314f0565b27625d9a10ec9881e1bfb" data-requires-python=">=3.9" data-dist-info-metadata="sha256=b98ce7e3417af089bc12d5c73412d9b3b1683ccf8ec73c986c35ac8c9be1ba39">
|
||||||
|
cffi-2.0.0-cp310-cp310-musllinux_1_2_x86_64.whl
|
||||||
|
</a>
|
||||||
|
<br />
|
||||||
|
<a href="/cffi/cffi-2.0.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl#sha256=fc7de24befaeae77ba923797c7c87834c73648a05a4bde34b3b7e5588973a453" data-requires-python=">=3.9" data-dist-info-metadata="sha256=b98ce7e3417af089bc12d5c73412d9b3b1683ccf8ec73c986c35ac8c9be1ba39">
|
||||||
|
cffi-2.0.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
|
||||||
|
</a>
|
||||||
|
<br />
|
||||||
|
<a href="/cffi/cffi-2.0.0-cp39-cp39-musllinux_1_2_x86_64.whl#sha256=89472c9762729b5ae1ad974b777416bfda4ac5642423fa93bd57a09204712322" data-requires-python=">=3.9" data-dist-info-metadata="sha256=b98ce7e3417af089bc12d5c73412d9b3b1683ccf8ec73c986c35ac8c9be1ba39">
|
||||||
|
cffi-2.0.0-cp39-cp39-musllinux_1_2_x86_64.whl
|
||||||
|
</a>
|
||||||
|
<br />
|
||||||
|
<a href="/cffi/cffi-2.0.0-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl#sha256=61d028e90346df14fedc3d1e5441df818d095f3b87d286825dfcbd6459b7ef63" data-requires-python=">=3.9" data-dist-info-metadata="sha256=b98ce7e3417af089bc12d5c73412d9b3b1683ccf8ec73c986c35ac8c9be1ba39">
|
||||||
|
cffi-2.0.0-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
|
||||||
|
</a>
|
||||||
|
<br />
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,191 @@
|
||||||
|
Metadata-Version: 2.4
|
||||||
|
Name: choreographer
|
||||||
|
Version: 1.2.1
|
||||||
|
Summary: Devtools Protocol implementation for chrome.
|
||||||
|
Author-email: Andrew Pikul <ajpikul@gmail.com>, Neyberson Atencio <neyberatencio@gmail.com>
|
||||||
|
Maintainer-email: Andrew Pikul <ajpikul@gmail.com>
|
||||||
|
License: # MIT License
|
||||||
|
|
||||||
|
Copyright (c) Plotly, Inc.
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person
|
||||||
|
obtaining a copy of this software and associated documentation
|
||||||
|
files (the "Software"), to deal in the Software without
|
||||||
|
restriction, including without limitation the rights to use,
|
||||||
|
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the
|
||||||
|
Software is furnished to do so, subject to the following
|
||||||
|
conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be
|
||||||
|
included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||||
|
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||||
|
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||||
|
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||||
|
OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
Project-URL: Homepage, https://github.com/plotly/choreographer
|
||||||
|
Project-URL: Repository, https://github.com/plotly/choreographer
|
||||||
|
Requires-Python: >=3.8
|
||||||
|
Description-Content-Type: text/markdown
|
||||||
|
License-File: LICENSE.md
|
||||||
|
Requires-Dist: logistro>=2.0.1
|
||||||
|
Requires-Dist: simplejson>=3.19.3
|
||||||
|
Dynamic: license-file
|
||||||
|
|
||||||
|
# Choreographer
|
||||||
|
|
||||||
|
choreographer allows remote control of browsers from Python.
|
||||||
|
It was created to support image generation from browser-based charting tools,
|
||||||
|
but can be used for other purposes as well.
|
||||||
|
|
||||||
|
choreographer is available [PyPI](https://pypi.org/project/choreographer) and [github](https://github.com/plotly/choreographer).
|
||||||
|
|
||||||
|
## Wait—I Thought This Was Kaleido?
|
||||||
|
|
||||||
|
[Kaleido][kaleido] is a cross-platform library for generating static images of
|
||||||
|
plots. The original implementation included a custom build of Chrome, which has
|
||||||
|
proven very difficult to maintain. In contrast, this package uses the Chrome
|
||||||
|
binary on the user's machine in the same way as testing tools like
|
||||||
|
[Puppeteer][puppeteer]; the next step is to re-implement Kaleido as a layer on
|
||||||
|
top of it.
|
||||||
|
|
||||||
|
## Status
|
||||||
|
|
||||||
|
choreographer is a work in progress: only Chrome-ish browsers are supported at
|
||||||
|
the moment, though we hope to add others. (Pull requests are greatly
|
||||||
|
appreciated.)
|
||||||
|
|
||||||
|
Note that we strongly recommend using async/await with this package, but it is
|
||||||
|
not absolutely required. The synchronous functions in this package are intended
|
||||||
|
as building blocks for other asynchronous strategies that Python may favor over
|
||||||
|
async/await in the future.
|
||||||
|
|
||||||
|
## Testing
|
||||||
|
|
||||||
|
### Process Control Tests
|
||||||
|
|
||||||
|
- Verbose: `pytest -W error -vvv tests/test_process.py`
|
||||||
|
- Quiet:`pytest -W error -v tests/test_process.py`
|
||||||
|
|
||||||
|
### Browser Interaction Tests
|
||||||
|
|
||||||
|
- Verbose: `pytest --debug -W error -vvv --ignore=tests/test_process.py`
|
||||||
|
- Quiet :`pytest -W error -v --ignore=tests/test_process.py`
|
||||||
|
|
||||||
|
You can also add "--no-headless" if you want to see the browser pop up.
|
||||||
|
|
||||||
|
### Writing Tests
|
||||||
|
|
||||||
|
- Separate async and sync test files. Add `_sync.py` to synchronous tests.
|
||||||
|
- For process tests, copy the fixtures in `test_process.py` file.
|
||||||
|
- For API tests, use `test_placeholder.py` as the minimum template.
|
||||||
|
|
||||||
|
## Help Wanted
|
||||||
|
|
||||||
|
We need your help to test this package on different platforms
|
||||||
|
and for different use cases.
|
||||||
|
To get started:
|
||||||
|
|
||||||
|
1. Clone this repository.
|
||||||
|
1. Create and activate a Python virtual environment.
|
||||||
|
1. Install this repository using `pip install .` or the equivalent.
|
||||||
|
1. Run `dtdoctor` and paste the output into an issue in this repository.
|
||||||
|
|
||||||
|
## Quickstart with `asyncio`
|
||||||
|
|
||||||
|
Save the following code to `example.py` and run with Python.
|
||||||
|
|
||||||
|
```python
|
||||||
|
import asyncio
|
||||||
|
import choreographer as choreo
|
||||||
|
|
||||||
|
|
||||||
|
async def example():
|
||||||
|
browser = await choreo.Browser(headless=False)
|
||||||
|
tab = await browser.create_tab("https://google.com")
|
||||||
|
await asyncio.sleep(3)
|
||||||
|
await tab.send_command("Page.navigate", params={"url": "https://github.com"})
|
||||||
|
await asyncio.sleep(3)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
asyncio.run(example())
|
||||||
|
```
|
||||||
|
|
||||||
|
Step by step, this example:
|
||||||
|
|
||||||
|
1. Imports the required libraries.
|
||||||
|
1. Defines an `async` function
|
||||||
|
(because `await` can only be used inside `async` functions).
|
||||||
|
1. Asks choreographer to create a browser.
|
||||||
|
`headless=False` tells it to display the browser on the screen;
|
||||||
|
the default is no display.
|
||||||
|
1. Wait three seconds for the browser to be created.
|
||||||
|
1. Create another tab.
|
||||||
|
(Note that users can't rearrange programmatically-generated tabs using the
|
||||||
|
mouse, but that's OK: we're not trying to replace testing tools like
|
||||||
|
[Puppeteer][puppeteer].)
|
||||||
|
1. Sleep again.
|
||||||
|
1. Runs the example function.
|
||||||
|
|
||||||
|
See [the devtools reference][devtools-ref] for a list of possible commands.
|
||||||
|
|
||||||
|
### Subscribing to Events
|
||||||
|
|
||||||
|
Try adding the following to the example shown above:
|
||||||
|
|
||||||
|
```python
|
||||||
|
# Callback for printing result
|
||||||
|
async def dump_event(response):
|
||||||
|
print(str(response))
|
||||||
|
|
||||||
|
|
||||||
|
# Callback for raising result as error
|
||||||
|
async def error_event(response):
|
||||||
|
raise Exception(str(response))
|
||||||
|
|
||||||
|
|
||||||
|
browser.subscribe("Target.targetCrashed", error_event)
|
||||||
|
new_tab.subscribe("Page.loadEventFired", dump_event)
|
||||||
|
browser.subscribe("Target.*", dump_event) # dumps all "Target" events
|
||||||
|
response = await new_tab.subscribe_once("Page.lifecycleEvent")
|
||||||
|
# do something with response
|
||||||
|
browser.unsubscribe("Target.*")
|
||||||
|
# events are always sent to a browser or tab,
|
||||||
|
# but the documentation isn't always clear which.
|
||||||
|
# Dumping all: `browser.subscribe("*", dump_event)` (on tab too)
|
||||||
|
# can be useful (but verbose) for debugging.
|
||||||
|
```
|
||||||
|
|
||||||
|
## Synchronous Use
|
||||||
|
|
||||||
|
You can use this library without `asyncio`,
|
||||||
|
|
||||||
|
```python
|
||||||
|
my_browser = choreo.Browser() # blocking until open
|
||||||
|
```
|
||||||
|
|
||||||
|
However, you must call `browser.pipe.read_jsons(blocking=True|False)` manually,
|
||||||
|
and organizing the results.
|
||||||
|
|
||||||
|
`browser.run_output_thread()` starts another thread constantly printing
|
||||||
|
messages received from the browser but it can't be used with `asyncio`
|
||||||
|
nor will it play nice with any other read.
|
||||||
|
|
||||||
|
In other words, unless you're really, really sure you know what you're doing,
|
||||||
|
use `asyncio`.
|
||||||
|
|
||||||
|
## Low-Level Use
|
||||||
|
|
||||||
|
We provide a `Browser` and `Tab` interface, but there are lower-level `Target`
|
||||||
|
and `Session` interfaces if needed.
|
||||||
|
|
||||||
|
[devtools-ref]: https://chromedevtools.github.io/devtools-protocol/
|
||||||
|
[kaleido]: https://pypi.org/project/kaleido/
|
||||||
|
[puppeteer]: https://pptr.dev/
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta name="generator" content="simple503 version 0.4.0" />
|
||||||
|
<meta name="pypi:repository-version" content="1.0" />
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<title>
|
||||||
|
Links for choreographer
|
||||||
|
</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>
|
||||||
|
Links for choreographer
|
||||||
|
</h1>
|
||||||
|
<a href="/choreographer/choreographer-1.2.1-py3-none-any.whl#sha256=9af5385effa3c204dbc337abf7ac74fd8908ced326a15645dc31dde75718c77e" data-requires-python=">=3.8" data-dist-info-metadata="sha256=3a851fd5d74a1119d96770e59a3696f059066ca75809eda394166e941475ae9c">
|
||||||
|
choreographer-1.2.1-py3-none-any.whl
|
||||||
|
</a>
|
||||||
|
<br />
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,187 @@
|
||||||
|
Metadata-Version: 2.4
|
||||||
|
Name: cloudpickle
|
||||||
|
Version: 3.1.2
|
||||||
|
Summary: Pickler class to extend the standard pickle.Pickler functionality
|
||||||
|
Home-page: https://github.com/cloudpipe/cloudpickle
|
||||||
|
Author: The cloudpickle developer team
|
||||||
|
Author-email: cloudpipe@googlegroups.com
|
||||||
|
Requires-Python: >=3.8
|
||||||
|
Description-Content-Type: text/markdown
|
||||||
|
License: BSD-3-Clause
|
||||||
|
Classifier: Development Status :: 5 - Production/Stable
|
||||||
|
Classifier: Intended Audience :: Developers
|
||||||
|
Classifier: License :: OSI Approved :: BSD License
|
||||||
|
Classifier: Operating System :: POSIX
|
||||||
|
Classifier: Operating System :: Microsoft :: Windows
|
||||||
|
Classifier: Operating System :: MacOS :: MacOS X
|
||||||
|
Classifier: Programming Language :: Python :: 3.8
|
||||||
|
Classifier: Programming Language :: Python :: 3.9
|
||||||
|
Classifier: Programming Language :: Python :: 3.10
|
||||||
|
Classifier: Programming Language :: Python :: 3.11
|
||||||
|
Classifier: Programming Language :: Python :: 3.12
|
||||||
|
Classifier: Programming Language :: Python :: 3.13
|
||||||
|
Classifier: Programming Language :: Python :: 3.14
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
||||||
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
||||||
|
Classifier: Topic :: Scientific/Engineering
|
||||||
|
Classifier: Topic :: System :: Distributed Computing
|
||||||
|
License-File: LICENSE
|
||||||
|
|
||||||
|
# cloudpickle
|
||||||
|
|
||||||
|
[](https://github.com/cloudpipe/cloudpickle/actions)
|
||||||
|
[](https://codecov.io/github/cloudpipe/cloudpickle?branch=master)
|
||||||
|
|
||||||
|
`cloudpickle` makes it possible to serialize Python constructs not supported
|
||||||
|
by the default `pickle` module from the Python standard library.
|
||||||
|
|
||||||
|
`cloudpickle` is especially useful for **cluster computing** where Python
|
||||||
|
code is shipped over the network to execute on remote hosts, possibly close
|
||||||
|
to the data.
|
||||||
|
|
||||||
|
Among other things, `cloudpickle` supports pickling for **lambda functions**
|
||||||
|
along with **functions and classes defined interactively** in the
|
||||||
|
`__main__` module (for instance in a script, a shell or a Jupyter notebook).
|
||||||
|
|
||||||
|
Cloudpickle can only be used to send objects between the **exact same version
|
||||||
|
of Python**.
|
||||||
|
|
||||||
|
Using `cloudpickle` for **long-term object storage is not supported and
|
||||||
|
strongly discouraged.**
|
||||||
|
|
||||||
|
**Security notice**: one should **only load pickle data from trusted sources** as
|
||||||
|
otherwise `pickle.load` can lead to arbitrary code execution resulting in a critical
|
||||||
|
security vulnerability.
|
||||||
|
|
||||||
|
|
||||||
|
Installation
|
||||||
|
------------
|
||||||
|
|
||||||
|
The latest release of `cloudpickle` is available from
|
||||||
|
[pypi](https://pypi.python.org/pypi/cloudpickle):
|
||||||
|
|
||||||
|
pip install cloudpickle
|
||||||
|
|
||||||
|
|
||||||
|
Examples
|
||||||
|
--------
|
||||||
|
|
||||||
|
Pickling a lambda expression:
|
||||||
|
|
||||||
|
```python
|
||||||
|
>>> import cloudpickle
|
||||||
|
>>> squared = lambda x: x ** 2
|
||||||
|
>>> pickled_lambda = cloudpickle.dumps(squared)
|
||||||
|
|
||||||
|
>>> import pickle
|
||||||
|
>>> new_squared = pickle.loads(pickled_lambda)
|
||||||
|
>>> new_squared(2)
|
||||||
|
4
|
||||||
|
```
|
||||||
|
|
||||||
|
Pickling a function interactively defined in a Python shell session
|
||||||
|
(in the `__main__` module):
|
||||||
|
|
||||||
|
```python
|
||||||
|
>>> CONSTANT = 42
|
||||||
|
>>> def my_function(data: int) -> int:
|
||||||
|
... return data + CONSTANT
|
||||||
|
...
|
||||||
|
>>> pickled_function = cloudpickle.dumps(my_function)
|
||||||
|
>>> depickled_function = pickle.loads(pickled_function)
|
||||||
|
>>> depickled_function
|
||||||
|
<function __main__.my_function(data:int) -> int>
|
||||||
|
>>> depickled_function(43)
|
||||||
|
85
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Overriding pickle's serialization mechanism for importable constructs:
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
|
||||||
|
An important difference between `cloudpickle` and `pickle` is that
|
||||||
|
`cloudpickle` can serialize a function or class **by value**, whereas `pickle`
|
||||||
|
can only serialize it **by reference**. Serialization by reference treats
|
||||||
|
functions and classes as attributes of modules, and pickles them through
|
||||||
|
instructions that trigger the import of their module at load time.
|
||||||
|
Serialization by reference is thus limited in that it assumes that the module
|
||||||
|
containing the function or class is available/importable in the unpickling
|
||||||
|
environment. This assumption breaks when pickling constructs defined in an
|
||||||
|
interactive session, a case that is automatically detected by `cloudpickle`,
|
||||||
|
that pickles such constructs **by value**.
|
||||||
|
|
||||||
|
Another case where the importability assumption is expected to break is when
|
||||||
|
developing a module in a distributed execution environment: the worker
|
||||||
|
processes may not have access to the said module, for example if they live on a
|
||||||
|
different machine than the process in which the module is being developed. By
|
||||||
|
itself, `cloudpickle` cannot detect such "locally importable" modules and
|
||||||
|
switch to serialization by value; instead, it relies on its default mode, which
|
||||||
|
is serialization by reference. However, since `cloudpickle 2.0.0`, one can
|
||||||
|
explicitly specify modules for which serialization by value should be used,
|
||||||
|
using the
|
||||||
|
`register_pickle_by_value(module)`/`/unregister_pickle_by_value(module)` API:
|
||||||
|
|
||||||
|
```python
|
||||||
|
>>> import cloudpickle
|
||||||
|
>>> import my_module
|
||||||
|
>>> cloudpickle.register_pickle_by_value(my_module)
|
||||||
|
>>> cloudpickle.dumps(my_module.my_function) # my_function is pickled by value
|
||||||
|
>>> cloudpickle.unregister_pickle_by_value(my_module)
|
||||||
|
>>> cloudpickle.dumps(my_module.my_function) # my_function is pickled by reference
|
||||||
|
```
|
||||||
|
|
||||||
|
Using this API, there is no need to re-install the new version of the module on
|
||||||
|
all the worker nodes nor to restart the workers: restarting the client Python
|
||||||
|
process with the new source code is enough.
|
||||||
|
|
||||||
|
Note that this feature is still **experimental**, and may fail in the following
|
||||||
|
situations:
|
||||||
|
|
||||||
|
- If the body of a function/class pickled by value contains an `import` statement:
|
||||||
|
```python
|
||||||
|
>>> def f():
|
||||||
|
>>> ... from another_module import g
|
||||||
|
>>> ... # calling f in the unpickling environment may fail if another_module
|
||||||
|
>>> ... # is unavailable
|
||||||
|
>>> ... return g() + 1
|
||||||
|
```
|
||||||
|
|
||||||
|
- If a function pickled by reference uses a function pickled by value during its execution.
|
||||||
|
|
||||||
|
|
||||||
|
Running the tests
|
||||||
|
-----------------
|
||||||
|
|
||||||
|
- With `tox`, to test run the tests for all the supported versions of
|
||||||
|
Python and PyPy:
|
||||||
|
|
||||||
|
pip install tox
|
||||||
|
tox
|
||||||
|
|
||||||
|
or alternatively for a specific environment:
|
||||||
|
|
||||||
|
tox -e py312
|
||||||
|
|
||||||
|
|
||||||
|
- With `pytest` to only run the tests for your current version of
|
||||||
|
Python:
|
||||||
|
|
||||||
|
pip install -r dev-requirements.txt
|
||||||
|
PYTHONPATH='.:tests' pytest
|
||||||
|
|
||||||
|
History
|
||||||
|
-------
|
||||||
|
|
||||||
|
`cloudpickle` was initially developed by [picloud.com](http://web.archive.org/web/20140721022102/http://blog.picloud.com/2013/11/17/picloud-has-joined-dropbox/) and shipped as part of
|
||||||
|
the client SDK.
|
||||||
|
|
||||||
|
A copy of `cloudpickle.py` was included as part of PySpark, the Python
|
||||||
|
interface to [Apache Spark](https://spark.apache.org/). Davies Liu, Josh
|
||||||
|
Rosen, Thom Neale and other Apache Spark developers improved it significantly,
|
||||||
|
most notably to add support for PyPy and Python 3.
|
||||||
|
|
||||||
|
The aim of the `cloudpickle` project is to make that work available to a wider
|
||||||
|
audience outside of the Spark ecosystem and to make it easier to improve it
|
||||||
|
further notably with the help of a dedicated non-regression test suite.
|
||||||
|
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta name="generator" content="simple503 version 0.4.0" />
|
||||||
|
<meta name="pypi:repository-version" content="1.0" />
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<title>
|
||||||
|
Links for cloudpickle
|
||||||
|
</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>
|
||||||
|
Links for cloudpickle
|
||||||
|
</h1>
|
||||||
|
<a href="/cloudpickle/cloudpickle-3.1.2-py3-none-any.whl#sha256=9acb47f6afd73f60dc1df93bb801b472f05ff42fa6c84167d25cb206be1fbf4a" data-requires-python=">=3.8" data-dist-info-metadata="sha256=3d0263bfe9ee4f23b244bdcaff73acbe7a1957ebf82743b6ae42693adc48d721">
|
||||||
|
cloudpickle-3.1.2-py3-none-any.whl
|
||||||
|
</a>
|
||||||
|
<br />
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,139 @@
|
||||||
|
Metadata-Version: 2.4
|
||||||
|
Name: cryptography
|
||||||
|
Version: 46.0.3
|
||||||
|
Classifier: Development Status :: 5 - Production/Stable
|
||||||
|
Classifier: Intended Audience :: Developers
|
||||||
|
Classifier: Natural Language :: English
|
||||||
|
Classifier: Operating System :: MacOS :: MacOS X
|
||||||
|
Classifier: Operating System :: POSIX
|
||||||
|
Classifier: Operating System :: POSIX :: BSD
|
||||||
|
Classifier: Operating System :: POSIX :: Linux
|
||||||
|
Classifier: Operating System :: Microsoft :: Windows
|
||||||
|
Classifier: Programming Language :: Python
|
||||||
|
Classifier: Programming Language :: Python :: 3
|
||||||
|
Classifier: Programming Language :: Python :: 3 :: Only
|
||||||
|
Classifier: Programming Language :: Python :: 3.8
|
||||||
|
Classifier: Programming Language :: Python :: 3.9
|
||||||
|
Classifier: Programming Language :: Python :: 3.10
|
||||||
|
Classifier: Programming Language :: Python :: 3.11
|
||||||
|
Classifier: Programming Language :: Python :: 3.12
|
||||||
|
Classifier: Programming Language :: Python :: 3.13
|
||||||
|
Classifier: Programming Language :: Python :: 3.14
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
||||||
|
Classifier: Programming Language :: Python :: Free Threading :: 3 - Stable
|
||||||
|
Classifier: Topic :: Security :: Cryptography
|
||||||
|
Requires-Dist: cffi>=1.14 ; python_full_version == '3.8.*' and platform_python_implementation != 'PyPy'
|
||||||
|
Requires-Dist: cffi>=2.0.0 ; python_full_version >= '3.9' and platform_python_implementation != 'PyPy'
|
||||||
|
Requires-Dist: typing-extensions>=4.13.2 ; python_full_version < '3.11'
|
||||||
|
Requires-Dist: bcrypt>=3.1.5 ; extra == 'ssh'
|
||||||
|
Requires-Dist: nox[uv]>=2024.4.15 ; extra == 'nox'
|
||||||
|
Requires-Dist: cryptography-vectors==46.0.3 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest>=7.4.0 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest-benchmark>=4.0 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest-cov>=2.10.1 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest-xdist>=3.5.0 ; extra == 'test'
|
||||||
|
Requires-Dist: pretend>=0.7 ; extra == 'test'
|
||||||
|
Requires-Dist: certifi>=2024 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest-randomly ; extra == 'test-randomorder'
|
||||||
|
Requires-Dist: sphinx>=5.3.0 ; extra == 'docs'
|
||||||
|
Requires-Dist: sphinx-rtd-theme>=3.0.0 ; extra == 'docs'
|
||||||
|
Requires-Dist: sphinx-inline-tabs ; extra == 'docs'
|
||||||
|
Requires-Dist: pyenchant>=3 ; extra == 'docstest'
|
||||||
|
Requires-Dist: readme-renderer>=30.0 ; extra == 'docstest'
|
||||||
|
Requires-Dist: sphinxcontrib-spelling>=7.3.1 ; extra == 'docstest'
|
||||||
|
Requires-Dist: build>=1.0.0 ; extra == 'sdist'
|
||||||
|
Requires-Dist: ruff>=0.11.11 ; extra == 'pep8test'
|
||||||
|
Requires-Dist: mypy>=1.14 ; extra == 'pep8test'
|
||||||
|
Requires-Dist: check-sdist ; extra == 'pep8test'
|
||||||
|
Requires-Dist: click>=8.0.1 ; extra == 'pep8test'
|
||||||
|
Provides-Extra: ssh
|
||||||
|
Provides-Extra: nox
|
||||||
|
Provides-Extra: test
|
||||||
|
Provides-Extra: test-randomorder
|
||||||
|
Provides-Extra: docs
|
||||||
|
Provides-Extra: docstest
|
||||||
|
Provides-Extra: sdist
|
||||||
|
Provides-Extra: pep8test
|
||||||
|
License-File: LICENSE
|
||||||
|
License-File: LICENSE.APACHE
|
||||||
|
License-File: LICENSE.BSD
|
||||||
|
Summary: cryptography is a package which provides cryptographic recipes and primitives to Python developers.
|
||||||
|
Author-email: The Python Cryptographic Authority and individual contributors <cryptography-dev@python.org>
|
||||||
|
License-Expression: Apache-2.0 OR BSD-3-Clause
|
||||||
|
Requires-Python: >=3.8, !=3.9.0, !=3.9.1
|
||||||
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
||||||
|
Project-URL: homepage, https://github.com/pyca/cryptography
|
||||||
|
Project-URL: documentation, https://cryptography.io/
|
||||||
|
Project-URL: source, https://github.com/pyca/cryptography/
|
||||||
|
Project-URL: issues, https://github.com/pyca/cryptography/issues
|
||||||
|
Project-URL: changelog, https://cryptography.io/en/latest/changelog/
|
||||||
|
|
||||||
|
pyca/cryptography
|
||||||
|
=================
|
||||||
|
|
||||||
|
.. image:: https://img.shields.io/pypi/v/cryptography.svg
|
||||||
|
:target: https://pypi.org/project/cryptography/
|
||||||
|
:alt: Latest Version
|
||||||
|
|
||||||
|
.. image:: https://readthedocs.org/projects/cryptography/badge/?version=latest
|
||||||
|
:target: https://cryptography.io
|
||||||
|
:alt: Latest Docs
|
||||||
|
|
||||||
|
.. image:: https://github.com/pyca/cryptography/actions/workflows/ci.yml/badge.svg
|
||||||
|
:target: https://github.com/pyca/cryptography/actions/workflows/ci.yml?query=branch%3Amain
|
||||||
|
|
||||||
|
``cryptography`` is a package which provides cryptographic recipes and
|
||||||
|
primitives to Python developers. Our goal is for it to be your "cryptographic
|
||||||
|
standard library". It supports Python 3.8+ and PyPy3 7.3.11+.
|
||||||
|
|
||||||
|
``cryptography`` includes both high level recipes and low level interfaces to
|
||||||
|
common cryptographic algorithms such as symmetric ciphers, message digests, and
|
||||||
|
key derivation functions. For example, to encrypt something with
|
||||||
|
``cryptography``'s high level symmetric encryption recipe:
|
||||||
|
|
||||||
|
.. code-block:: pycon
|
||||||
|
|
||||||
|
>>> from cryptography.fernet import Fernet
|
||||||
|
>>> # Put this somewhere safe!
|
||||||
|
>>> key = Fernet.generate_key()
|
||||||
|
>>> f = Fernet(key)
|
||||||
|
>>> token = f.encrypt(b"A really secret message. Not for prying eyes.")
|
||||||
|
>>> token
|
||||||
|
b'...'
|
||||||
|
>>> f.decrypt(token)
|
||||||
|
b'A really secret message. Not for prying eyes.'
|
||||||
|
|
||||||
|
You can find more information in the `documentation`_.
|
||||||
|
|
||||||
|
You can install ``cryptography`` with:
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ pip install cryptography
|
||||||
|
|
||||||
|
For full details see `the installation documentation`_.
|
||||||
|
|
||||||
|
Discussion
|
||||||
|
~~~~~~~~~~
|
||||||
|
|
||||||
|
If you run into bugs, you can file them in our `issue tracker`_.
|
||||||
|
|
||||||
|
We maintain a `cryptography-dev`_ mailing list for development discussion.
|
||||||
|
|
||||||
|
You can also join ``#pyca`` on ``irc.libera.chat`` to ask questions or get
|
||||||
|
involved.
|
||||||
|
|
||||||
|
Security
|
||||||
|
~~~~~~~~
|
||||||
|
|
||||||
|
Need to report a security issue? Please consult our `security reporting`_
|
||||||
|
documentation.
|
||||||
|
|
||||||
|
|
||||||
|
.. _`documentation`: https://cryptography.io/
|
||||||
|
.. _`the installation documentation`: https://cryptography.io/en/latest/installation/
|
||||||
|
.. _`issue tracker`: https://github.com/pyca/cryptography/issues
|
||||||
|
.. _`cryptography-dev`: https://mail.python.org/mailman/listinfo/cryptography-dev
|
||||||
|
.. _`security reporting`: https://cryptography.io/en/latest/security/
|
||||||
|
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,139 @@
|
||||||
|
Metadata-Version: 2.4
|
||||||
|
Name: cryptography
|
||||||
|
Version: 46.0.3
|
||||||
|
Classifier: Development Status :: 5 - Production/Stable
|
||||||
|
Classifier: Intended Audience :: Developers
|
||||||
|
Classifier: Natural Language :: English
|
||||||
|
Classifier: Operating System :: MacOS :: MacOS X
|
||||||
|
Classifier: Operating System :: POSIX
|
||||||
|
Classifier: Operating System :: POSIX :: BSD
|
||||||
|
Classifier: Operating System :: POSIX :: Linux
|
||||||
|
Classifier: Operating System :: Microsoft :: Windows
|
||||||
|
Classifier: Programming Language :: Python
|
||||||
|
Classifier: Programming Language :: Python :: 3
|
||||||
|
Classifier: Programming Language :: Python :: 3 :: Only
|
||||||
|
Classifier: Programming Language :: Python :: 3.8
|
||||||
|
Classifier: Programming Language :: Python :: 3.9
|
||||||
|
Classifier: Programming Language :: Python :: 3.10
|
||||||
|
Classifier: Programming Language :: Python :: 3.11
|
||||||
|
Classifier: Programming Language :: Python :: 3.12
|
||||||
|
Classifier: Programming Language :: Python :: 3.13
|
||||||
|
Classifier: Programming Language :: Python :: 3.14
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
||||||
|
Classifier: Programming Language :: Python :: Free Threading :: 3 - Stable
|
||||||
|
Classifier: Topic :: Security :: Cryptography
|
||||||
|
Requires-Dist: cffi>=1.14 ; python_full_version == '3.8.*' and platform_python_implementation != 'PyPy'
|
||||||
|
Requires-Dist: cffi>=2.0.0 ; python_full_version >= '3.9' and platform_python_implementation != 'PyPy'
|
||||||
|
Requires-Dist: typing-extensions>=4.13.2 ; python_full_version < '3.11'
|
||||||
|
Requires-Dist: bcrypt>=3.1.5 ; extra == 'ssh'
|
||||||
|
Requires-Dist: nox[uv]>=2024.4.15 ; extra == 'nox'
|
||||||
|
Requires-Dist: cryptography-vectors==46.0.3 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest>=7.4.0 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest-benchmark>=4.0 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest-cov>=2.10.1 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest-xdist>=3.5.0 ; extra == 'test'
|
||||||
|
Requires-Dist: pretend>=0.7 ; extra == 'test'
|
||||||
|
Requires-Dist: certifi>=2024 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest-randomly ; extra == 'test-randomorder'
|
||||||
|
Requires-Dist: sphinx>=5.3.0 ; extra == 'docs'
|
||||||
|
Requires-Dist: sphinx-rtd-theme>=3.0.0 ; extra == 'docs'
|
||||||
|
Requires-Dist: sphinx-inline-tabs ; extra == 'docs'
|
||||||
|
Requires-Dist: pyenchant>=3 ; extra == 'docstest'
|
||||||
|
Requires-Dist: readme-renderer>=30.0 ; extra == 'docstest'
|
||||||
|
Requires-Dist: sphinxcontrib-spelling>=7.3.1 ; extra == 'docstest'
|
||||||
|
Requires-Dist: build>=1.0.0 ; extra == 'sdist'
|
||||||
|
Requires-Dist: ruff>=0.11.11 ; extra == 'pep8test'
|
||||||
|
Requires-Dist: mypy>=1.14 ; extra == 'pep8test'
|
||||||
|
Requires-Dist: check-sdist ; extra == 'pep8test'
|
||||||
|
Requires-Dist: click>=8.0.1 ; extra == 'pep8test'
|
||||||
|
Provides-Extra: ssh
|
||||||
|
Provides-Extra: nox
|
||||||
|
Provides-Extra: test
|
||||||
|
Provides-Extra: test-randomorder
|
||||||
|
Provides-Extra: docs
|
||||||
|
Provides-Extra: docstest
|
||||||
|
Provides-Extra: sdist
|
||||||
|
Provides-Extra: pep8test
|
||||||
|
License-File: LICENSE
|
||||||
|
License-File: LICENSE.APACHE
|
||||||
|
License-File: LICENSE.BSD
|
||||||
|
Summary: cryptography is a package which provides cryptographic recipes and primitives to Python developers.
|
||||||
|
Author-email: The Python Cryptographic Authority and individual contributors <cryptography-dev@python.org>
|
||||||
|
License-Expression: Apache-2.0 OR BSD-3-Clause
|
||||||
|
Requires-Python: >=3.8, !=3.9.0, !=3.9.1
|
||||||
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
||||||
|
Project-URL: homepage, https://github.com/pyca/cryptography
|
||||||
|
Project-URL: documentation, https://cryptography.io/
|
||||||
|
Project-URL: source, https://github.com/pyca/cryptography/
|
||||||
|
Project-URL: issues, https://github.com/pyca/cryptography/issues
|
||||||
|
Project-URL: changelog, https://cryptography.io/en/latest/changelog/
|
||||||
|
|
||||||
|
pyca/cryptography
|
||||||
|
=================
|
||||||
|
|
||||||
|
.. image:: https://img.shields.io/pypi/v/cryptography.svg
|
||||||
|
:target: https://pypi.org/project/cryptography/
|
||||||
|
:alt: Latest Version
|
||||||
|
|
||||||
|
.. image:: https://readthedocs.org/projects/cryptography/badge/?version=latest
|
||||||
|
:target: https://cryptography.io
|
||||||
|
:alt: Latest Docs
|
||||||
|
|
||||||
|
.. image:: https://github.com/pyca/cryptography/actions/workflows/ci.yml/badge.svg
|
||||||
|
:target: https://github.com/pyca/cryptography/actions/workflows/ci.yml?query=branch%3Amain
|
||||||
|
|
||||||
|
``cryptography`` is a package which provides cryptographic recipes and
|
||||||
|
primitives to Python developers. Our goal is for it to be your "cryptographic
|
||||||
|
standard library". It supports Python 3.8+ and PyPy3 7.3.11+.
|
||||||
|
|
||||||
|
``cryptography`` includes both high level recipes and low level interfaces to
|
||||||
|
common cryptographic algorithms such as symmetric ciphers, message digests, and
|
||||||
|
key derivation functions. For example, to encrypt something with
|
||||||
|
``cryptography``'s high level symmetric encryption recipe:
|
||||||
|
|
||||||
|
.. code-block:: pycon
|
||||||
|
|
||||||
|
>>> from cryptography.fernet import Fernet
|
||||||
|
>>> # Put this somewhere safe!
|
||||||
|
>>> key = Fernet.generate_key()
|
||||||
|
>>> f = Fernet(key)
|
||||||
|
>>> token = f.encrypt(b"A really secret message. Not for prying eyes.")
|
||||||
|
>>> token
|
||||||
|
b'...'
|
||||||
|
>>> f.decrypt(token)
|
||||||
|
b'A really secret message. Not for prying eyes.'
|
||||||
|
|
||||||
|
You can find more information in the `documentation`_.
|
||||||
|
|
||||||
|
You can install ``cryptography`` with:
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ pip install cryptography
|
||||||
|
|
||||||
|
For full details see `the installation documentation`_.
|
||||||
|
|
||||||
|
Discussion
|
||||||
|
~~~~~~~~~~
|
||||||
|
|
||||||
|
If you run into bugs, you can file them in our `issue tracker`_.
|
||||||
|
|
||||||
|
We maintain a `cryptography-dev`_ mailing list for development discussion.
|
||||||
|
|
||||||
|
You can also join ``#pyca`` on ``irc.libera.chat`` to ask questions or get
|
||||||
|
involved.
|
||||||
|
|
||||||
|
Security
|
||||||
|
~~~~~~~~
|
||||||
|
|
||||||
|
Need to report a security issue? Please consult our `security reporting`_
|
||||||
|
documentation.
|
||||||
|
|
||||||
|
|
||||||
|
.. _`documentation`: https://cryptography.io/
|
||||||
|
.. _`the installation documentation`: https://cryptography.io/en/latest/installation/
|
||||||
|
.. _`issue tracker`: https://github.com/pyca/cryptography/issues
|
||||||
|
.. _`cryptography-dev`: https://mail.python.org/mailman/listinfo/cryptography-dev
|
||||||
|
.. _`security reporting`: https://cryptography.io/en/latest/security/
|
||||||
|
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,139 @@
|
||||||
|
Metadata-Version: 2.4
|
||||||
|
Name: cryptography
|
||||||
|
Version: 46.0.3
|
||||||
|
Classifier: Development Status :: 5 - Production/Stable
|
||||||
|
Classifier: Intended Audience :: Developers
|
||||||
|
Classifier: Natural Language :: English
|
||||||
|
Classifier: Operating System :: MacOS :: MacOS X
|
||||||
|
Classifier: Operating System :: POSIX
|
||||||
|
Classifier: Operating System :: POSIX :: BSD
|
||||||
|
Classifier: Operating System :: POSIX :: Linux
|
||||||
|
Classifier: Operating System :: Microsoft :: Windows
|
||||||
|
Classifier: Programming Language :: Python
|
||||||
|
Classifier: Programming Language :: Python :: 3
|
||||||
|
Classifier: Programming Language :: Python :: 3 :: Only
|
||||||
|
Classifier: Programming Language :: Python :: 3.8
|
||||||
|
Classifier: Programming Language :: Python :: 3.9
|
||||||
|
Classifier: Programming Language :: Python :: 3.10
|
||||||
|
Classifier: Programming Language :: Python :: 3.11
|
||||||
|
Classifier: Programming Language :: Python :: 3.12
|
||||||
|
Classifier: Programming Language :: Python :: 3.13
|
||||||
|
Classifier: Programming Language :: Python :: 3.14
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
||||||
|
Classifier: Programming Language :: Python :: Free Threading :: 3 - Stable
|
||||||
|
Classifier: Topic :: Security :: Cryptography
|
||||||
|
Requires-Dist: cffi>=1.14 ; python_full_version == '3.8.*' and platform_python_implementation != 'PyPy'
|
||||||
|
Requires-Dist: cffi>=2.0.0 ; python_full_version >= '3.9' and platform_python_implementation != 'PyPy'
|
||||||
|
Requires-Dist: typing-extensions>=4.13.2 ; python_full_version < '3.11'
|
||||||
|
Requires-Dist: bcrypt>=3.1.5 ; extra == 'ssh'
|
||||||
|
Requires-Dist: nox[uv]>=2024.4.15 ; extra == 'nox'
|
||||||
|
Requires-Dist: cryptography-vectors==46.0.3 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest>=7.4.0 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest-benchmark>=4.0 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest-cov>=2.10.1 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest-xdist>=3.5.0 ; extra == 'test'
|
||||||
|
Requires-Dist: pretend>=0.7 ; extra == 'test'
|
||||||
|
Requires-Dist: certifi>=2024 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest-randomly ; extra == 'test-randomorder'
|
||||||
|
Requires-Dist: sphinx>=5.3.0 ; extra == 'docs'
|
||||||
|
Requires-Dist: sphinx-rtd-theme>=3.0.0 ; extra == 'docs'
|
||||||
|
Requires-Dist: sphinx-inline-tabs ; extra == 'docs'
|
||||||
|
Requires-Dist: pyenchant>=3 ; extra == 'docstest'
|
||||||
|
Requires-Dist: readme-renderer>=30.0 ; extra == 'docstest'
|
||||||
|
Requires-Dist: sphinxcontrib-spelling>=7.3.1 ; extra == 'docstest'
|
||||||
|
Requires-Dist: build>=1.0.0 ; extra == 'sdist'
|
||||||
|
Requires-Dist: ruff>=0.11.11 ; extra == 'pep8test'
|
||||||
|
Requires-Dist: mypy>=1.14 ; extra == 'pep8test'
|
||||||
|
Requires-Dist: check-sdist ; extra == 'pep8test'
|
||||||
|
Requires-Dist: click>=8.0.1 ; extra == 'pep8test'
|
||||||
|
Provides-Extra: ssh
|
||||||
|
Provides-Extra: nox
|
||||||
|
Provides-Extra: test
|
||||||
|
Provides-Extra: test-randomorder
|
||||||
|
Provides-Extra: docs
|
||||||
|
Provides-Extra: docstest
|
||||||
|
Provides-Extra: sdist
|
||||||
|
Provides-Extra: pep8test
|
||||||
|
License-File: LICENSE
|
||||||
|
License-File: LICENSE.APACHE
|
||||||
|
License-File: LICENSE.BSD
|
||||||
|
Summary: cryptography is a package which provides cryptographic recipes and primitives to Python developers.
|
||||||
|
Author-email: The Python Cryptographic Authority and individual contributors <cryptography-dev@python.org>
|
||||||
|
License-Expression: Apache-2.0 OR BSD-3-Clause
|
||||||
|
Requires-Python: >=3.8, !=3.9.0, !=3.9.1
|
||||||
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
||||||
|
Project-URL: homepage, https://github.com/pyca/cryptography
|
||||||
|
Project-URL: documentation, https://cryptography.io/
|
||||||
|
Project-URL: source, https://github.com/pyca/cryptography/
|
||||||
|
Project-URL: issues, https://github.com/pyca/cryptography/issues
|
||||||
|
Project-URL: changelog, https://cryptography.io/en/latest/changelog/
|
||||||
|
|
||||||
|
pyca/cryptography
|
||||||
|
=================
|
||||||
|
|
||||||
|
.. image:: https://img.shields.io/pypi/v/cryptography.svg
|
||||||
|
:target: https://pypi.org/project/cryptography/
|
||||||
|
:alt: Latest Version
|
||||||
|
|
||||||
|
.. image:: https://readthedocs.org/projects/cryptography/badge/?version=latest
|
||||||
|
:target: https://cryptography.io
|
||||||
|
:alt: Latest Docs
|
||||||
|
|
||||||
|
.. image:: https://github.com/pyca/cryptography/actions/workflows/ci.yml/badge.svg
|
||||||
|
:target: https://github.com/pyca/cryptography/actions/workflows/ci.yml?query=branch%3Amain
|
||||||
|
|
||||||
|
``cryptography`` is a package which provides cryptographic recipes and
|
||||||
|
primitives to Python developers. Our goal is for it to be your "cryptographic
|
||||||
|
standard library". It supports Python 3.8+ and PyPy3 7.3.11+.
|
||||||
|
|
||||||
|
``cryptography`` includes both high level recipes and low level interfaces to
|
||||||
|
common cryptographic algorithms such as symmetric ciphers, message digests, and
|
||||||
|
key derivation functions. For example, to encrypt something with
|
||||||
|
``cryptography``'s high level symmetric encryption recipe:
|
||||||
|
|
||||||
|
.. code-block:: pycon
|
||||||
|
|
||||||
|
>>> from cryptography.fernet import Fernet
|
||||||
|
>>> # Put this somewhere safe!
|
||||||
|
>>> key = Fernet.generate_key()
|
||||||
|
>>> f = Fernet(key)
|
||||||
|
>>> token = f.encrypt(b"A really secret message. Not for prying eyes.")
|
||||||
|
>>> token
|
||||||
|
b'...'
|
||||||
|
>>> f.decrypt(token)
|
||||||
|
b'A really secret message. Not for prying eyes.'
|
||||||
|
|
||||||
|
You can find more information in the `documentation`_.
|
||||||
|
|
||||||
|
You can install ``cryptography`` with:
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ pip install cryptography
|
||||||
|
|
||||||
|
For full details see `the installation documentation`_.
|
||||||
|
|
||||||
|
Discussion
|
||||||
|
~~~~~~~~~~
|
||||||
|
|
||||||
|
If you run into bugs, you can file them in our `issue tracker`_.
|
||||||
|
|
||||||
|
We maintain a `cryptography-dev`_ mailing list for development discussion.
|
||||||
|
|
||||||
|
You can also join ``#pyca`` on ``irc.libera.chat`` to ask questions or get
|
||||||
|
involved.
|
||||||
|
|
||||||
|
Security
|
||||||
|
~~~~~~~~
|
||||||
|
|
||||||
|
Need to report a security issue? Please consult our `security reporting`_
|
||||||
|
documentation.
|
||||||
|
|
||||||
|
|
||||||
|
.. _`documentation`: https://cryptography.io/
|
||||||
|
.. _`the installation documentation`: https://cryptography.io/en/latest/installation/
|
||||||
|
.. _`issue tracker`: https://github.com/pyca/cryptography/issues
|
||||||
|
.. _`cryptography-dev`: https://mail.python.org/mailman/listinfo/cryptography-dev
|
||||||
|
.. _`security reporting`: https://cryptography.io/en/latest/security/
|
||||||
|
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,139 @@
|
||||||
|
Metadata-Version: 2.4
|
||||||
|
Name: cryptography
|
||||||
|
Version: 46.0.3
|
||||||
|
Classifier: Development Status :: 5 - Production/Stable
|
||||||
|
Classifier: Intended Audience :: Developers
|
||||||
|
Classifier: Natural Language :: English
|
||||||
|
Classifier: Operating System :: MacOS :: MacOS X
|
||||||
|
Classifier: Operating System :: POSIX
|
||||||
|
Classifier: Operating System :: POSIX :: BSD
|
||||||
|
Classifier: Operating System :: POSIX :: Linux
|
||||||
|
Classifier: Operating System :: Microsoft :: Windows
|
||||||
|
Classifier: Programming Language :: Python
|
||||||
|
Classifier: Programming Language :: Python :: 3
|
||||||
|
Classifier: Programming Language :: Python :: 3 :: Only
|
||||||
|
Classifier: Programming Language :: Python :: 3.8
|
||||||
|
Classifier: Programming Language :: Python :: 3.9
|
||||||
|
Classifier: Programming Language :: Python :: 3.10
|
||||||
|
Classifier: Programming Language :: Python :: 3.11
|
||||||
|
Classifier: Programming Language :: Python :: 3.12
|
||||||
|
Classifier: Programming Language :: Python :: 3.13
|
||||||
|
Classifier: Programming Language :: Python :: 3.14
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
||||||
|
Classifier: Programming Language :: Python :: Free Threading :: 3 - Stable
|
||||||
|
Classifier: Topic :: Security :: Cryptography
|
||||||
|
Requires-Dist: cffi>=1.14 ; python_full_version == '3.8.*' and platform_python_implementation != 'PyPy'
|
||||||
|
Requires-Dist: cffi>=2.0.0 ; python_full_version >= '3.9' and platform_python_implementation != 'PyPy'
|
||||||
|
Requires-Dist: typing-extensions>=4.13.2 ; python_full_version < '3.11'
|
||||||
|
Requires-Dist: bcrypt>=3.1.5 ; extra == 'ssh'
|
||||||
|
Requires-Dist: nox[uv]>=2024.4.15 ; extra == 'nox'
|
||||||
|
Requires-Dist: cryptography-vectors==46.0.3 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest>=7.4.0 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest-benchmark>=4.0 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest-cov>=2.10.1 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest-xdist>=3.5.0 ; extra == 'test'
|
||||||
|
Requires-Dist: pretend>=0.7 ; extra == 'test'
|
||||||
|
Requires-Dist: certifi>=2024 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest-randomly ; extra == 'test-randomorder'
|
||||||
|
Requires-Dist: sphinx>=5.3.0 ; extra == 'docs'
|
||||||
|
Requires-Dist: sphinx-rtd-theme>=3.0.0 ; extra == 'docs'
|
||||||
|
Requires-Dist: sphinx-inline-tabs ; extra == 'docs'
|
||||||
|
Requires-Dist: pyenchant>=3 ; extra == 'docstest'
|
||||||
|
Requires-Dist: readme-renderer>=30.0 ; extra == 'docstest'
|
||||||
|
Requires-Dist: sphinxcontrib-spelling>=7.3.1 ; extra == 'docstest'
|
||||||
|
Requires-Dist: build>=1.0.0 ; extra == 'sdist'
|
||||||
|
Requires-Dist: ruff>=0.11.11 ; extra == 'pep8test'
|
||||||
|
Requires-Dist: mypy>=1.14 ; extra == 'pep8test'
|
||||||
|
Requires-Dist: check-sdist ; extra == 'pep8test'
|
||||||
|
Requires-Dist: click>=8.0.1 ; extra == 'pep8test'
|
||||||
|
Provides-Extra: ssh
|
||||||
|
Provides-Extra: nox
|
||||||
|
Provides-Extra: test
|
||||||
|
Provides-Extra: test-randomorder
|
||||||
|
Provides-Extra: docs
|
||||||
|
Provides-Extra: docstest
|
||||||
|
Provides-Extra: sdist
|
||||||
|
Provides-Extra: pep8test
|
||||||
|
License-File: LICENSE
|
||||||
|
License-File: LICENSE.APACHE
|
||||||
|
License-File: LICENSE.BSD
|
||||||
|
Summary: cryptography is a package which provides cryptographic recipes and primitives to Python developers.
|
||||||
|
Author-email: The Python Cryptographic Authority and individual contributors <cryptography-dev@python.org>
|
||||||
|
License-Expression: Apache-2.0 OR BSD-3-Clause
|
||||||
|
Requires-Python: >=3.8, !=3.9.0, !=3.9.1
|
||||||
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
||||||
|
Project-URL: homepage, https://github.com/pyca/cryptography
|
||||||
|
Project-URL: documentation, https://cryptography.io/
|
||||||
|
Project-URL: source, https://github.com/pyca/cryptography/
|
||||||
|
Project-URL: issues, https://github.com/pyca/cryptography/issues
|
||||||
|
Project-URL: changelog, https://cryptography.io/en/latest/changelog/
|
||||||
|
|
||||||
|
pyca/cryptography
|
||||||
|
=================
|
||||||
|
|
||||||
|
.. image:: https://img.shields.io/pypi/v/cryptography.svg
|
||||||
|
:target: https://pypi.org/project/cryptography/
|
||||||
|
:alt: Latest Version
|
||||||
|
|
||||||
|
.. image:: https://readthedocs.org/projects/cryptography/badge/?version=latest
|
||||||
|
:target: https://cryptography.io
|
||||||
|
:alt: Latest Docs
|
||||||
|
|
||||||
|
.. image:: https://github.com/pyca/cryptography/actions/workflows/ci.yml/badge.svg
|
||||||
|
:target: https://github.com/pyca/cryptography/actions/workflows/ci.yml?query=branch%3Amain
|
||||||
|
|
||||||
|
``cryptography`` is a package which provides cryptographic recipes and
|
||||||
|
primitives to Python developers. Our goal is for it to be your "cryptographic
|
||||||
|
standard library". It supports Python 3.8+ and PyPy3 7.3.11+.
|
||||||
|
|
||||||
|
``cryptography`` includes both high level recipes and low level interfaces to
|
||||||
|
common cryptographic algorithms such as symmetric ciphers, message digests, and
|
||||||
|
key derivation functions. For example, to encrypt something with
|
||||||
|
``cryptography``'s high level symmetric encryption recipe:
|
||||||
|
|
||||||
|
.. code-block:: pycon
|
||||||
|
|
||||||
|
>>> from cryptography.fernet import Fernet
|
||||||
|
>>> # Put this somewhere safe!
|
||||||
|
>>> key = Fernet.generate_key()
|
||||||
|
>>> f = Fernet(key)
|
||||||
|
>>> token = f.encrypt(b"A really secret message. Not for prying eyes.")
|
||||||
|
>>> token
|
||||||
|
b'...'
|
||||||
|
>>> f.decrypt(token)
|
||||||
|
b'A really secret message. Not for prying eyes.'
|
||||||
|
|
||||||
|
You can find more information in the `documentation`_.
|
||||||
|
|
||||||
|
You can install ``cryptography`` with:
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ pip install cryptography
|
||||||
|
|
||||||
|
For full details see `the installation documentation`_.
|
||||||
|
|
||||||
|
Discussion
|
||||||
|
~~~~~~~~~~
|
||||||
|
|
||||||
|
If you run into bugs, you can file them in our `issue tracker`_.
|
||||||
|
|
||||||
|
We maintain a `cryptography-dev`_ mailing list for development discussion.
|
||||||
|
|
||||||
|
You can also join ``#pyca`` on ``irc.libera.chat`` to ask questions or get
|
||||||
|
involved.
|
||||||
|
|
||||||
|
Security
|
||||||
|
~~~~~~~~
|
||||||
|
|
||||||
|
Need to report a security issue? Please consult our `security reporting`_
|
||||||
|
documentation.
|
||||||
|
|
||||||
|
|
||||||
|
.. _`documentation`: https://cryptography.io/
|
||||||
|
.. _`the installation documentation`: https://cryptography.io/en/latest/installation/
|
||||||
|
.. _`issue tracker`: https://github.com/pyca/cryptography/issues
|
||||||
|
.. _`cryptography-dev`: https://mail.python.org/mailman/listinfo/cryptography-dev
|
||||||
|
.. _`security reporting`: https://cryptography.io/en/latest/security/
|
||||||
|
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,139 @@
|
||||||
|
Metadata-Version: 2.4
|
||||||
|
Name: cryptography
|
||||||
|
Version: 46.0.3
|
||||||
|
Classifier: Development Status :: 5 - Production/Stable
|
||||||
|
Classifier: Intended Audience :: Developers
|
||||||
|
Classifier: Natural Language :: English
|
||||||
|
Classifier: Operating System :: MacOS :: MacOS X
|
||||||
|
Classifier: Operating System :: POSIX
|
||||||
|
Classifier: Operating System :: POSIX :: BSD
|
||||||
|
Classifier: Operating System :: POSIX :: Linux
|
||||||
|
Classifier: Operating System :: Microsoft :: Windows
|
||||||
|
Classifier: Programming Language :: Python
|
||||||
|
Classifier: Programming Language :: Python :: 3
|
||||||
|
Classifier: Programming Language :: Python :: 3 :: Only
|
||||||
|
Classifier: Programming Language :: Python :: 3.8
|
||||||
|
Classifier: Programming Language :: Python :: 3.9
|
||||||
|
Classifier: Programming Language :: Python :: 3.10
|
||||||
|
Classifier: Programming Language :: Python :: 3.11
|
||||||
|
Classifier: Programming Language :: Python :: 3.12
|
||||||
|
Classifier: Programming Language :: Python :: 3.13
|
||||||
|
Classifier: Programming Language :: Python :: 3.14
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
||||||
|
Classifier: Programming Language :: Python :: Free Threading :: 3 - Stable
|
||||||
|
Classifier: Topic :: Security :: Cryptography
|
||||||
|
Requires-Dist: cffi>=1.14 ; python_full_version == '3.8.*' and platform_python_implementation != 'PyPy'
|
||||||
|
Requires-Dist: cffi>=2.0.0 ; python_full_version >= '3.9' and platform_python_implementation != 'PyPy'
|
||||||
|
Requires-Dist: typing-extensions>=4.13.2 ; python_full_version < '3.11'
|
||||||
|
Requires-Dist: bcrypt>=3.1.5 ; extra == 'ssh'
|
||||||
|
Requires-Dist: nox[uv]>=2024.4.15 ; extra == 'nox'
|
||||||
|
Requires-Dist: cryptography-vectors==46.0.3 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest>=7.4.0 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest-benchmark>=4.0 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest-cov>=2.10.1 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest-xdist>=3.5.0 ; extra == 'test'
|
||||||
|
Requires-Dist: pretend>=0.7 ; extra == 'test'
|
||||||
|
Requires-Dist: certifi>=2024 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest-randomly ; extra == 'test-randomorder'
|
||||||
|
Requires-Dist: sphinx>=5.3.0 ; extra == 'docs'
|
||||||
|
Requires-Dist: sphinx-rtd-theme>=3.0.0 ; extra == 'docs'
|
||||||
|
Requires-Dist: sphinx-inline-tabs ; extra == 'docs'
|
||||||
|
Requires-Dist: pyenchant>=3 ; extra == 'docstest'
|
||||||
|
Requires-Dist: readme-renderer>=30.0 ; extra == 'docstest'
|
||||||
|
Requires-Dist: sphinxcontrib-spelling>=7.3.1 ; extra == 'docstest'
|
||||||
|
Requires-Dist: build>=1.0.0 ; extra == 'sdist'
|
||||||
|
Requires-Dist: ruff>=0.11.11 ; extra == 'pep8test'
|
||||||
|
Requires-Dist: mypy>=1.14 ; extra == 'pep8test'
|
||||||
|
Requires-Dist: check-sdist ; extra == 'pep8test'
|
||||||
|
Requires-Dist: click>=8.0.1 ; extra == 'pep8test'
|
||||||
|
Provides-Extra: ssh
|
||||||
|
Provides-Extra: nox
|
||||||
|
Provides-Extra: test
|
||||||
|
Provides-Extra: test-randomorder
|
||||||
|
Provides-Extra: docs
|
||||||
|
Provides-Extra: docstest
|
||||||
|
Provides-Extra: sdist
|
||||||
|
Provides-Extra: pep8test
|
||||||
|
License-File: LICENSE
|
||||||
|
License-File: LICENSE.APACHE
|
||||||
|
License-File: LICENSE.BSD
|
||||||
|
Summary: cryptography is a package which provides cryptographic recipes and primitives to Python developers.
|
||||||
|
Author-email: The Python Cryptographic Authority and individual contributors <cryptography-dev@python.org>
|
||||||
|
License-Expression: Apache-2.0 OR BSD-3-Clause
|
||||||
|
Requires-Python: >=3.8, !=3.9.0, !=3.9.1
|
||||||
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
||||||
|
Project-URL: homepage, https://github.com/pyca/cryptography
|
||||||
|
Project-URL: documentation, https://cryptography.io/
|
||||||
|
Project-URL: source, https://github.com/pyca/cryptography/
|
||||||
|
Project-URL: issues, https://github.com/pyca/cryptography/issues
|
||||||
|
Project-URL: changelog, https://cryptography.io/en/latest/changelog/
|
||||||
|
|
||||||
|
pyca/cryptography
|
||||||
|
=================
|
||||||
|
|
||||||
|
.. image:: https://img.shields.io/pypi/v/cryptography.svg
|
||||||
|
:target: https://pypi.org/project/cryptography/
|
||||||
|
:alt: Latest Version
|
||||||
|
|
||||||
|
.. image:: https://readthedocs.org/projects/cryptography/badge/?version=latest
|
||||||
|
:target: https://cryptography.io
|
||||||
|
:alt: Latest Docs
|
||||||
|
|
||||||
|
.. image:: https://github.com/pyca/cryptography/actions/workflows/ci.yml/badge.svg
|
||||||
|
:target: https://github.com/pyca/cryptography/actions/workflows/ci.yml?query=branch%3Amain
|
||||||
|
|
||||||
|
``cryptography`` is a package which provides cryptographic recipes and
|
||||||
|
primitives to Python developers. Our goal is for it to be your "cryptographic
|
||||||
|
standard library". It supports Python 3.8+ and PyPy3 7.3.11+.
|
||||||
|
|
||||||
|
``cryptography`` includes both high level recipes and low level interfaces to
|
||||||
|
common cryptographic algorithms such as symmetric ciphers, message digests, and
|
||||||
|
key derivation functions. For example, to encrypt something with
|
||||||
|
``cryptography``'s high level symmetric encryption recipe:
|
||||||
|
|
||||||
|
.. code-block:: pycon
|
||||||
|
|
||||||
|
>>> from cryptography.fernet import Fernet
|
||||||
|
>>> # Put this somewhere safe!
|
||||||
|
>>> key = Fernet.generate_key()
|
||||||
|
>>> f = Fernet(key)
|
||||||
|
>>> token = f.encrypt(b"A really secret message. Not for prying eyes.")
|
||||||
|
>>> token
|
||||||
|
b'...'
|
||||||
|
>>> f.decrypt(token)
|
||||||
|
b'A really secret message. Not for prying eyes.'
|
||||||
|
|
||||||
|
You can find more information in the `documentation`_.
|
||||||
|
|
||||||
|
You can install ``cryptography`` with:
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ pip install cryptography
|
||||||
|
|
||||||
|
For full details see `the installation documentation`_.
|
||||||
|
|
||||||
|
Discussion
|
||||||
|
~~~~~~~~~~
|
||||||
|
|
||||||
|
If you run into bugs, you can file them in our `issue tracker`_.
|
||||||
|
|
||||||
|
We maintain a `cryptography-dev`_ mailing list for development discussion.
|
||||||
|
|
||||||
|
You can also join ``#pyca`` on ``irc.libera.chat`` to ask questions or get
|
||||||
|
involved.
|
||||||
|
|
||||||
|
Security
|
||||||
|
~~~~~~~~
|
||||||
|
|
||||||
|
Need to report a security issue? Please consult our `security reporting`_
|
||||||
|
documentation.
|
||||||
|
|
||||||
|
|
||||||
|
.. _`documentation`: https://cryptography.io/
|
||||||
|
.. _`the installation documentation`: https://cryptography.io/en/latest/installation/
|
||||||
|
.. _`issue tracker`: https://github.com/pyca/cryptography/issues
|
||||||
|
.. _`cryptography-dev`: https://mail.python.org/mailman/listinfo/cryptography-dev
|
||||||
|
.. _`security reporting`: https://cryptography.io/en/latest/security/
|
||||||
|
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,139 @@
|
||||||
|
Metadata-Version: 2.4
|
||||||
|
Name: cryptography
|
||||||
|
Version: 46.0.3
|
||||||
|
Classifier: Development Status :: 5 - Production/Stable
|
||||||
|
Classifier: Intended Audience :: Developers
|
||||||
|
Classifier: Natural Language :: English
|
||||||
|
Classifier: Operating System :: MacOS :: MacOS X
|
||||||
|
Classifier: Operating System :: POSIX
|
||||||
|
Classifier: Operating System :: POSIX :: BSD
|
||||||
|
Classifier: Operating System :: POSIX :: Linux
|
||||||
|
Classifier: Operating System :: Microsoft :: Windows
|
||||||
|
Classifier: Programming Language :: Python
|
||||||
|
Classifier: Programming Language :: Python :: 3
|
||||||
|
Classifier: Programming Language :: Python :: 3 :: Only
|
||||||
|
Classifier: Programming Language :: Python :: 3.8
|
||||||
|
Classifier: Programming Language :: Python :: 3.9
|
||||||
|
Classifier: Programming Language :: Python :: 3.10
|
||||||
|
Classifier: Programming Language :: Python :: 3.11
|
||||||
|
Classifier: Programming Language :: Python :: 3.12
|
||||||
|
Classifier: Programming Language :: Python :: 3.13
|
||||||
|
Classifier: Programming Language :: Python :: 3.14
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
||||||
|
Classifier: Programming Language :: Python :: Free Threading :: 3 - Stable
|
||||||
|
Classifier: Topic :: Security :: Cryptography
|
||||||
|
Requires-Dist: cffi>=1.14 ; python_full_version == '3.8.*' and platform_python_implementation != 'PyPy'
|
||||||
|
Requires-Dist: cffi>=2.0.0 ; python_full_version >= '3.9' and platform_python_implementation != 'PyPy'
|
||||||
|
Requires-Dist: typing-extensions>=4.13.2 ; python_full_version < '3.11'
|
||||||
|
Requires-Dist: bcrypt>=3.1.5 ; extra == 'ssh'
|
||||||
|
Requires-Dist: nox[uv]>=2024.4.15 ; extra == 'nox'
|
||||||
|
Requires-Dist: cryptography-vectors==46.0.3 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest>=7.4.0 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest-benchmark>=4.0 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest-cov>=2.10.1 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest-xdist>=3.5.0 ; extra == 'test'
|
||||||
|
Requires-Dist: pretend>=0.7 ; extra == 'test'
|
||||||
|
Requires-Dist: certifi>=2024 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest-randomly ; extra == 'test-randomorder'
|
||||||
|
Requires-Dist: sphinx>=5.3.0 ; extra == 'docs'
|
||||||
|
Requires-Dist: sphinx-rtd-theme>=3.0.0 ; extra == 'docs'
|
||||||
|
Requires-Dist: sphinx-inline-tabs ; extra == 'docs'
|
||||||
|
Requires-Dist: pyenchant>=3 ; extra == 'docstest'
|
||||||
|
Requires-Dist: readme-renderer>=30.0 ; extra == 'docstest'
|
||||||
|
Requires-Dist: sphinxcontrib-spelling>=7.3.1 ; extra == 'docstest'
|
||||||
|
Requires-Dist: build>=1.0.0 ; extra == 'sdist'
|
||||||
|
Requires-Dist: ruff>=0.11.11 ; extra == 'pep8test'
|
||||||
|
Requires-Dist: mypy>=1.14 ; extra == 'pep8test'
|
||||||
|
Requires-Dist: check-sdist ; extra == 'pep8test'
|
||||||
|
Requires-Dist: click>=8.0.1 ; extra == 'pep8test'
|
||||||
|
Provides-Extra: ssh
|
||||||
|
Provides-Extra: nox
|
||||||
|
Provides-Extra: test
|
||||||
|
Provides-Extra: test-randomorder
|
||||||
|
Provides-Extra: docs
|
||||||
|
Provides-Extra: docstest
|
||||||
|
Provides-Extra: sdist
|
||||||
|
Provides-Extra: pep8test
|
||||||
|
License-File: LICENSE
|
||||||
|
License-File: LICENSE.APACHE
|
||||||
|
License-File: LICENSE.BSD
|
||||||
|
Summary: cryptography is a package which provides cryptographic recipes and primitives to Python developers.
|
||||||
|
Author-email: The Python Cryptographic Authority and individual contributors <cryptography-dev@python.org>
|
||||||
|
License-Expression: Apache-2.0 OR BSD-3-Clause
|
||||||
|
Requires-Python: >=3.8, !=3.9.0, !=3.9.1
|
||||||
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
||||||
|
Project-URL: homepage, https://github.com/pyca/cryptography
|
||||||
|
Project-URL: documentation, https://cryptography.io/
|
||||||
|
Project-URL: source, https://github.com/pyca/cryptography/
|
||||||
|
Project-URL: issues, https://github.com/pyca/cryptography/issues
|
||||||
|
Project-URL: changelog, https://cryptography.io/en/latest/changelog/
|
||||||
|
|
||||||
|
pyca/cryptography
|
||||||
|
=================
|
||||||
|
|
||||||
|
.. image:: https://img.shields.io/pypi/v/cryptography.svg
|
||||||
|
:target: https://pypi.org/project/cryptography/
|
||||||
|
:alt: Latest Version
|
||||||
|
|
||||||
|
.. image:: https://readthedocs.org/projects/cryptography/badge/?version=latest
|
||||||
|
:target: https://cryptography.io
|
||||||
|
:alt: Latest Docs
|
||||||
|
|
||||||
|
.. image:: https://github.com/pyca/cryptography/actions/workflows/ci.yml/badge.svg
|
||||||
|
:target: https://github.com/pyca/cryptography/actions/workflows/ci.yml?query=branch%3Amain
|
||||||
|
|
||||||
|
``cryptography`` is a package which provides cryptographic recipes and
|
||||||
|
primitives to Python developers. Our goal is for it to be your "cryptographic
|
||||||
|
standard library". It supports Python 3.8+ and PyPy3 7.3.11+.
|
||||||
|
|
||||||
|
``cryptography`` includes both high level recipes and low level interfaces to
|
||||||
|
common cryptographic algorithms such as symmetric ciphers, message digests, and
|
||||||
|
key derivation functions. For example, to encrypt something with
|
||||||
|
``cryptography``'s high level symmetric encryption recipe:
|
||||||
|
|
||||||
|
.. code-block:: pycon
|
||||||
|
|
||||||
|
>>> from cryptography.fernet import Fernet
|
||||||
|
>>> # Put this somewhere safe!
|
||||||
|
>>> key = Fernet.generate_key()
|
||||||
|
>>> f = Fernet(key)
|
||||||
|
>>> token = f.encrypt(b"A really secret message. Not for prying eyes.")
|
||||||
|
>>> token
|
||||||
|
b'...'
|
||||||
|
>>> f.decrypt(token)
|
||||||
|
b'A really secret message. Not for prying eyes.'
|
||||||
|
|
||||||
|
You can find more information in the `documentation`_.
|
||||||
|
|
||||||
|
You can install ``cryptography`` with:
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ pip install cryptography
|
||||||
|
|
||||||
|
For full details see `the installation documentation`_.
|
||||||
|
|
||||||
|
Discussion
|
||||||
|
~~~~~~~~~~
|
||||||
|
|
||||||
|
If you run into bugs, you can file them in our `issue tracker`_.
|
||||||
|
|
||||||
|
We maintain a `cryptography-dev`_ mailing list for development discussion.
|
||||||
|
|
||||||
|
You can also join ``#pyca`` on ``irc.libera.chat`` to ask questions or get
|
||||||
|
involved.
|
||||||
|
|
||||||
|
Security
|
||||||
|
~~~~~~~~
|
||||||
|
|
||||||
|
Need to report a security issue? Please consult our `security reporting`_
|
||||||
|
documentation.
|
||||||
|
|
||||||
|
|
||||||
|
.. _`documentation`: https://cryptography.io/
|
||||||
|
.. _`the installation documentation`: https://cryptography.io/en/latest/installation/
|
||||||
|
.. _`issue tracker`: https://github.com/pyca/cryptography/issues
|
||||||
|
.. _`cryptography-dev`: https://mail.python.org/mailman/listinfo/cryptography-dev
|
||||||
|
.. _`security reporting`: https://cryptography.io/en/latest/security/
|
||||||
|
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,139 @@
|
||||||
|
Metadata-Version: 2.4
|
||||||
|
Name: cryptography
|
||||||
|
Version: 46.0.3
|
||||||
|
Classifier: Development Status :: 5 - Production/Stable
|
||||||
|
Classifier: Intended Audience :: Developers
|
||||||
|
Classifier: Natural Language :: English
|
||||||
|
Classifier: Operating System :: MacOS :: MacOS X
|
||||||
|
Classifier: Operating System :: POSIX
|
||||||
|
Classifier: Operating System :: POSIX :: BSD
|
||||||
|
Classifier: Operating System :: POSIX :: Linux
|
||||||
|
Classifier: Operating System :: Microsoft :: Windows
|
||||||
|
Classifier: Programming Language :: Python
|
||||||
|
Classifier: Programming Language :: Python :: 3
|
||||||
|
Classifier: Programming Language :: Python :: 3 :: Only
|
||||||
|
Classifier: Programming Language :: Python :: 3.8
|
||||||
|
Classifier: Programming Language :: Python :: 3.9
|
||||||
|
Classifier: Programming Language :: Python :: 3.10
|
||||||
|
Classifier: Programming Language :: Python :: 3.11
|
||||||
|
Classifier: Programming Language :: Python :: 3.12
|
||||||
|
Classifier: Programming Language :: Python :: 3.13
|
||||||
|
Classifier: Programming Language :: Python :: 3.14
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
||||||
|
Classifier: Programming Language :: Python :: Free Threading :: 3 - Stable
|
||||||
|
Classifier: Topic :: Security :: Cryptography
|
||||||
|
Requires-Dist: cffi>=1.14 ; python_full_version == '3.8.*' and platform_python_implementation != 'PyPy'
|
||||||
|
Requires-Dist: cffi>=2.0.0 ; python_full_version >= '3.9' and platform_python_implementation != 'PyPy'
|
||||||
|
Requires-Dist: typing-extensions>=4.13.2 ; python_full_version < '3.11'
|
||||||
|
Requires-Dist: bcrypt>=3.1.5 ; extra == 'ssh'
|
||||||
|
Requires-Dist: nox[uv]>=2024.4.15 ; extra == 'nox'
|
||||||
|
Requires-Dist: cryptography-vectors==46.0.3 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest>=7.4.0 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest-benchmark>=4.0 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest-cov>=2.10.1 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest-xdist>=3.5.0 ; extra == 'test'
|
||||||
|
Requires-Dist: pretend>=0.7 ; extra == 'test'
|
||||||
|
Requires-Dist: certifi>=2024 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest-randomly ; extra == 'test-randomorder'
|
||||||
|
Requires-Dist: sphinx>=5.3.0 ; extra == 'docs'
|
||||||
|
Requires-Dist: sphinx-rtd-theme>=3.0.0 ; extra == 'docs'
|
||||||
|
Requires-Dist: sphinx-inline-tabs ; extra == 'docs'
|
||||||
|
Requires-Dist: pyenchant>=3 ; extra == 'docstest'
|
||||||
|
Requires-Dist: readme-renderer>=30.0 ; extra == 'docstest'
|
||||||
|
Requires-Dist: sphinxcontrib-spelling>=7.3.1 ; extra == 'docstest'
|
||||||
|
Requires-Dist: build>=1.0.0 ; extra == 'sdist'
|
||||||
|
Requires-Dist: ruff>=0.11.11 ; extra == 'pep8test'
|
||||||
|
Requires-Dist: mypy>=1.14 ; extra == 'pep8test'
|
||||||
|
Requires-Dist: check-sdist ; extra == 'pep8test'
|
||||||
|
Requires-Dist: click>=8.0.1 ; extra == 'pep8test'
|
||||||
|
Provides-Extra: ssh
|
||||||
|
Provides-Extra: nox
|
||||||
|
Provides-Extra: test
|
||||||
|
Provides-Extra: test-randomorder
|
||||||
|
Provides-Extra: docs
|
||||||
|
Provides-Extra: docstest
|
||||||
|
Provides-Extra: sdist
|
||||||
|
Provides-Extra: pep8test
|
||||||
|
License-File: LICENSE
|
||||||
|
License-File: LICENSE.APACHE
|
||||||
|
License-File: LICENSE.BSD
|
||||||
|
Summary: cryptography is a package which provides cryptographic recipes and primitives to Python developers.
|
||||||
|
Author-email: The Python Cryptographic Authority and individual contributors <cryptography-dev@python.org>
|
||||||
|
License-Expression: Apache-2.0 OR BSD-3-Clause
|
||||||
|
Requires-Python: >=3.8, !=3.9.0, !=3.9.1
|
||||||
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
||||||
|
Project-URL: homepage, https://github.com/pyca/cryptography
|
||||||
|
Project-URL: documentation, https://cryptography.io/
|
||||||
|
Project-URL: source, https://github.com/pyca/cryptography/
|
||||||
|
Project-URL: issues, https://github.com/pyca/cryptography/issues
|
||||||
|
Project-URL: changelog, https://cryptography.io/en/latest/changelog/
|
||||||
|
|
||||||
|
pyca/cryptography
|
||||||
|
=================
|
||||||
|
|
||||||
|
.. image:: https://img.shields.io/pypi/v/cryptography.svg
|
||||||
|
:target: https://pypi.org/project/cryptography/
|
||||||
|
:alt: Latest Version
|
||||||
|
|
||||||
|
.. image:: https://readthedocs.org/projects/cryptography/badge/?version=latest
|
||||||
|
:target: https://cryptography.io
|
||||||
|
:alt: Latest Docs
|
||||||
|
|
||||||
|
.. image:: https://github.com/pyca/cryptography/actions/workflows/ci.yml/badge.svg
|
||||||
|
:target: https://github.com/pyca/cryptography/actions/workflows/ci.yml?query=branch%3Amain
|
||||||
|
|
||||||
|
``cryptography`` is a package which provides cryptographic recipes and
|
||||||
|
primitives to Python developers. Our goal is for it to be your "cryptographic
|
||||||
|
standard library". It supports Python 3.8+ and PyPy3 7.3.11+.
|
||||||
|
|
||||||
|
``cryptography`` includes both high level recipes and low level interfaces to
|
||||||
|
common cryptographic algorithms such as symmetric ciphers, message digests, and
|
||||||
|
key derivation functions. For example, to encrypt something with
|
||||||
|
``cryptography``'s high level symmetric encryption recipe:
|
||||||
|
|
||||||
|
.. code-block:: pycon
|
||||||
|
|
||||||
|
>>> from cryptography.fernet import Fernet
|
||||||
|
>>> # Put this somewhere safe!
|
||||||
|
>>> key = Fernet.generate_key()
|
||||||
|
>>> f = Fernet(key)
|
||||||
|
>>> token = f.encrypt(b"A really secret message. Not for prying eyes.")
|
||||||
|
>>> token
|
||||||
|
b'...'
|
||||||
|
>>> f.decrypt(token)
|
||||||
|
b'A really secret message. Not for prying eyes.'
|
||||||
|
|
||||||
|
You can find more information in the `documentation`_.
|
||||||
|
|
||||||
|
You can install ``cryptography`` with:
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ pip install cryptography
|
||||||
|
|
||||||
|
For full details see `the installation documentation`_.
|
||||||
|
|
||||||
|
Discussion
|
||||||
|
~~~~~~~~~~
|
||||||
|
|
||||||
|
If you run into bugs, you can file them in our `issue tracker`_.
|
||||||
|
|
||||||
|
We maintain a `cryptography-dev`_ mailing list for development discussion.
|
||||||
|
|
||||||
|
You can also join ``#pyca`` on ``irc.libera.chat`` to ask questions or get
|
||||||
|
involved.
|
||||||
|
|
||||||
|
Security
|
||||||
|
~~~~~~~~
|
||||||
|
|
||||||
|
Need to report a security issue? Please consult our `security reporting`_
|
||||||
|
documentation.
|
||||||
|
|
||||||
|
|
||||||
|
.. _`documentation`: https://cryptography.io/
|
||||||
|
.. _`the installation documentation`: https://cryptography.io/en/latest/installation/
|
||||||
|
.. _`issue tracker`: https://github.com/pyca/cryptography/issues
|
||||||
|
.. _`cryptography-dev`: https://mail.python.org/mailman/listinfo/cryptography-dev
|
||||||
|
.. _`security reporting`: https://cryptography.io/en/latest/security/
|
||||||
|
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,139 @@
|
||||||
|
Metadata-Version: 2.4
|
||||||
|
Name: cryptography
|
||||||
|
Version: 46.0.3
|
||||||
|
Classifier: Development Status :: 5 - Production/Stable
|
||||||
|
Classifier: Intended Audience :: Developers
|
||||||
|
Classifier: Natural Language :: English
|
||||||
|
Classifier: Operating System :: MacOS :: MacOS X
|
||||||
|
Classifier: Operating System :: POSIX
|
||||||
|
Classifier: Operating System :: POSIX :: BSD
|
||||||
|
Classifier: Operating System :: POSIX :: Linux
|
||||||
|
Classifier: Operating System :: Microsoft :: Windows
|
||||||
|
Classifier: Programming Language :: Python
|
||||||
|
Classifier: Programming Language :: Python :: 3
|
||||||
|
Classifier: Programming Language :: Python :: 3 :: Only
|
||||||
|
Classifier: Programming Language :: Python :: 3.8
|
||||||
|
Classifier: Programming Language :: Python :: 3.9
|
||||||
|
Classifier: Programming Language :: Python :: 3.10
|
||||||
|
Classifier: Programming Language :: Python :: 3.11
|
||||||
|
Classifier: Programming Language :: Python :: 3.12
|
||||||
|
Classifier: Programming Language :: Python :: 3.13
|
||||||
|
Classifier: Programming Language :: Python :: 3.14
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
||||||
|
Classifier: Programming Language :: Python :: Free Threading :: 3 - Stable
|
||||||
|
Classifier: Topic :: Security :: Cryptography
|
||||||
|
Requires-Dist: cffi>=1.14 ; python_full_version == '3.8.*' and platform_python_implementation != 'PyPy'
|
||||||
|
Requires-Dist: cffi>=2.0.0 ; python_full_version >= '3.9' and platform_python_implementation != 'PyPy'
|
||||||
|
Requires-Dist: typing-extensions>=4.13.2 ; python_full_version < '3.11'
|
||||||
|
Requires-Dist: bcrypt>=3.1.5 ; extra == 'ssh'
|
||||||
|
Requires-Dist: nox[uv]>=2024.4.15 ; extra == 'nox'
|
||||||
|
Requires-Dist: cryptography-vectors==46.0.3 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest>=7.4.0 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest-benchmark>=4.0 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest-cov>=2.10.1 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest-xdist>=3.5.0 ; extra == 'test'
|
||||||
|
Requires-Dist: pretend>=0.7 ; extra == 'test'
|
||||||
|
Requires-Dist: certifi>=2024 ; extra == 'test'
|
||||||
|
Requires-Dist: pytest-randomly ; extra == 'test-randomorder'
|
||||||
|
Requires-Dist: sphinx>=5.3.0 ; extra == 'docs'
|
||||||
|
Requires-Dist: sphinx-rtd-theme>=3.0.0 ; extra == 'docs'
|
||||||
|
Requires-Dist: sphinx-inline-tabs ; extra == 'docs'
|
||||||
|
Requires-Dist: pyenchant>=3 ; extra == 'docstest'
|
||||||
|
Requires-Dist: readme-renderer>=30.0 ; extra == 'docstest'
|
||||||
|
Requires-Dist: sphinxcontrib-spelling>=7.3.1 ; extra == 'docstest'
|
||||||
|
Requires-Dist: build>=1.0.0 ; extra == 'sdist'
|
||||||
|
Requires-Dist: ruff>=0.11.11 ; extra == 'pep8test'
|
||||||
|
Requires-Dist: mypy>=1.14 ; extra == 'pep8test'
|
||||||
|
Requires-Dist: check-sdist ; extra == 'pep8test'
|
||||||
|
Requires-Dist: click>=8.0.1 ; extra == 'pep8test'
|
||||||
|
Provides-Extra: ssh
|
||||||
|
Provides-Extra: nox
|
||||||
|
Provides-Extra: test
|
||||||
|
Provides-Extra: test-randomorder
|
||||||
|
Provides-Extra: docs
|
||||||
|
Provides-Extra: docstest
|
||||||
|
Provides-Extra: sdist
|
||||||
|
Provides-Extra: pep8test
|
||||||
|
License-File: LICENSE
|
||||||
|
License-File: LICENSE.APACHE
|
||||||
|
License-File: LICENSE.BSD
|
||||||
|
Summary: cryptography is a package which provides cryptographic recipes and primitives to Python developers.
|
||||||
|
Author-email: The Python Cryptographic Authority and individual contributors <cryptography-dev@python.org>
|
||||||
|
License-Expression: Apache-2.0 OR BSD-3-Clause
|
||||||
|
Requires-Python: >=3.8, !=3.9.0, !=3.9.1
|
||||||
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
||||||
|
Project-URL: homepage, https://github.com/pyca/cryptography
|
||||||
|
Project-URL: documentation, https://cryptography.io/
|
||||||
|
Project-URL: source, https://github.com/pyca/cryptography/
|
||||||
|
Project-URL: issues, https://github.com/pyca/cryptography/issues
|
||||||
|
Project-URL: changelog, https://cryptography.io/en/latest/changelog/
|
||||||
|
|
||||||
|
pyca/cryptography
|
||||||
|
=================
|
||||||
|
|
||||||
|
.. image:: https://img.shields.io/pypi/v/cryptography.svg
|
||||||
|
:target: https://pypi.org/project/cryptography/
|
||||||
|
:alt: Latest Version
|
||||||
|
|
||||||
|
.. image:: https://readthedocs.org/projects/cryptography/badge/?version=latest
|
||||||
|
:target: https://cryptography.io
|
||||||
|
:alt: Latest Docs
|
||||||
|
|
||||||
|
.. image:: https://github.com/pyca/cryptography/actions/workflows/ci.yml/badge.svg
|
||||||
|
:target: https://github.com/pyca/cryptography/actions/workflows/ci.yml?query=branch%3Amain
|
||||||
|
|
||||||
|
``cryptography`` is a package which provides cryptographic recipes and
|
||||||
|
primitives to Python developers. Our goal is for it to be your "cryptographic
|
||||||
|
standard library". It supports Python 3.8+ and PyPy3 7.3.11+.
|
||||||
|
|
||||||
|
``cryptography`` includes both high level recipes and low level interfaces to
|
||||||
|
common cryptographic algorithms such as symmetric ciphers, message digests, and
|
||||||
|
key derivation functions. For example, to encrypt something with
|
||||||
|
``cryptography``'s high level symmetric encryption recipe:
|
||||||
|
|
||||||
|
.. code-block:: pycon
|
||||||
|
|
||||||
|
>>> from cryptography.fernet import Fernet
|
||||||
|
>>> # Put this somewhere safe!
|
||||||
|
>>> key = Fernet.generate_key()
|
||||||
|
>>> f = Fernet(key)
|
||||||
|
>>> token = f.encrypt(b"A really secret message. Not for prying eyes.")
|
||||||
|
>>> token
|
||||||
|
b'...'
|
||||||
|
>>> f.decrypt(token)
|
||||||
|
b'A really secret message. Not for prying eyes.'
|
||||||
|
|
||||||
|
You can find more information in the `documentation`_.
|
||||||
|
|
||||||
|
You can install ``cryptography`` with:
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ pip install cryptography
|
||||||
|
|
||||||
|
For full details see `the installation documentation`_.
|
||||||
|
|
||||||
|
Discussion
|
||||||
|
~~~~~~~~~~
|
||||||
|
|
||||||
|
If you run into bugs, you can file them in our `issue tracker`_.
|
||||||
|
|
||||||
|
We maintain a `cryptography-dev`_ mailing list for development discussion.
|
||||||
|
|
||||||
|
You can also join ``#pyca`` on ``irc.libera.chat`` to ask questions or get
|
||||||
|
involved.
|
||||||
|
|
||||||
|
Security
|
||||||
|
~~~~~~~~
|
||||||
|
|
||||||
|
Need to report a security issue? Please consult our `security reporting`_
|
||||||
|
documentation.
|
||||||
|
|
||||||
|
|
||||||
|
.. _`documentation`: https://cryptography.io/
|
||||||
|
.. _`the installation documentation`: https://cryptography.io/en/latest/installation/
|
||||||
|
.. _`issue tracker`: https://github.com/pyca/cryptography/issues
|
||||||
|
.. _`cryptography-dev`: https://mail.python.org/mailman/listinfo/cryptography-dev
|
||||||
|
.. _`security reporting`: https://cryptography.io/en/latest/security/
|
||||||
|
|
||||||
|
|
@ -0,0 +1,48 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta name="generator" content="simple503 version 0.4.0" />
|
||||||
|
<meta name="pypi:repository-version" content="1.0" />
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<title>
|
||||||
|
Links for cryptography
|
||||||
|
</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>
|
||||||
|
Links for cryptography
|
||||||
|
</h1>
|
||||||
|
<a href="/cryptography/cryptography-46.0.3-cp311-abi3-musllinux_1_2_x86_64.whl#sha256=a04bee9ab6a4da801eb9b51f1b708a1b5b5c9eb48c03f74198464c66f0d344ac" data-requires-python=">=3.8, !=3.9.0, !=3.9.1" data-dist-info-metadata="sha256=6f1d8bc82126395502f051f986c18465ec163e2668208613ab484cf66bbdaf8b">
|
||||||
|
cryptography-46.0.3-cp311-abi3-musllinux_1_2_x86_64.whl
|
||||||
|
</a>
|
||||||
|
<br />
|
||||||
|
<a href="/cryptography/cryptography-46.0.3-cp311-abi3-manylinux_2_34_x86_64.whl#sha256=10b01676fc208c3e6feeb25a8b83d81767e8059e1fe86e1dc62d10a3018fa926" data-requires-python=">=3.8, !=3.9.0, !=3.9.1" data-dist-info-metadata="sha256=6f1d8bc82126395502f051f986c18465ec163e2668208613ab484cf66bbdaf8b">
|
||||||
|
cryptography-46.0.3-cp311-abi3-manylinux_2_34_x86_64.whl
|
||||||
|
</a>
|
||||||
|
<br />
|
||||||
|
<a href="/cryptography/cryptography-46.0.3-cp311-abi3-manylinux_2_28_x86_64.whl#sha256=a2c0cd47381a3229c403062f764160d57d4d175e022c1df84e168c6251a22eec" data-requires-python=">=3.8, !=3.9.0, !=3.9.1" data-dist-info-metadata="sha256=6f1d8bc82126395502f051f986c18465ec163e2668208613ab484cf66bbdaf8b">
|
||||||
|
cryptography-46.0.3-cp311-abi3-manylinux_2_28_x86_64.whl
|
||||||
|
</a>
|
||||||
|
<br />
|
||||||
|
<a href="/cryptography/cryptography-46.0.3-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl#sha256=01ca9ff2885f3acc98c29f1860552e37f6d7c7d013d7334ff2a9de43a449315d" data-requires-python=">=3.8, !=3.9.0, !=3.9.1" data-dist-info-metadata="sha256=6f1d8bc82126395502f051f986c18465ec163e2668208613ab484cf66bbdaf8b">
|
||||||
|
cryptography-46.0.3-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
|
||||||
|
</a>
|
||||||
|
<br />
|
||||||
|
<a href="/cryptography/cryptography-46.0.3-cp38-abi3-musllinux_1_2_x86_64.whl#sha256=3b51b8ca4f1c6453d8829e1eb7299499ca7f313900dd4d89a24b8b87c0a780d4" data-requires-python=">=3.8, !=3.9.0, !=3.9.1" data-dist-info-metadata="sha256=6f1d8bc82126395502f051f986c18465ec163e2668208613ab484cf66bbdaf8b">
|
||||||
|
cryptography-46.0.3-cp38-abi3-musllinux_1_2_x86_64.whl
|
||||||
|
</a>
|
||||||
|
<br />
|
||||||
|
<a href="/cryptography/cryptography-46.0.3-cp38-abi3-manylinux_2_34_x86_64.whl#sha256=402b58fc32614f00980b66d6e56a5b4118e6cb362ae8f3fda141ba4689bd4506" data-requires-python=">=3.8, !=3.9.0, !=3.9.1" data-dist-info-metadata="sha256=6f1d8bc82126395502f051f986c18465ec163e2668208613ab484cf66bbdaf8b">
|
||||||
|
cryptography-46.0.3-cp38-abi3-manylinux_2_34_x86_64.whl
|
||||||
|
</a>
|
||||||
|
<br />
|
||||||
|
<a href="/cryptography/cryptography-46.0.3-cp38-abi3-manylinux_2_28_x86_64.whl#sha256=1000713389b75c449a6e979ffc7dcc8ac90b437048766cef052d4d30b8220971" data-requires-python=">=3.8, !=3.9.0, !=3.9.1" data-dist-info-metadata="sha256=6f1d8bc82126395502f051f986c18465ec163e2668208613ab484cf66bbdaf8b">
|
||||||
|
cryptography-46.0.3-cp38-abi3-manylinux_2_28_x86_64.whl
|
||||||
|
</a>
|
||||||
|
<br />
|
||||||
|
<a href="/cryptography/cryptography-46.0.3-cp38-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl#sha256=15ab9b093e8f09daab0f2159bb7e47532596075139dd74365da52ecc9cb46c5d" data-requires-python=">=3.8, !=3.9.0, !=3.9.1" data-dist-info-metadata="sha256=6f1d8bc82126395502f051f986c18465ec163e2668208613ab484cf66bbdaf8b">
|
||||||
|
cryptography-46.0.3-cp38-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
|
||||||
|
</a>
|
||||||
|
<br />
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,96 @@
|
||||||
|
Metadata-Version: 2.4
|
||||||
|
Name: Cython
|
||||||
|
Version: 3.1.7
|
||||||
|
Summary: The Cython compiler for writing C extensions in the Python language.
|
||||||
|
Home-page: https://cython.org/
|
||||||
|
Author: Robert Bradshaw, Stefan Behnel, David Woods, Greg Ewing, et al.
|
||||||
|
Author-email: cython-devel@python.org
|
||||||
|
License: Apache-2.0
|
||||||
|
Project-URL: Documentation, https://cython.readthedocs.io/
|
||||||
|
Project-URL: Donate, https://cython.readthedocs.io/en/latest/src/donating.html
|
||||||
|
Project-URL: Source Code, https://github.com/cython/cython
|
||||||
|
Project-URL: Bug Tracker, https://github.com/cython/cython/issues/
|
||||||
|
Project-URL: User Group, https://groups.google.com/g/cython-users
|
||||||
|
Classifier: Development Status :: 5 - Production/Stable
|
||||||
|
Classifier: Intended Audience :: Developers
|
||||||
|
Classifier: License :: OSI Approved :: Apache Software License
|
||||||
|
Classifier: Operating System :: OS Independent
|
||||||
|
Classifier: Programming Language :: Python
|
||||||
|
Classifier: Programming Language :: Python :: 3
|
||||||
|
Classifier: Programming Language :: Python :: 3.8
|
||||||
|
Classifier: Programming Language :: Python :: 3.9
|
||||||
|
Classifier: Programming Language :: Python :: 3.10
|
||||||
|
Classifier: Programming Language :: Python :: 3.11
|
||||||
|
Classifier: Programming Language :: Python :: 3.12
|
||||||
|
Classifier: Programming Language :: Python :: 3.13
|
||||||
|
Classifier: Programming Language :: Python :: 3.14
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: Stackless
|
||||||
|
Classifier: Programming Language :: C
|
||||||
|
Classifier: Programming Language :: C++
|
||||||
|
Classifier: Programming Language :: Cython
|
||||||
|
Classifier: Topic :: Software Development :: Code Generators
|
||||||
|
Classifier: Topic :: Software Development :: Compilers
|
||||||
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
||||||
|
Classifier: Typing :: Typed
|
||||||
|
Requires-Python: >=3.8
|
||||||
|
Description-Content-Type: text/x-rst
|
||||||
|
Dynamic: author
|
||||||
|
Dynamic: author-email
|
||||||
|
Dynamic: classifier
|
||||||
|
Dynamic: description
|
||||||
|
Dynamic: description-content-type
|
||||||
|
Dynamic: home-page
|
||||||
|
Dynamic: license
|
||||||
|
Dynamic: project-url
|
||||||
|
Dynamic: requires-python
|
||||||
|
Dynamic: summary
|
||||||
|
|
||||||
|
The Cython language makes writing C extensions for the Python language as
|
||||||
|
easy as Python itself. Cython is a source code translator based on Pyrex_,
|
||||||
|
but supports more cutting edge functionality and optimizations.
|
||||||
|
|
||||||
|
The Cython language is a superset of the Python language (almost all Python
|
||||||
|
code is also valid Cython code), but Cython additionally supports optional
|
||||||
|
static typing to natively call C functions, operate with C++ classes and
|
||||||
|
declare fast C types on variables and class attributes. This allows the
|
||||||
|
compiler to generate very efficient C code from Cython code.
|
||||||
|
|
||||||
|
This makes Cython the ideal language for writing glue code for external
|
||||||
|
C/C++ libraries, and for fast C modules that speed up the execution of
|
||||||
|
Python code.
|
||||||
|
|
||||||
|
The newest Cython release can always be downloaded from https://cython.org/.
|
||||||
|
Unpack the tarball or zip file, enter the directory, and then run::
|
||||||
|
|
||||||
|
pip install .
|
||||||
|
|
||||||
|
Note that for one-time builds, e.g. for CI/testing, on platforms that are not
|
||||||
|
covered by one of the wheel packages provided on PyPI *and* the pure Python wheel
|
||||||
|
that we provide is not used, it is substantially faster than a full source build
|
||||||
|
to install an uncompiled (slower) version of Cython with::
|
||||||
|
|
||||||
|
NO_CYTHON_COMPILE=true pip install .
|
||||||
|
|
||||||
|
.. _Pyrex: https://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/
|
||||||
|
|
||||||
|
3.1.7 (2025-11-12)
|
||||||
|
==================
|
||||||
|
|
||||||
|
Bugs fixed
|
||||||
|
----------
|
||||||
|
|
||||||
|
* Unicode characters formatted from C integers with padding, as in ``f"{value:XXc}"``,
|
||||||
|
could result in invalid Python string objects since Cython 3.1.0.
|
||||||
|
Also, lone surrogates failed to format in this way.
|
||||||
|
(Github issue https://github.com/cython/cython/issues/7298)
|
||||||
|
|
||||||
|
* Assigning nested structs from a list of structs (item by item) could crash Cython.
|
||||||
|
(Github issue https://github.com/cython/cython/issues/7308)
|
||||||
|
|
||||||
|
* Cython incorrectly called ``PyList_GetItemRef()`` in PyPy and GraalPython before Py3.13.
|
||||||
|
(Github issue https://github.com/cython/cython/issues/7269)
|
||||||
|
|
||||||
|
* Trying to instantiate internal types used by Cython is now prohibited.
|
||||||
|
(Github issue https://github.com/cython/cython/issues/7263)
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,96 @@
|
||||||
|
Metadata-Version: 2.4
|
||||||
|
Name: Cython
|
||||||
|
Version: 3.1.7
|
||||||
|
Summary: The Cython compiler for writing C extensions in the Python language.
|
||||||
|
Home-page: https://cython.org/
|
||||||
|
Author: Robert Bradshaw, Stefan Behnel, David Woods, Greg Ewing, et al.
|
||||||
|
Author-email: cython-devel@python.org
|
||||||
|
License: Apache-2.0
|
||||||
|
Project-URL: Documentation, https://cython.readthedocs.io/
|
||||||
|
Project-URL: Donate, https://cython.readthedocs.io/en/latest/src/donating.html
|
||||||
|
Project-URL: Source Code, https://github.com/cython/cython
|
||||||
|
Project-URL: Bug Tracker, https://github.com/cython/cython/issues/
|
||||||
|
Project-URL: User Group, https://groups.google.com/g/cython-users
|
||||||
|
Classifier: Development Status :: 5 - Production/Stable
|
||||||
|
Classifier: Intended Audience :: Developers
|
||||||
|
Classifier: License :: OSI Approved :: Apache Software License
|
||||||
|
Classifier: Operating System :: OS Independent
|
||||||
|
Classifier: Programming Language :: Python
|
||||||
|
Classifier: Programming Language :: Python :: 3
|
||||||
|
Classifier: Programming Language :: Python :: 3.8
|
||||||
|
Classifier: Programming Language :: Python :: 3.9
|
||||||
|
Classifier: Programming Language :: Python :: 3.10
|
||||||
|
Classifier: Programming Language :: Python :: 3.11
|
||||||
|
Classifier: Programming Language :: Python :: 3.12
|
||||||
|
Classifier: Programming Language :: Python :: 3.13
|
||||||
|
Classifier: Programming Language :: Python :: 3.14
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: Stackless
|
||||||
|
Classifier: Programming Language :: C
|
||||||
|
Classifier: Programming Language :: C++
|
||||||
|
Classifier: Programming Language :: Cython
|
||||||
|
Classifier: Topic :: Software Development :: Code Generators
|
||||||
|
Classifier: Topic :: Software Development :: Compilers
|
||||||
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
||||||
|
Classifier: Typing :: Typed
|
||||||
|
Requires-Python: >=3.8
|
||||||
|
Description-Content-Type: text/x-rst
|
||||||
|
Dynamic: author
|
||||||
|
Dynamic: author-email
|
||||||
|
Dynamic: classifier
|
||||||
|
Dynamic: description
|
||||||
|
Dynamic: description-content-type
|
||||||
|
Dynamic: home-page
|
||||||
|
Dynamic: license
|
||||||
|
Dynamic: project-url
|
||||||
|
Dynamic: requires-python
|
||||||
|
Dynamic: summary
|
||||||
|
|
||||||
|
The Cython language makes writing C extensions for the Python language as
|
||||||
|
easy as Python itself. Cython is a source code translator based on Pyrex_,
|
||||||
|
but supports more cutting edge functionality and optimizations.
|
||||||
|
|
||||||
|
The Cython language is a superset of the Python language (almost all Python
|
||||||
|
code is also valid Cython code), but Cython additionally supports optional
|
||||||
|
static typing to natively call C functions, operate with C++ classes and
|
||||||
|
declare fast C types on variables and class attributes. This allows the
|
||||||
|
compiler to generate very efficient C code from Cython code.
|
||||||
|
|
||||||
|
This makes Cython the ideal language for writing glue code for external
|
||||||
|
C/C++ libraries, and for fast C modules that speed up the execution of
|
||||||
|
Python code.
|
||||||
|
|
||||||
|
The newest Cython release can always be downloaded from https://cython.org/.
|
||||||
|
Unpack the tarball or zip file, enter the directory, and then run::
|
||||||
|
|
||||||
|
pip install .
|
||||||
|
|
||||||
|
Note that for one-time builds, e.g. for CI/testing, on platforms that are not
|
||||||
|
covered by one of the wheel packages provided on PyPI *and* the pure Python wheel
|
||||||
|
that we provide is not used, it is substantially faster than a full source build
|
||||||
|
to install an uncompiled (slower) version of Cython with::
|
||||||
|
|
||||||
|
NO_CYTHON_COMPILE=true pip install .
|
||||||
|
|
||||||
|
.. _Pyrex: https://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/
|
||||||
|
|
||||||
|
3.1.7 (2025-11-12)
|
||||||
|
==================
|
||||||
|
|
||||||
|
Bugs fixed
|
||||||
|
----------
|
||||||
|
|
||||||
|
* Unicode characters formatted from C integers with padding, as in ``f"{value:XXc}"``,
|
||||||
|
could result in invalid Python string objects since Cython 3.1.0.
|
||||||
|
Also, lone surrogates failed to format in this way.
|
||||||
|
(Github issue https://github.com/cython/cython/issues/7298)
|
||||||
|
|
||||||
|
* Assigning nested structs from a list of structs (item by item) could crash Cython.
|
||||||
|
(Github issue https://github.com/cython/cython/issues/7308)
|
||||||
|
|
||||||
|
* Cython incorrectly called ``PyList_GetItemRef()`` in PyPy and GraalPython before Py3.13.
|
||||||
|
(Github issue https://github.com/cython/cython/issues/7269)
|
||||||
|
|
||||||
|
* Trying to instantiate internal types used by Cython is now prohibited.
|
||||||
|
(Github issue https://github.com/cython/cython/issues/7263)
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,96 @@
|
||||||
|
Metadata-Version: 2.4
|
||||||
|
Name: Cython
|
||||||
|
Version: 3.1.7
|
||||||
|
Summary: The Cython compiler for writing C extensions in the Python language.
|
||||||
|
Home-page: https://cython.org/
|
||||||
|
Author: Robert Bradshaw, Stefan Behnel, David Woods, Greg Ewing, et al.
|
||||||
|
Author-email: cython-devel@python.org
|
||||||
|
License: Apache-2.0
|
||||||
|
Project-URL: Documentation, https://cython.readthedocs.io/
|
||||||
|
Project-URL: Donate, https://cython.readthedocs.io/en/latest/src/donating.html
|
||||||
|
Project-URL: Source Code, https://github.com/cython/cython
|
||||||
|
Project-URL: Bug Tracker, https://github.com/cython/cython/issues/
|
||||||
|
Project-URL: User Group, https://groups.google.com/g/cython-users
|
||||||
|
Classifier: Development Status :: 5 - Production/Stable
|
||||||
|
Classifier: Intended Audience :: Developers
|
||||||
|
Classifier: License :: OSI Approved :: Apache Software License
|
||||||
|
Classifier: Operating System :: OS Independent
|
||||||
|
Classifier: Programming Language :: Python
|
||||||
|
Classifier: Programming Language :: Python :: 3
|
||||||
|
Classifier: Programming Language :: Python :: 3.8
|
||||||
|
Classifier: Programming Language :: Python :: 3.9
|
||||||
|
Classifier: Programming Language :: Python :: 3.10
|
||||||
|
Classifier: Programming Language :: Python :: 3.11
|
||||||
|
Classifier: Programming Language :: Python :: 3.12
|
||||||
|
Classifier: Programming Language :: Python :: 3.13
|
||||||
|
Classifier: Programming Language :: Python :: 3.14
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: Stackless
|
||||||
|
Classifier: Programming Language :: C
|
||||||
|
Classifier: Programming Language :: C++
|
||||||
|
Classifier: Programming Language :: Cython
|
||||||
|
Classifier: Topic :: Software Development :: Code Generators
|
||||||
|
Classifier: Topic :: Software Development :: Compilers
|
||||||
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
||||||
|
Classifier: Typing :: Typed
|
||||||
|
Requires-Python: >=3.8
|
||||||
|
Description-Content-Type: text/x-rst
|
||||||
|
Dynamic: author
|
||||||
|
Dynamic: author-email
|
||||||
|
Dynamic: classifier
|
||||||
|
Dynamic: description
|
||||||
|
Dynamic: description-content-type
|
||||||
|
Dynamic: home-page
|
||||||
|
Dynamic: license
|
||||||
|
Dynamic: project-url
|
||||||
|
Dynamic: requires-python
|
||||||
|
Dynamic: summary
|
||||||
|
|
||||||
|
The Cython language makes writing C extensions for the Python language as
|
||||||
|
easy as Python itself. Cython is a source code translator based on Pyrex_,
|
||||||
|
but supports more cutting edge functionality and optimizations.
|
||||||
|
|
||||||
|
The Cython language is a superset of the Python language (almost all Python
|
||||||
|
code is also valid Cython code), but Cython additionally supports optional
|
||||||
|
static typing to natively call C functions, operate with C++ classes and
|
||||||
|
declare fast C types on variables and class attributes. This allows the
|
||||||
|
compiler to generate very efficient C code from Cython code.
|
||||||
|
|
||||||
|
This makes Cython the ideal language for writing glue code for external
|
||||||
|
C/C++ libraries, and for fast C modules that speed up the execution of
|
||||||
|
Python code.
|
||||||
|
|
||||||
|
The newest Cython release can always be downloaded from https://cython.org/.
|
||||||
|
Unpack the tarball or zip file, enter the directory, and then run::
|
||||||
|
|
||||||
|
pip install .
|
||||||
|
|
||||||
|
Note that for one-time builds, e.g. for CI/testing, on platforms that are not
|
||||||
|
covered by one of the wheel packages provided on PyPI *and* the pure Python wheel
|
||||||
|
that we provide is not used, it is substantially faster than a full source build
|
||||||
|
to install an uncompiled (slower) version of Cython with::
|
||||||
|
|
||||||
|
NO_CYTHON_COMPILE=true pip install .
|
||||||
|
|
||||||
|
.. _Pyrex: https://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/
|
||||||
|
|
||||||
|
3.1.7 (2025-11-12)
|
||||||
|
==================
|
||||||
|
|
||||||
|
Bugs fixed
|
||||||
|
----------
|
||||||
|
|
||||||
|
* Unicode characters formatted from C integers with padding, as in ``f"{value:XXc}"``,
|
||||||
|
could result in invalid Python string objects since Cython 3.1.0.
|
||||||
|
Also, lone surrogates failed to format in this way.
|
||||||
|
(Github issue https://github.com/cython/cython/issues/7298)
|
||||||
|
|
||||||
|
* Assigning nested structs from a list of structs (item by item) could crash Cython.
|
||||||
|
(Github issue https://github.com/cython/cython/issues/7308)
|
||||||
|
|
||||||
|
* Cython incorrectly called ``PyList_GetItemRef()`` in PyPy and GraalPython before Py3.13.
|
||||||
|
(Github issue https://github.com/cython/cython/issues/7269)
|
||||||
|
|
||||||
|
* Trying to instantiate internal types used by Cython is now prohibited.
|
||||||
|
(Github issue https://github.com/cython/cython/issues/7263)
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,96 @@
|
||||||
|
Metadata-Version: 2.4
|
||||||
|
Name: Cython
|
||||||
|
Version: 3.1.7
|
||||||
|
Summary: The Cython compiler for writing C extensions in the Python language.
|
||||||
|
Home-page: https://cython.org/
|
||||||
|
Author: Robert Bradshaw, Stefan Behnel, David Woods, Greg Ewing, et al.
|
||||||
|
Author-email: cython-devel@python.org
|
||||||
|
License: Apache-2.0
|
||||||
|
Project-URL: Documentation, https://cython.readthedocs.io/
|
||||||
|
Project-URL: Donate, https://cython.readthedocs.io/en/latest/src/donating.html
|
||||||
|
Project-URL: Source Code, https://github.com/cython/cython
|
||||||
|
Project-URL: Bug Tracker, https://github.com/cython/cython/issues/
|
||||||
|
Project-URL: User Group, https://groups.google.com/g/cython-users
|
||||||
|
Classifier: Development Status :: 5 - Production/Stable
|
||||||
|
Classifier: Intended Audience :: Developers
|
||||||
|
Classifier: License :: OSI Approved :: Apache Software License
|
||||||
|
Classifier: Operating System :: OS Independent
|
||||||
|
Classifier: Programming Language :: Python
|
||||||
|
Classifier: Programming Language :: Python :: 3
|
||||||
|
Classifier: Programming Language :: Python :: 3.8
|
||||||
|
Classifier: Programming Language :: Python :: 3.9
|
||||||
|
Classifier: Programming Language :: Python :: 3.10
|
||||||
|
Classifier: Programming Language :: Python :: 3.11
|
||||||
|
Classifier: Programming Language :: Python :: 3.12
|
||||||
|
Classifier: Programming Language :: Python :: 3.13
|
||||||
|
Classifier: Programming Language :: Python :: 3.14
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: Stackless
|
||||||
|
Classifier: Programming Language :: C
|
||||||
|
Classifier: Programming Language :: C++
|
||||||
|
Classifier: Programming Language :: Cython
|
||||||
|
Classifier: Topic :: Software Development :: Code Generators
|
||||||
|
Classifier: Topic :: Software Development :: Compilers
|
||||||
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
||||||
|
Classifier: Typing :: Typed
|
||||||
|
Requires-Python: >=3.8
|
||||||
|
Description-Content-Type: text/x-rst
|
||||||
|
Dynamic: author
|
||||||
|
Dynamic: author-email
|
||||||
|
Dynamic: classifier
|
||||||
|
Dynamic: description
|
||||||
|
Dynamic: description-content-type
|
||||||
|
Dynamic: home-page
|
||||||
|
Dynamic: license
|
||||||
|
Dynamic: project-url
|
||||||
|
Dynamic: requires-python
|
||||||
|
Dynamic: summary
|
||||||
|
|
||||||
|
The Cython language makes writing C extensions for the Python language as
|
||||||
|
easy as Python itself. Cython is a source code translator based on Pyrex_,
|
||||||
|
but supports more cutting edge functionality and optimizations.
|
||||||
|
|
||||||
|
The Cython language is a superset of the Python language (almost all Python
|
||||||
|
code is also valid Cython code), but Cython additionally supports optional
|
||||||
|
static typing to natively call C functions, operate with C++ classes and
|
||||||
|
declare fast C types on variables and class attributes. This allows the
|
||||||
|
compiler to generate very efficient C code from Cython code.
|
||||||
|
|
||||||
|
This makes Cython the ideal language for writing glue code for external
|
||||||
|
C/C++ libraries, and for fast C modules that speed up the execution of
|
||||||
|
Python code.
|
||||||
|
|
||||||
|
The newest Cython release can always be downloaded from https://cython.org/.
|
||||||
|
Unpack the tarball or zip file, enter the directory, and then run::
|
||||||
|
|
||||||
|
pip install .
|
||||||
|
|
||||||
|
Note that for one-time builds, e.g. for CI/testing, on platforms that are not
|
||||||
|
covered by one of the wheel packages provided on PyPI *and* the pure Python wheel
|
||||||
|
that we provide is not used, it is substantially faster than a full source build
|
||||||
|
to install an uncompiled (slower) version of Cython with::
|
||||||
|
|
||||||
|
NO_CYTHON_COMPILE=true pip install .
|
||||||
|
|
||||||
|
.. _Pyrex: https://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/
|
||||||
|
|
||||||
|
3.1.7 (2025-11-12)
|
||||||
|
==================
|
||||||
|
|
||||||
|
Bugs fixed
|
||||||
|
----------
|
||||||
|
|
||||||
|
* Unicode characters formatted from C integers with padding, as in ``f"{value:XXc}"``,
|
||||||
|
could result in invalid Python string objects since Cython 3.1.0.
|
||||||
|
Also, lone surrogates failed to format in this way.
|
||||||
|
(Github issue https://github.com/cython/cython/issues/7298)
|
||||||
|
|
||||||
|
* Assigning nested structs from a list of structs (item by item) could crash Cython.
|
||||||
|
(Github issue https://github.com/cython/cython/issues/7308)
|
||||||
|
|
||||||
|
* Cython incorrectly called ``PyList_GetItemRef()`` in PyPy and GraalPython before Py3.13.
|
||||||
|
(Github issue https://github.com/cython/cython/issues/7269)
|
||||||
|
|
||||||
|
* Trying to instantiate internal types used by Cython is now prohibited.
|
||||||
|
(Github issue https://github.com/cython/cython/issues/7263)
|
||||||
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue