Hyper-V winrm python
На данный момент можно создавать виртуальные машины только через заранее подготовленный шаблон виртуальноф машины.
Installation
python3 -m pip install hyper-v
Configuration
from hyperv import HyperV
import config
HV = HyperV(
env_prefix=env_prefix,
storage_root=storage_root,
vm_template_pach=vm_template_pach,
host=hv_host,
user=hv_user,
password=hv_password
)
free_memory = HV.get_free_memory
print(free_memory)
storage_root- Директория, где будет создана папка, для Виртуальной машиныvm_template_pach- Директория, где лежит шаблон Виртуальной машиныenv_prefix- Префикс, который будет добавлен к имени Виртуальной машиныhost- Hyper-V хостuser- Имя пользователя для доступа по winrmpassword- Пароль пользователя для доступа по winrm
License
Metadata
Release files for hyper-v 2.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hyper-v-2.0.3.tar.gz | 5.2 kB | Without provenance | Details for hyper-v-2.0.3.tar.gz |
Release files / hyper-v-2.0.3.tar.gz
| Download URL | hyper-v-2.0.3.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
363e6418b28fc465d3b6ac83784c717b4484d61cc1ee86ee8e7d793ebe99a004
|
|
BLAKE2b-256 checksum How to use checksums |
e8f87764a35913dedc2378083ca3f9e578d3b3aeae5c898e1fb44b01b1bf7dff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.10.12
|
Security for hyper-v 2.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.