Skip to content

Commit 3428dd4

Browse files
committed
some materials
1 parent 6d443f6 commit 3428dd4

7 files changed

+8
-0
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -322,3 +322,11 @@ This package is essentially a wrapper for `venv` and `pip`.
322322
When entering the context, a temporary folder is created using the [tempfile](https://docs.python.org/3/library/tempfile.html) library. Then it is added to [sys.path](https://docs.python.org/3/library/sys.html#sys.path), and after exiting the context, it is removed from there. To install the package in this particular temporary folder, the `--target` argument is passed to pip, indicating the path to it. Interaction with `pip` and `venv` occurs through [subprocesses](https://docs.python.org/3/library/subprocess.html).
323323

324324
The `import_here` method works by temporarily substituting [sys.path](https://docs.python.org/3/library/sys.html#sys.path) and [sys.modules](https://docs.python.org/3/library/sys.html#sys.modules). This is necessary so that the search for packages takes place only in the necessary directories.
325+
326+
327+
## Examples
328+
329+
```python
330+
with instld('git+https://github.com/pomponchik/cantok.git'):
331+
import cantok
332+
```

docs/assets/presentation_3.pptx

3.45 MB
Binary file not shown.

docs/assets/presentation_4.pptx

5.86 MB
Binary file not shown.

docs/assets/presentation_5.pptx

36.6 KB
Binary file not shown.

docs/assets/terminal_4.gif

2.9 MB
Loading

docs/assets/~$presentation_4.pptx

165 Bytes
Binary file not shown.

docs/assets/~$presentation_5.pptx

165 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)