Holen Sie sich die App -Version von PYProject.toml in Python Code
Posted: 16 May 2025, 19:13
Ich bin mit Python nicht sehr vertraut, ich habe nur Automatisierung durchgeführt, also bin ich ein neuer mit Paketen und allem. atm: < /p>
, aber ich habe keine Ahnung, was dieses -Paket Mean.
Code: Select all
├── README.md
├── __init__.py
├── poetry.lock
├── pyproject.toml
├── tests
│ └── __init__.py
└── wsgi.py
< /code>
wobei Wsgi.py < /code> meine Hauptdatei ist, in der die App ausgeführt wird. __version__ = importlib.metadata.version("__package__")