https://github.com/samk13/setup-python-with-venv
https://github.com/samk13/setup-python-with-venv
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/samk13/setup-python-with-venv
- Owner: Samk13
- Created: 2021-09-08T19:47:15.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-02-23T23:24:40.000Z (over 4 years ago)
- Last Synced: 2025-02-16T22:26:43.562Z (over 1 year ago)
- Language: Python
- Size: 3.95 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Activate venv on Windows bash:
- cd to `venv/Scripts`
- `. activate` -> don't forget the dot and space followed by `activate`
## To deactivate venv on Windows bash:
- `deactivate`
## List all requirements:
- `pip freeze`
## Install requirements:
- `pip install -r requirements.txt`
## for formating the code:
- `pip install black`
- apply it to the code:
`python -m black .`
```mermaid
journey
title Me studying for exams
section Exam is announced
I start studying: 1: Me
Make notes: 2: Me
Ask friend for help: 3: Me, Friend
We study togther: 5: Me, Friend
section Exam Day
Syllabys is incomplete: 2: Me
Give exam: 1: Me, Friend
section Result Declared
I passed the exam with destinction!: 5: Me
Friend barely gets passing marks: 2: Friend
```
```mermaid
graph LR;
A-->B;
A-->C;
A-->D & H;
B--> D & C;
C-->D;
G-->H;
style A fill:#f113 , stroke-width:3px;
```
```mermaid
sequenceDiagram
participant Alice
participant Bob
Alice->>John: Hello John, how are you?
loop Healthcheck
John->>John: Fight against hypochondria
end
Note right of John: Rational thoughts
prevail!
John-->>Alice: Great!
John->>Bob: How about you?
Bob-->>John: Jolly good!
```
```mermaid
classDiagram
Class01 <|-- AveryLongClass : Cool
Class03 *-- Class04
Class05 o-- Class06
Class07 .. Class08
Class09 --> C2 : Where am i?
Class09 --* C3
Class09 --|> Class07
Class07 : equals()
Class07 : Object[] elementData
Class01 : size()
Class01 : int chimp
Class01 : int gorilla
Class08 <--> C2: Cool label
```