{"id":20924463,"url":"https://github.com/ax-va/python-example-collection","last_synced_at":"2026-03-27T02:33:00.167Z","repository":{"id":196068449,"uuid":"694251466","full_name":"ax-va/Python-Example-Collection","owner":"ax-va","description":null,"archived":false,"fork":false,"pushed_at":"2025-11-04T21:16:00.000Z","size":15959,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-30T14:35:12.933Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/ax-va.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-09-20T16:11:01.000Z","updated_at":"2025-11-04T21:16:04.000Z","dependencies_parsed_at":"2023-09-26T23:33:08.852Z","dependency_job_id":"268073ee-3e99-480c-8bc8-d15ecf78615b","html_url":"https://github.com/ax-va/Python-Example-Collection","commit_stats":null,"previous_names":["ax-va/python-topics","ax-va/python-example-collection"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ax-va/Python-Example-Collection","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ax-va%2FPython-Example-Collection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ax-va%2FPython-Example-Collection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ax-va%2FPython-Example-Collection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ax-va%2FPython-Example-Collection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ax-va","download_url":"https://codeload.github.com/ax-va/Python-Example-Collection/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ax-va%2FPython-Example-Collection/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31010201,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-27T01:56:05.093Z","status":"online","status_checked_at":"2026-03-27T02:00:08.055Z","response_time":164,"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":[],"created_at":"2024-11-18T20:22:24.914Z","updated_at":"2026-03-27T02:33:00.139Z","avatar_url":"https://github.com/ax-va.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python-Example-Collection\n\n## Install using `pip`\n\nAs of Python 3.3, the build-in `venv` package created a virtual environment\n`python -m venv env_dir_name [--prompt my_proj]`.\nThe `--prompt` parameter is optional. If it is not supplied, the prompt will match the directory name.\nAs of Python 3.9, providing `--prompt .` will tell `venv` to use the parent directory as the prompt.\n\nSee also: https://docs.python.org/3/library/venv.html\n\nCreate a virtual environment, activate it on POSIX systems, and install a package\n```unix\n$ python3 -m venv venv_name\n$ source venv_name/bin/activate\n(venv_name) ...$ pip install pytest\n```\nor using `virtualenv`\n```unix\n$ python3 -m pip install virtualenv\n$ python3 -m virtualenv venv_name\n$ source venv_name/bin/activate\n(venv_name) ...$ pip install pytest\n```\nDeactivate the venv\n```unix\n(venv_name) ...$ deactivate\n```\nCreate a virtual environment, activate it on Windows systems, and install `pytest`\n```windows\n\u003epython -m venv venv_name\n\u003evenv_name\\Scripts\\activate.bat\n(venv_name) ...\u003e pip install pytest\n```\nActivate in PowerShell\n```windows\n\u003evenv_name\\Scripts\\Activate.ps1\n```\n\n## Install a local package\n\nInstall a local pacḱage located in the current directory\n```unix\n$ pip install ./my_package\n```\n\n## Install packages in editable mode\n\nEditable mode refers to a way of installing a Python package such that any changes \nyou make to the source code are immediately reflected without needing to reinstall the package.\n\nInstall in editable mode from the current directory\n```unix\n(venv_editable) ...$ pip install -e .\n```\n\nInstall in editable mode with optional dependencies for testing\n```unix\n(venv_editable) ...$ pip install -e \"./cards_proj_failed/[test]\"\n```\n`[test]` in the `-e` parameters refers to optional dependencies for testing given in `pyproject.toml`.\n\n## Other installation capabilities\n\nInstall from GitHub\n```unix\n$ pip install git+https://github.com/okken/pytest-skip-slow\n```\n\nSpecify a version to install\n```unix\n$ pip install git+https://github.com/pytest-dev/pytest-cov@v2.12.1\n```\n\nSpecify a branch to install\n```unix\n$ pip install git+https://github.com/pytest-dev/pytest-cov@master\n```\n\nInstall from `.whl`\n```unix\n$ pip install \u003cpackage\u003e --no-index --find-links=\u003cpath/to/packages\u003e\n```\n\nDownload a bunch of various versions into a local cache of packages, \nand then point `pip` there instead of PyPI to install them into virtual environments later.\nThis is great for situations like running `tox` or CI test suites without needing to grab packages from PyPI.\n\n```unix\n(venv) ...$ mkdir ~/.pipcache\n(venv) ...$ pip download -d ~/pipcache pytest\n...\n(venv) ...$ pip install --no-index --find-links=~/pipcache pytest\n```\n\nSee also: https://pip.pypa.io/en/stable/\n\n## Publish packages to PyPI\n\nhttps://packaging.python.org/en/latest/tutorials/packaging-projects/#uploading-the-distribution-archives\n\nhttps://flit.pypa.io/en/latest/upload.html#controlling-package-uploads\n\n## johnnydep\n```unix\n$ johnnydep pandas==2.2.0 --verbose 0\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fax-va%2Fpython-example-collection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fax-va%2Fpython-example-collection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fax-va%2Fpython-example-collection/lists"}