943acbc573
Durcit la convention de nommage des projets (dérive constatée : 'Sliding Automation', 'code_versioning'... au lieu des formes canoniques). - trilium_api.py : projets_canoniques() lit le référentiel = valeurs du label projet sur les notes de type=projet (source unique, pas de constante en dur). Note-projet CodeVersioning créée (manquait). - mcp_server.py : _valider_projet() branché dans les 6 tools de création (add_decision/history/backlog, new_conversation, create_entite, add_skill). Refuse un projet non canonique (suggestion si faute) ou inconnu (renvoi au processus de création de projet). Ne verrouille pas si référentiel illisible. - lint_audit.py : VAL-nommage aligné sur le référentiel (attrape casse, espace ET snake_case ; l'ancien 'contient un espace' ratait code_versioning). - Données : 79 notes ré-étiquetées vers les 3 formes canoniques. Quality by design : l'erreur de nommage devient impossible à l'écriture, le Lint n'est plus que le filet de sécurité.
106 lines
2.1 KiB
Python
106 lines
2.1 KiB
Python
from .__version__ import __description__, __title__, __version__
|
|
from ._api import *
|
|
from ._auth import *
|
|
from ._client import *
|
|
from ._config import *
|
|
from ._content import *
|
|
from ._exceptions import *
|
|
from ._models import *
|
|
from ._status_codes import *
|
|
from ._transports import *
|
|
from ._types import *
|
|
from ._urls import *
|
|
|
|
try:
|
|
from ._main import main
|
|
except ImportError: # pragma: no cover
|
|
|
|
def main() -> None: # type: ignore
|
|
import sys
|
|
|
|
print(
|
|
"The httpx command line client could not run because the required "
|
|
"dependencies were not installed.\nMake sure you've installed "
|
|
"everything with: pip install 'httpx[cli]'"
|
|
)
|
|
sys.exit(1)
|
|
|
|
|
|
__all__ = [
|
|
"__description__",
|
|
"__title__",
|
|
"__version__",
|
|
"ASGITransport",
|
|
"AsyncBaseTransport",
|
|
"AsyncByteStream",
|
|
"AsyncClient",
|
|
"AsyncHTTPTransport",
|
|
"Auth",
|
|
"BaseTransport",
|
|
"BasicAuth",
|
|
"ByteStream",
|
|
"Client",
|
|
"CloseError",
|
|
"codes",
|
|
"ConnectError",
|
|
"ConnectTimeout",
|
|
"CookieConflict",
|
|
"Cookies",
|
|
"create_ssl_context",
|
|
"DecodingError",
|
|
"delete",
|
|
"DigestAuth",
|
|
"get",
|
|
"head",
|
|
"Headers",
|
|
"HTTPError",
|
|
"HTTPStatusError",
|
|
"HTTPTransport",
|
|
"InvalidURL",
|
|
"Limits",
|
|
"LocalProtocolError",
|
|
"main",
|
|
"MockTransport",
|
|
"NetRCAuth",
|
|
"NetworkError",
|
|
"options",
|
|
"patch",
|
|
"PoolTimeout",
|
|
"post",
|
|
"ProtocolError",
|
|
"Proxy",
|
|
"ProxyError",
|
|
"put",
|
|
"QueryParams",
|
|
"ReadError",
|
|
"ReadTimeout",
|
|
"RemoteProtocolError",
|
|
"request",
|
|
"Request",
|
|
"RequestError",
|
|
"RequestNotRead",
|
|
"Response",
|
|
"ResponseNotRead",
|
|
"stream",
|
|
"StreamClosed",
|
|
"StreamConsumed",
|
|
"StreamError",
|
|
"SyncByteStream",
|
|
"Timeout",
|
|
"TimeoutException",
|
|
"TooManyRedirects",
|
|
"TransportError",
|
|
"UnsupportedProtocol",
|
|
"URL",
|
|
"USE_CLIENT_DEFAULT",
|
|
"WriteError",
|
|
"WriteTimeout",
|
|
"WSGITransport",
|
|
]
|
|
|
|
|
|
__locals = locals()
|
|
for __name in __all__:
|
|
if not __name.startswith("__"):
|
|
setattr(__locals[__name], "__module__", "httpx") # noqa
|