{"id":28217973,"url":"https://github.com/romanturas/python-env","last_synced_at":"2025-07-23T13:03:30.722Z","repository":{"id":283965567,"uuid":"953420482","full_name":"RomanTuras/python-env","owner":"RomanTuras","description":"Python virtual environment examples","archived":false,"fork":false,"pushed_at":"2025-03-23T12:17:57.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-12T16:44:50.582Z","etag":null,"topics":["poetry","python"],"latest_commit_sha":null,"homepage":"","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/RomanTuras.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":"2025-03-23T10:27:24.000Z","updated_at":"2025-03-23T12:18:01.000Z","dependencies_parsed_at":"2025-03-23T11:38:54.608Z","dependency_job_id":null,"html_url":"https://github.com/RomanTuras/python-env","commit_stats":null,"previous_names":["romanturas/python-env"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RomanTuras/python-env","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RomanTuras%2Fpython-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RomanTuras%2Fpython-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RomanTuras%2Fpython-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RomanTuras%2Fpython-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RomanTuras","download_url":"https://codeload.github.com/RomanTuras/python-env/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RomanTuras%2Fpython-env/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266682543,"owners_count":23967830,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["poetry","python"],"created_at":"2025-05-18T01:09:53.135Z","updated_at":"2025-07-23T13:03:30.707Z","avatar_url":"https://github.com/RomanTuras.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"## Add virtual env, CLASSIC method\n\n`python -m venv env`\n\n`source env/bin/activate`\n\n`pip install Flask`\n\n`python -m pip freeze \u003e requirements.txt`\n\n#### Install from requirements.txt:\n`pip install -r requirements.txt`\n\n\n## Add virtual env, with POETRY\n\n`pip install poetry`\n\n\u003e Create or init existings project:\n\n`poetry new \u003cproject_name\u003e`\n    or\n`poetry init`\n\n\u003e Create lock:\n\n`poetry lock`\n\n\u003e To Activate ENV:\n`source $(poetry env info --path)/bin/activate`\n\n\u003e To Deactivate ENV: `deactivate`\n\n\u003e Examples poetry commands:\n\n`poetry add aiosqlite`\n\n`poetry remove aiosqlite`\n\n`poetry install`\n\n`poetry update`\n\n`poetry show`\n\n`poetry run pytest`\n\n`poetry export --without-hashes --format=requirements.txt \u003e requirements.txt`\n\n## -= Example Makefile for poetry =-\n\nSince you we are using poetry, there is no need to manually activate the virtual environment, poetry run automatically runs commands in it\n\n```Makefile:\n.PHONY: setup \\\n        lint \\\n        mypy \\\n        help\n\nsetup: ## Project setup\n    poetry install\n\nlint: ## Run linter\n    poetry run ruff format --config ./pyproject.toml .\n    poetry run ruff check --fix --config ./pyproject.toml .\n\nmypy: ## Run mypy\n    poetry run mypy ./\n\ntest: ## Run tests check\n    poetry run pytest $(filter-out $@,$(MAKECMDGOALS)) -s\n\n# Just help\nhelp: ## Display help screen\n    @grep -h -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = \":.*?## \"}; {printf \"\\033[36m%-30s\\033[0m %s\\n\", $$1, $$2}'```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromanturas%2Fpython-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromanturas%2Fpython-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromanturas%2Fpython-env/lists"}