-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpipenv.txt
More file actions
executable file
·103 lines (73 loc) · 2.26 KB
/
pipenv.txt
File metadata and controls
executable file
·103 lines (73 loc) · 2.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#----------
#PIPENV
#-------------
# we use pip to handle package management and ' virtula env' to handle virtual env BUt,
#by pipenv these can be handle by one tool so it simplifies the process
#-----------
#step 1.
#-----------
# pip install pipenv
#-----------------
#2. installing the packages fro project
#-------------------
# pipenv install requests
# To activate this project's virtualenv, run pipenv shell.
# Alternatively, run a command inside the virtualenv with pipenv run.
#pipenv cretaes the toml file of profile and pip.lock
#---------------------
#Activate Environment
#-------------------
#pipenv shell
#check path
import sys
sys.executable
# 'C:\\Users\\jjpsi\\.virtualenvs\\projectdir-ifSe_8Ih\\Scripts\\python.exe'
#Deactivate environment just type :
exit
#note : deactivate command doesn't cxompletly deactivate the environment so use exit
#-------------
# Using the pipenv run (command)
#-------------
#pipenv run python
import sys
sys.executable
'C:\\Users\\jjpsi\\.virtualenvs\\projectdir-ifSe_8Ih\\Scripts\\python.EXE'
# to run a script in virtualenvs
# pipenv run python script.py
#---------------------------------
# pipenv install -r requirement.txt
#--------------------------------
#see the packages
#pipenv lock -r
#install a package which are not necessary for the production but for developement
#pipenv install pytest --dev
#pipenv unistall requests
#------------------------------------
#Using the deferent version of python
#----------------------------------
#change the version of python in profile
#pipenv --python 3.10
#Making the pipenv from scratch for new version of python
#pipenv --rm
#pipenv install
#check the path
#pipenv --venv
#--------------------
#check for the security
#-------------------
#pienv check
#see all the dependencies and requirements
#pipenv graph
#-------=============
#Using the same version of libraray and dependencies which have passed the tests so
#-------------------
#pipenv lock
#pipenv install --ignore-pipfile
#--------------------------------------
# Hide the secret information in .env profile by creating .env and putting secret key
#--------------------------------------
#pipenv run python
#it will load .env varriables
#See the key
import os
os.environ['SECRECT_kEY']