GitHub
github.com › kodemore › kink
GitHub - kodemore/kink: Dependency injection container made for Python · GitHub
Dependency injection container made for Python. Contribute to kodemore/kink development by creating an account on GitHub.
Starred by 442 users
Forked by 30 users
Languages Python
GitHub
github.com › kodemore › kink › blob › master › pyproject.toml
kink/pyproject.toml at master · kodemore/kink
Dependency injection container made for Python. Contribute to kodemore/kink development by creating an account on GitHub.
Author kodemore
GitHub
github.com › topics › kink
kink · GitHub Topics · GitHub
python opensource dependency-injection mit-license kink fastapi fastapi-extension fastapi-controllers
GitHub
github.com › kinkgarden
kink.garden · GitHub
share your kinks with your friends, or the world · Python 6 1 · botto.ms · botto.ms Public · source code for https://botto.ms · HTML · Showing 2 of 2 repositories · kinkgarden Public · share your kinks with your friends, or the world · There was an error while loading.
GitHub
github.com › kodemore › kink › blob › master › kink › __init__.py
kink/kink/__init__.py at master · kodemore/kink
Dependency injection container made for Python. Contribute to kodemore/kink development by creating an account on GitHub.
Author kodemore
GitHub
github.com › Biswas1101 › kink › blob › main › kinkdownloader.py
kink/kinkdownloader.py at main · Biswas1101/kink
#!/usr/bin/env python3 · ############################################################################## # kinkdownloader, v0.6.1 - Downloads Kink.com videos and metadata. # # Copyright (C) 2020 MeanMrMustardGas <meanmrmustardgas at protonmail dot com> # # This program is free software: you can redistribute it and/or modify ·
Author Biswas1101
GitHub
github.com › kodemore › kink › blob › master › kink › inject.py
kink/kink/inject.py at master · kodemore/kink
Dependency injection container made for Python. Contribute to kodemore/kink development by creating an account on GitHub.
Author kodemore
GitHub
github.com › sfermigier › awesome-dependency-injection-in-python
GitHub - sfermigier/awesome-dependency-injection-in-python: A curated list of awesome things related to dependency inversion / dependency injection in Python. (Contributions welcomed). · GitHub
Inject ★770 - Python dependency injection. [🐍, Apache License 2.0]. FastDepends ★497 - FastAPI Dependency Injection system extracted from FastAPI and cleared of all HTTP logic. [🐍, MIT License]. Kink ★438 - Dependency injection container made for Python.
Author sfermigier
GitHub
github.com › kodemore › kink › issues
Issues · kodemore/kink
Dependency injection container made for Python. Contribute to kodemore/kink development by creating an account on GitHub.
Author kodemore
GitHub
github.com › satanasov › scraper
GitHub - satanasov/scraper: Small python project to scrape kink.com and create NFO files
Small python project to scrape kink.com and create NFO files - satanasov/scraper
Author satanasov
GitHub
github.com › gpelouze › kink_cutoff
GitHub - gpelouze/kink_cutoff: 3D MHD simulations of propagating kink waves in open field lines using PLUTO
This features files to simulate the propagation of kink waves through the transition region, and study their cutoff. setups/: PLUTO setup files (see their respective README): ... conversion/relax_2D_to_3D.py: converts the output of the 2D relaxation runs to input files for the 3D simulations. mock/: Python scripts that replicate some C functions from the PLUTO setup.
Author gpelouze
GitHub
github.com › woraphonyamaka › Kinkreg
GitHub - woraphonyamaka/Kinkreg: Kink regression model
Kink regression model. Contribute to woraphonyamaka/Kinkreg development by creating an account on GitHub.
Author woraphonyamaka
Reddit
reddit.com › r/python › dependency injection made simple in python
r/Python on Reddit: Dependency Injection Made simple in Python
April 27, 2021 -
I have had enough of global variables, usage of global scope and hundreds of complex monkey patching flying around in our codebase at work so I made DI Container specially for python.We are using it right now with success on production environments and our codebase got better thanks to it. Thought I will share it and ask for your opinions.
Happy reading :)
https://github.com/kodemore/kink
Top answer 1 of 5
14
While this does look sophisticated, and probably is quite smart, I personally strongly dislike when python is made into something it is not. We already have similar sort of injections in pytest. It works there because tests are very "flat". Introducing something like this into main code base would make code incomprehensible for many average python users. Perhaps best to keep these kind of practices for other languages, and keep python pythinic (readability matters). Why not just do some lazy initialisation in your db library, and yes, give it a global state, make it manage its connection pool, whatever it takes so it looks sensible after import! Sometimes it's very hard to keep things simple, but we should keep trying.
2 of 5
4
I don't really see the point of the "magic" provided by a DI container. Why not just use an explicit config dict or object?
GitHub
github.com › MayCXC › Kink
GitHub - MayCXC/kink: kink is an alternative loop.
require "kink" include Kink kink do print "Input: " line = gets if !line or line !~ /^\d+\n?$/ puts "Please enter a base 10 number with no separators or spaces." redo end puts "Got input: #{line}" # ...
Author MayCXC
Snyk
snyk.io › advisor › python packages › kink
kink - Python Package Health Analysis | Snyk
Based on project statistics from the GitHub repository for the PyPI package kink, we found that it has been starred 435 times.
GitHub
github.com › KinkGD
KinkGD (Kink) · GitHub
KinkGD has one repository available. Follow their code on GitHub.
GitHub
github.com › kink-com
Kink.com · GitHub
Kink.com has 6 repositories available. Follow their code on GitHub.
Socket
socket.dev › pypi › package › kink
kink - pypi Package Security Analysis - Socket.dev
Dependency injection for python. ... We found that kink demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project. ... Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies.
PyPI
pypi.org › project › kink › 0.3.7
kink
January 20, 2021 - JavaScript is disabled in your browser · Please enable JavaScript to proceed · A required part of this site couldn’t load. This may be due to a browser extension, network issues, or browser settings. Please check your connection, disable any ad blockers, or try using a different browser
LibHunt
libhunt.com › compare-kink-vs-python-dependency-injector
kink vs Dependency Injector - compare differences and reviews? | LibHunt
[1] github.com/ets-labs/python-dependency-injector