{"id":16641318,"url":"https://github.com/cmstead/python-automation","last_synced_at":"2026-04-22T00:32:56.823Z","repository":{"id":72521042,"uuid":"295536736","full_name":"cmstead/python-automation","owner":"cmstead","description":"Cookiecutter templates, and VS Code snippets to reduce the stuff I must remember to do","archived":false,"fork":false,"pushed_at":"2021-04-02T22:19:52.000Z","size":43,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-28T16:21:55.684Z","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/cmstead.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-14T20:55:29.000Z","updated_at":"2021-04-02T22:19:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"9cb40aa3-fd33-427c-97d7-f59810fc1e09","html_url":"https://github.com/cmstead/python-automation","commit_stats":{"total_commits":26,"total_committers":1,"mean_commits":26.0,"dds":0.0,"last_synced_commit":"4238ebf76b2e0ef62e34f360c47447a775264b73"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cmstead/python-automation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmstead%2Fpython-automation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmstead%2Fpython-automation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmstead%2Fpython-automation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmstead%2Fpython-automation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cmstead","download_url":"https://codeload.github.com/cmstead/python-automation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmstead%2Fpython-automation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32115883,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T00:31:26.853Z","status":"ssl_error","status_checked_at":"2026-04-22T00:30:22.894Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-10-12T07:46:14.449Z","updated_at":"2026-04-22T00:32:56.808Z","avatar_url":"https://github.com/cmstead.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python Automation #\n\nLittle automations for making a big difference in Python development ease\n\nCookiecutter templates are in `./templates`\n\nSnippets can be copied from `./python.json`\n\n## Cookiecutter Templates ##\n\n### Installation ###\n\n#### Prerequisite: PipEnv Setup ####\n\n1. Make sure you have Python 3.4 or greater installed.\n2. Make sure PipEnv is installed on your computer. If it isn't, run `pip install pipenv --update`.\n3. Open the root directory of this repository and run `pipenv install`\n\n#### Cookiecutter Installation ####\n\nThe templates in this project are built against the Cookiecutter code generation system. To use them, be sure you install Cookiecutter:\n\nCheck and meet all prerequisites. **DON'T FORGET TO SET YOUR PATHS CORRECTLY**\n\n[Cookiecutter Prerequisites](https://cookiecutter.readthedocs.io/en/1.7.2/installation.html#prerequisites)\n\nAfter this, follow the installation instructions:\n\n[Cookiecutter Installation](https://cookiecutter.readthedocs.io/en/1.7.2/installation.html#install-cookiecutter)\n\n#### Template Installation ####\n\nRun the command `pipenv run install-templates`\n\n### Use ###\n\nOnce everything is set up, the command for creating something from a template is `cookiecutter \u003ctemplatename\u003e`. An example of creating a class looks like the following:\n\n`cookiecutter class`\n\nAvailable templates:\n\n- `class` (file)\n- `cookiecutter` (bare bones)\n- `module` (directory setup)\n- `flask-project` (a VERY SIMPLE pipenv project for flask services)\n- `project` (a VERY SIMPLE pipenv project)\n\n### Project Template Dependency ###\n\nIn order to use the project template, you must have pipenv installed.\n\nTo install pipenv, use the following command:\n\n`pip install pipenv`\n\nThe project is a full isolated Python project using pipenv for dependency management.  For more on pipenv, look here:\n\n[pipenv](https://pipenv-fork.readthedocs.io/en/latest/)\n\n## VS Code Snippets ##\n\n### Installation ###\n\nThese snippets are designed to simply be copied and pasted into the VS Code Python snippets file.\n\n1. Open the command pallette: press F1\n2. Select 'Preferences: Configure User Snippets'\n3. Select 'python.json'\n4. Copy the contents from python.json **in this repository** and paste it into python.json **in VS Code**\n\n### Use ###\n\n1. Start typing an identifier (see below)\n2. Select the snippet you want from the context menu that appears\n3. Tab through the template, filling in the blanks and placeholders\n\n* Note: templates will attempt to normalize your identifiers (variable and function names) to PEP 8 standard.\n\n####Currently included snippets####\n\n**Source Development**\n\n- `class-extended` -- Class\n- `const` -- Constant\n- `ctor` -- Constructor\n- `di-class` -- Class with DI factory\n- `function` -- Function\n- `method` -- Method\n- `var` -- Variable\n\n**Test Development**\n\n- `approvals-import` -- Import approvals library into test\n- `approvals-verify` -- Verify output with approvals\n- `pytest-test` -- PyTest test definition\n- `pytest-assert` -- PyTest test assertion\n- `test-double-doubles-import` -- Import for doubles library\n- `test-double-create` -- Create new \"doubles\" test double\n- `test-double-allow-method-call` -- Add allow call for a test double","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmstead%2Fpython-automation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcmstead%2Fpython-automation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmstead%2Fpython-automation/lists"}