- A full repository of projects and scripts of various concepts, libraries, frameworks and implementation ideas
- Every project is separated into its own directories and subdirectories with the aim of accomplishing the following goals
- Understand how it works
- Visualize the operational workflow when using said library
- Understand its purpose
- Able to modify/manipulate the program after visualizing its general workflow for further understanding
- Every project is separated into its own directories and subdirectories with the aim of accomplishing the following goals
- python
- python-pip
- python-venv
-
Create Python Virtual Environment
- Generate Virtual Environment
python3 -m venv [virtual-environment-name]
- Chroot into Virtual Environment
- Linux-based
. [virtual-environment-name]/bin/activate
- Windows-based
.\[virtual-environment-name]\Scripts\activate
- Linux-based
- Generate Virtual Environment
-
Optionals
- Append the Virtual Environment directories into system path
- 'bin' (binaries) directory
export PATH+="/path/to/[virtual-environment-name]/bin:"
- 'bin' (binaries) directory
- Append the Virtual Environment directories into system path
-
Install using pip
pip install git+https://github.com/Thanatisia/py-testbed#subdirectories=/path/to/[concepts|libraries]/project/root
-
Install from requirements.txt
- Include the project repository url mapped to the package name in 'requirements.txt'
package-name @ git+https://github.com/Thanatisia/py-testbed#subdirectories=/path/to/[concepts|libraries]/project/root
- Install python package dependencies
python3 -m pip install -Ur requirements.txt
- Include the project repository url mapped to the package name in 'requirements.txt'
-
Install locally in development mode
- Clone repository
git clone https://github.com/Thanatisia/py-testbed
- Change directory into repository
cd path/to/[concepts|libraries]/project/root
- Install python package dependencies
python3 -m pip install -Ur requirements.txt
- (Optional) Uninstall package
pip uninstall package-name
- Install locally in development mode
pip install .
- Clone repository
Project Structure/Layout
root/
+ README.md
- concepts/ : Place all concepts-based projects and source files here
+ README.md
- [concept-title]/ : Create a directory for this concept and store all files related here
- projects/
- [project-idea-title]/ : Create a directory for this project idea and source files
+ README.md
+ requirements.txt : Contains your project's python dependencies and packages
+ pyproject.toml : This project's python packaging configuration file
- src/
- [package-name]/ : Your root package's name
+ [modules] : Your package modules here
- [submodules]/ : Your package submodules and the nested libraries here
+ ...
- libraries/ : Place all your python libraries-related projects and source files here
+ README.md
- [library-name]/ : Create a directory for this library and store all files related to that library here
- projects/
- [project-idea-title]/ : Create a directory for this project idea and source files
+ README.md
+ requirements.txt : Contains your project's python dependencies and packages
+ pyproject.toml : This project's python packaging configuration file
- src/
- [package-name]/ : Your root package's name
+ [modules] : Your package modules here
- [submodules]/ : Your package submodules and the nested libraries here
+ ...