{"id":19383338,"url":"https://github.com/mdouchement/p2cli","last_synced_at":"2025-07-12T22:36:59.698Z","repository":{"id":65199062,"uuid":"367030414","full_name":"mdouchement/p2cli","owner":"mdouchement","description":"p2cli is a portable Jinja2 (Ansible) template engine","archived":false,"fork":false,"pushed_at":"2025-03-09T09:14:22.000Z","size":70,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-09T10:19:21.347Z","etag":null,"topics":["ansible","jinja2","standalone","template"],"latest_commit_sha":null,"homepage":"","language":"Go","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/mdouchement.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-05-13T11:40:57.000Z","updated_at":"2025-03-09T09:10:43.000Z","dependencies_parsed_at":"2024-01-02T16:29:13.854Z","dependency_job_id":"c039d4d1-75aa-40f8-ad8d-76d00a670add","html_url":"https://github.com/mdouchement/p2cli","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"bbfd690b22880eef97e3ad7baa7be2e622c7b341"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdouchement%2Fp2cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdouchement%2Fp2cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdouchement%2Fp2cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdouchement%2Fp2cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdouchement","download_url":"https://codeload.github.com/mdouchement/p2cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246899625,"owners_count":20851893,"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":["ansible","jinja2","standalone","template"],"created_at":"2024-11-10T09:25:37.446Z","updated_at":"2025-04-02T21:41:41.453Z","avatar_url":"https://github.com/mdouchement.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# p2cli\n\np2cli is a portable Jinja2 (Ansible) template engine.\n\n## Usage\n\n- From environement variables:\n\n```sh\nexport STANDARDFILE_ADDRESS=\"localhost:5000\"\nexport STANDARDFILE_NO_REGISTRATION=true\nexport STANDARDFILE_JWT_SECRET_KEY=verystrongsecret-jwt-env\nexport STANDARDFILE_SESSION__SECRET_KEY=verystrongsecret-paseto-env # This key converted to 'session.secret_key'\nexport STANDARDFILE_BROKERS='[\"localhost:6000\",\"localhost:6001\",\"localhost:6002\"]' # JSON format\n\n$ p2cli -p 'STANDARDFILE_' example.yml.j2\naddress: localhost:5000\nno_registration: true\ndatabase_path: \"\"\nsecret_key: verystrongsecret-jwt-env\nsession:\n  secret: verystrongsecret-paseto-env\n  access_token_ttl: 1440h\n  refresh_token_ttl: 8760h\nbrokers:\n- localhost:6000\n- localhost:6001\n- localhost:6002\n```\n\n- From a YAML vault file:\n\n```sh\n$ p2cli -v example.varsfile.yml example.yml.j2\naddress: localhost:5000\nno_registration: true\ndatabase_path: \"\"\nsecret_key: verystrongsecret-jwt\nsession:\n  secret: verystrongsecret-paseto\n  access_token_ttl: 440h\n  refresh_token_ttl: 8760h\nbrokers:\n- localhost:6000\n- localhost:6001\n- localhost:6002\n```\n\n## License\n\n**MIT**\n\n\n## Contributing\n\nAll PRs are welcome.\n\n1. Fork it\n2. Create your feature branch (git checkout -b my-new-feature)\n3. Commit your changes (git commit -am 'Add some feature')\n5. Push to the branch (git push origin my-new-feature)\n6. Create new Pull Request","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdouchement%2Fp2cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdouchement%2Fp2cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdouchement%2Fp2cli/lists"}