All Projects → aio-libs → Aiodocker

aio-libs / Aiodocker

Licence: other
Python Docker API client based on asyncio and aiohttp

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Aiodocker

website
PySlackers website for invites and learning resources
Stars: ✭ 61 (-78.82%)
Mutual labels:  aiohttp, asyncio
Web Main
🎉 Ultimate Emoji Generator
Stars: ✭ 261 (-9.37%)
Mutual labels:  asyncio, aiohttp
dvhb-hybrid
A package to mix django and asyncio in one application
Stars: ✭ 45 (-84.37%)
Mutual labels:  aiohttp, asyncio
fbemissary
A bot framework for the Facebook Messenger platform, built on asyncio and aiohttp
Stars: ✭ 30 (-89.58%)
Mutual labels:  aiohttp, asyncio
aiohttp traversal
Traversal based router for aiohttp.web
Stars: ✭ 21 (-92.71%)
Mutual labels:  aiohttp, asyncio
feedsearch-crawler
Crawl sites for RSS, Atom, and JSON feeds.
Stars: ✭ 23 (-92.01%)
Mutual labels:  aiohttp, asyncio
waio
Is a pretty simple and fully asynchronous framework for WhatsApp Business API written in Python 3.7 with asyncio and aiohttp.
Stars: ✭ 18 (-93.75%)
Mutual labels:  aiohttp, asyncio
netunnel
A tool to create network tunnels over HTTP/S written in Python 3
Stars: ✭ 19 (-93.4%)
Mutual labels:  aiohttp, asyncio
aiohttp-socks
Proxy (HTTP, SOCKS) connector for aiohttp
Stars: ✭ 147 (-48.96%)
Mutual labels:  aiohttp, asyncio
rigor
HTTP-based DSL for for validating RESTful APIs
Stars: ✭ 65 (-77.43%)
Mutual labels:  aiohttp, asyncio
pyladies-courseware
Homework/task submit and review web app · based on React and Python aiohttp
Stars: ✭ 14 (-95.14%)
Mutual labels:  aiohttp, asyncio
Python3 Concurrency Pics 02
爬取 www.mzitu.com 全站图片,截至目前共5162个图集,16.5万多张美女图片,使用 asyncio 和 aiohttp 实现的异步版本只需要不到2小时就能爬取完成。按日期创建图集目录,保存更合理。控制台只显示下载的进度条,详细信息保存在日志文件中。支持异常处理,不会终止爬虫程序。失败的请求,下次再执行爬虫程序时会自动下载
Stars: ✭ 275 (-4.51%)
Mutual labels:  asyncio, aiohttp
aiohttp-mako
mako template renderer for aiohttp.web
Stars: ✭ 32 (-88.89%)
Mutual labels:  aiohttp, asyncio
glQiwiApi
The ultrarapid and multifunctional wrapper over QIWI and YooMoney
Stars: ✭ 44 (-84.72%)
Mutual labels:  aiohttp, asyncio
stream video server
demonstrates how to create video streaming server with the help of aiohttp and opencv
Stars: ✭ 15 (-94.79%)
Mutual labels:  aiohttp, asyncio
aiohttp-jwt
aiohttp middleware and helper utils for working with JSON web token.
Stars: ✭ 70 (-75.69%)
Mutual labels:  aiohttp, asyncio
python3-concurrency
Python3爬虫系列的理论验证,首先研究I/O模型,分别用Python实现了blocking I/O、nonblocking I/O、I/O multiplexing各模型下的TCP服务端和客户端。然后,研究同步I/O操作(依序下载、多进程并发、多线程并发)和异步I/O(asyncio)之间的效率差别
Stars: ✭ 49 (-82.99%)
Mutual labels:  aiohttp, asyncio
tomodachi
💻 Microservice library / framework using Python's asyncio event loop with full support for HTTP + WebSockets, AWS SNS+SQS, RabbitMQ / AMQP, middleware, etc. Extendable for GraphQL, protobuf, gRPC, among other technologies.
Stars: ✭ 170 (-40.97%)
Mutual labels:  aiohttp, asyncio
aiodogstatsd
An asyncio-based client for sending metrics to StatsD with support of DogStatsD extension
Stars: ✭ 26 (-90.97%)
Mutual labels:  aiohttp, asyncio
binance-chain-python
Binance chain SDK in Python
Stars: ✭ 22 (-92.36%)
Mutual labels:  aiohttp, asyncio

============================== AsyncIO bindings for docker.io

.. image:: https://badge.fury.io/py/aiodocker.svg :target: https://badge.fury.io/py/aiodocker :alt: PyPI version

.. image:: https://img.shields.io/pypi/pyversions/aiodocker.svg :target: https://pypi.org/project/aiodocker/ :alt: Python Versions

.. image:: https://travis-ci.com/aio-libs/aiodocker.svg?branch=master :target: https://travis-ci.com/aio-libs/aiodocker :alt: Build Status

.. image:: https://codecov.io/gh/aio-libs/aiodocker/branch/master/graph/badge.svg :target: https://codecov.io/gh/aio-libs/aiodocker :alt: Code Coverage

.. image:: https://badges.gitter.im/Join%20Chat.svg :target: https://gitter.im/aio-libs/Lobby :alt: Chat on Gitter

A simple Docker HTTP API wrapper written with asyncio and aiohttp.

Installation

.. code-block:: sh

pip install aiodocker

Documentation

http://aiodocker.readthedocs.io

Examples

.. code-block:: python

import asyncio import aiodocker

async def list_things(): docker = aiodocker.Docker() print('== Images ==') for image in (await docker.images.list()): tags = image['RepoTags'][0] if image['RepoTags'] else '' print(image['Id'], tags) print('== Containers ==') for container in (await docker.containers.list()): print(f" {container._id}") await docker.close()

async def run_container(): docker = aiodocker.Docker() print('== Running a hello-world container ==') container = await docker.containers.create_or_replace( config={ 'Cmd': ['/bin/ash', '-c', 'echo "hello world"'], 'Image': 'alpine:latest', }, name='testing', ) await container.start() logs = await container.log(stdout=True) print(''.join(logs)) await container.delete(force=True) await docker.close()

if name == 'main': loop = asyncio.get_event_loop() loop.run_until_complete(list_things()) loop.run_until_complete(run_container()) loop.close()

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].