{"id":21479293,"url":"https://github.com/rycus86/docker_helper","last_synced_at":"2025-03-17T08:42:16.717Z","repository":{"id":57423316,"uuid":"113352640","full_name":"rycus86/docker_helper","owner":"rycus86","description":"Convenience utilities for Python applications in Docker containers","archived":false,"fork":false,"pushed_at":"2018-04-29T12:44:55.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-23T19:38:59.706Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rycus86.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-06T18:27:17.000Z","updated_at":"2018-04-29T12:40:56.000Z","dependencies_parsed_at":"2022-09-06T07:11:34.405Z","dependency_job_id":null,"html_url":"https://github.com/rycus86/docker_helper","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rycus86%2Fdocker_helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rycus86%2Fdocker_helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rycus86%2Fdocker_helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rycus86%2Fdocker_helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rycus86","download_url":"https://codeload.github.com/rycus86/docker_helper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244004149,"owners_count":20382331,"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","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-23T11:24:31.897Z","updated_at":"2025-03-17T08:42:16.695Z","avatar_url":"https://github.com/rycus86.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker Helper\n\nConvenience utilities for Python applications in Docker containers.\n\n## Functions\n\n- Get current container ID\n\n```python\nget_current_container_id()\n```\n\nReturns the ID of the container the application is currently running in,\notherwise returns `None` if not running in a container.\n\n\u003e This is done on a best-effort basis, guessed from the information in `/proc/self/cgroup`\n\n- Read configuration values\n\n```python\nread_configuration(key, path=None, default=None,\n                   single_config=False, fallback_to_env=True)\n```\n\nA convenient way to read configuration values from files with an option\nto fall back to using environment variables.\nThis can come handy to pass in multiple configuration options as key-value pairs\nusing Docker configs or secrets when working with Swarm services.\nWhen `single_config` is `True`, the configuration file is treated as a single text value\nwhich is useful to read JSON configuration for example for an application.\n\n## License\n\nMIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frycus86%2Fdocker_helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frycus86%2Fdocker_helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frycus86%2Fdocker_helper/lists"}