mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-07-05 21:03:14 +03:00
Update examples
This commit is contained in:
parent
ebe29d9836
commit
d1a9c2dcd2
|
@ -2,7 +2,7 @@ Aiohttp + Dependency Injector Example
|
|||
=====================================
|
||||
|
||||
This is an `Aiohttp <https://docs.aiohttp.org/>`_ +
|
||||
`Dependency Injector <http://python-dependency-injector.ets-labs.org/>`_ example application.
|
||||
`Dependency Injector <https://python-dependency-injector.ets-labs.org/>`_ example application.
|
||||
|
||||
The example application is a REST API that searches for funny GIFs on the `Giphy <https://giphy.com/>`_.
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ from aiohttp import ClientSession, ClientTimeout
|
|||
|
||||
class GiphyClient:
|
||||
|
||||
API_URL = 'http://api.giphy.com/v1'
|
||||
API_URL = 'https://api.giphy.com/v1'
|
||||
|
||||
def __init__(self, api_key, timeout):
|
||||
self._api_key = api_key
|
||||
|
|
|
@ -2,7 +2,7 @@ Asyncio Daemon + Dependency Injector Example
|
|||
============================================
|
||||
|
||||
This is an `asyncio <https://docs.python.org/3/library/asyncio.html>`_ +
|
||||
`Dependency Injector <http://python-dependency-injector.ets-labs.org/>`_ example application.
|
||||
`Dependency Injector <https://python-dependency-injector.ets-labs.org/>`_ example application.
|
||||
|
||||
The example application is a daemon that monitors availability of web services.
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ Django + Dependency Injector Example
|
|||
====================================
|
||||
|
||||
This is a `Django <https://www.djangoproject.com/>`_ +
|
||||
`Dependency Injector <http://python-dependency-injector.ets-labs.org/>`_ example application.
|
||||
`Dependency Injector <https://python-dependency-injector.ets-labs.org/>`_ example application.
|
||||
|
||||
The example application helps to search for repositories on the Github.
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ Flask + Dependency Injector Example
|
|||
===================================
|
||||
|
||||
This is a `Flask <https://flask.palletsprojects.com/>`_ +
|
||||
`Dependency Injector <http://python-dependency-injector.ets-labs.org/>`_ example application.
|
||||
`Dependency Injector <https://python-dependency-injector.ets-labs.org/>`_ example application.
|
||||
|
||||
The example application helps to search for repositories on the Github.
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ Movie lister - a naive example of dependency injection in Python
|
|||
This is a Python implementation of the dependency injection example from Martin Fowler's
|
||||
article:
|
||||
|
||||
http://www.martinfowler.com/articles/injection.html
|
||||
https://www.martinfowler.com/articles/injection.html
|
||||
|
||||
Run
|
||||
---
|
||||
|
|
|
@ -2,7 +2,7 @@ Sanic + Dependency Injector Example
|
|||
===================================
|
||||
|
||||
This is a `Sanic <https://sanic.readthedocs.io/en/latest/index.html>`_ +
|
||||
`Dependency Injector <http://python-dependency-injector.ets-labs.org/>`_ example application.
|
||||
`Dependency Injector <https://python-dependency-injector.ets-labs.org/>`_ example application.
|
||||
|
||||
The example application is a REST API that searches for funny GIFs on the `Giphy <https://giphy.com/>`_.
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ from aiohttp import ClientSession, ClientTimeout
|
|||
|
||||
class GiphyClient:
|
||||
|
||||
API_URL = 'http://api.giphy.com/v1'
|
||||
API_URL = 'https://api.giphy.com/v1'
|
||||
|
||||
def __init__(self, api_key, timeout):
|
||||
self._api_key = api_key
|
||||
|
|
Loading…
Reference in New Issue
Block a user