use-venv 0.0.1

Python virtual environment metadata primitives for RustUse
Documentation
  • Coverage
  • 52.63%
    20 out of 38 items documented1 out of 20 items with examples
  • Size
  • Source code size: 13.27 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 871.63 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 5s Average build duration of successful builds.
  • all releases: 5s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-python
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-venv

Python virtual environment metadata primitives for RustUse.

Experimental

use-venv is experimental while use-python remains below 0.3.0.

Example

use use_venv::{PythonVirtualEnv, PythonVirtualEnvKind, PythonVirtualEnvName};

let env = PythonVirtualEnv::new(PythonVirtualEnvName::new(".venv")?, PythonVirtualEnvKind::Venv);

assert_eq!(env.name().as_str(), ".venv");
assert_eq!(env.kind().as_str(), "venv");
# Ok::<(), use_venv::PythonVirtualEnvError>(())

Scope

  • Virtual environment name, kind, path, activation shell, and environment variable labels.
  • Lightweight name validation.
  • Passive environment metadata.

Non-goals

  • Creating, modifying, activating, or deleting virtual environments.
  • Shelling out to python, venv, virtualenv, conda, poetry, uv, or pipenv.
  • Managing dependencies or interpreter installations.

License

Licensed under either Apache-2.0 or MIT.