{"id":23012065,"url":"https://github.com/rashjredmund/py-sandbox","last_synced_at":"2026-06-30T09:31:27.377Z","repository":{"id":243653417,"uuid":"812942914","full_name":"RashJrEdmund/py-sandbox","owner":"RashJrEdmund","description":"Python playground. I built, Attack-On-Monsters in the sand-box folder and also Got started with Flask","archived":false,"fork":false,"pushed_at":"2024-11-06T19:50:17.000Z","size":301,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-02T04:45:55.829Z","etag":null,"topics":["class","flask","modules","pip","python","python3","virtualenv"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RashJrEdmund.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-10T07:49:26.000Z","updated_at":"2024-11-06T19:50:21.000Z","dependencies_parsed_at":"2024-06-23T02:57:01.307Z","dependency_job_id":"bee9a9c4-57d7-4c7f-bed1-cc788e63e5ac","html_url":"https://github.com/RashJrEdmund/py-sandbox","commit_stats":null,"previous_names":["rashjredmund/py-sandbox"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RashJrEdmund/py-sandbox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RashJrEdmund%2Fpy-sandbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RashJrEdmund%2Fpy-sandbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RashJrEdmund%2Fpy-sandbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RashJrEdmund%2Fpy-sandbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RashJrEdmund","download_url":"https://codeload.github.com/RashJrEdmund/py-sandbox/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RashJrEdmund%2Fpy-sandbox/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34961543,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-30T02:00:05.919Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["class","flask","modules","pip","python","python3","virtualenv"],"created_at":"2024-12-15T10:12:14.637Z","updated_at":"2026-06-30T09:31:27.352Z","avatar_url":"https://github.com/RashJrEdmund.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Welcome To My Py Sandbox\n\n- Checkout the actual sandbox docs, where I study and also build the game \"Attack On Monsters\" [here](./sand-box/README.md)\n  - Note I build it using the NeoVim editor\n\n- Or checkout my flask apps docs [here](./flask-apps/README.md)\n\n## Configuring a virtual environment (v-e)\n\n__Note__: _you are gonna have to create a v-e in both the sand-box and flask-app(s) folders(though I haven't installed any modules in the sand-box app)_\n\n- for this i'm using the `virtualenv` command\n- __STEPS TO CREATE VIRTUAL ENVIRONMENT__\n  \n  - in the projects directory, at top level, run\n\n    ```bash\n      # if using the virtualenv package\n      $ virtualenv venv\n\n      # if using the default venv from python\n      # on linux\n      $ python3 -m venv venv\n    ```\n\n  - This should create a `venv` folder (which is the virtual environment)\n\n  - Next, you have to __activate__ the virtual environment. To do so, execute\n\n    ```bash\n      # for linux\n      $ source venv/bin/activate\n    ```\n\n    - Deactivate it by simply executing the `deactivate` on your terminal\n\n  - you should see you file path look similar to this\n\n    ```bash\n      (venv) username@computer:~/full/path/py-sandbox/which-ever-path-you-on/$\n    ```\n\n  - You should be able to safely install packages with `pip`\n\n- Now, to install the packages in requirements.txt file of that folder, execute\n\n  ```bash\n    $ pip install -r requirements.txt\n    # the -r means it should read from the requirements.txt file\n  ```\n\n- ### ADDING YOUR OWN PACKAGES\n\n  - After every package installation, I advice you update the requirements.txt file with\n\n    ```bash\n      $ pip freeze \u003e requirements.txt\n      # it's like package.json in JavaScript, but for python\n    ```\n\n  - you should even combine the installation command with the freeze command like so to execute all at once\n\n    ```bash\n      pip install `module_name` \u0026\u0026 pip freeze \u003e requirements.txt\n    ```\n\n  - use `pip list --local` to see all locally installed modules in your virtual env\n\n### Cool new commands\n\n- `\u003e\u003e`\n  - to use with command like `echo` or `pip freeze` to add content to the end of a file\n\n- ##### Example\n\n  - `echo \"some text content\" \u003e\u003e test_file.txt` to add the text \"some text content\" to the test_file.txt. this file will be created if not exit\n  \n- `\u003e`\n  - Same as the `\u003e\u003e` pattern above but will completely replace the content of the file\n\n---\n---\n---\n\n### Cool command combo\n\n- `find . -type d -name \"__pycache__\" -exec rm -rf {} +`\n  - to find and delete all \"__pycache__\" folders in the current working directory\n\n- #### Explanation\n\n  - `find .` : Start searching from the current directory (.)\n  - `-type d` : Look for directories (d)\n  - `-name \"__pycache__\"` : Match directories named \"__pycache__\"\n  - `-exec rm -rf {} +` : For each found directory, execute the rm -rf command on it ({} is replaced by the found directory paths)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frashjredmund%2Fpy-sandbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frashjredmund%2Fpy-sandbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frashjredmund%2Fpy-sandbox/lists"}