Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hanayashiki/pyenv
Provides persistent environment for Python 3 scripts
https://github.com/hanayashiki/pyenv
Last synced: 13 days ago
JSON representation
Provides persistent environment for Python 3 scripts
- Host: GitHub
- URL: https://github.com/hanayashiki/pyenv
- Owner: hanayashiki
- License: mit
- Created: 2019-03-25T14:33:04.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-31T10:33:55.000Z (almost 6 years ago)
- Last Synced: 2025-01-14T06:48:32.087Z (15 days ago)
- Language: Python
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pyenv
Provides persistent environment for Python 3 scripts# Installation
```
python3.6 -m pip install py_env
```
Or
```
git clone https://github.com/hanayashiki/pyenv.git
cd pyenv
python3.6 setup.py install
```# Introduction
You have a host python environment `py_env.host` for your code.
You execute in it and the side-effects of your code will persist on that environtment.
This is helpful when you are loading big files, which you definitely would not like to wait for it each time you start your script.+ How to start the host environment
```
python3.6 -m py_env.host
```
+ How to send your code to the host environment
```
python3.6 -m py_env.client -c "py_env.set('shit', 'happens')"python3.6 -m py_env.client -c "print(py_env.keys())"
dict_keys(['shit'])python3.6 -m py_env.client -c "py_env.get('shit')"
happens
```