Repository URL to install this package:
|
Version:
4.3.1-4.3 ▾
|
python3-dmapi-el9
/
usr
/
lib
/
python3.9
/
site-packages
/
dmapi
/
cmd
/
__pycache__
/
api.cpython-39.pyc
|
|---|
a
èÉe ã @ s d Z ddlZddlmZ ddlmZ ddlmZ ddl
ZddlZ
ddl
mZ ddl
mZ ddl
mZ dd l
mZ dd
l
mZ e
jjZdd ZdS )
z
Starter script for DM API.
é N)Úlog)Úguru_meditation_report)Úopts)Úconfig)Ú exception)Úservice)Úutils)Úversionc C sB t tj¡ t td¡ t ¡ t
t¡ t t¡} t
jjttd t ¡ }d}tjD ]À}|tjv }z|tj||d}z|j||jd W nL tyÔ } z4| d |t ¡ ¡¡ |j|t ¡ d W Y d }~n
d }~0 0 |d7 }W qV tjy } z| d|¡ W Y d }~qVd }~0 0 qV|dkr6| d ¡ t d¡ | !¡ d S )
NÚdmapi)Úconfr )Zuse_ssl)Úworkersza{0}, could not found dmapi_workers in conf file, setting dmapi workers to the available cores{1}.é zK%s. ``dmapi_enabled_apis`` includes bad values. Fix to remove this warning.zANo APIs were started. Check the dmapi_enabled_apis config option.)"r Ú
parse_argsÚsysÚargvÚloggingZsetupÚCONFr Zmonkey_patchÚgmr_optsÚset_defaultsZ getLoggerÚ__name__ÚgmrZTextGuruMeditationZ
setup_autorunr r Zprocess_launcherZdmapi_enabled_apisZdmapi_enabled_ssl_apisZWSGIServiceZlaunch_servicer Ú ExceptionZwarningÚformatÚmpÚ cpu_countr ZPasteAppNotFoundÚerrorÚexitÚwait)r ZlauncherÚstartedZapiZshould_use_sslZserverZ worker_exÚex© r ú1/usr/lib/python3.9/site-packages/dmapi/cmd/api.pyÚmain s4
(ÿ
r" )Ú__doc__r Zoslo_logr r Zoslo_reportsr r r r Zmultiprocessingr Z
dmapi.confr
r r r r r r r r" r r r r! Ú<module> s