{"id":18423206,"url":"https://github.com/specht/copypasta","last_synced_at":"2025-04-13T14:44:33.856Z","repository":{"id":1657729,"uuid":"2383831","full_name":"specht/copypasta","owner":"specht","description":"A for loop for text files of any kind.","archived":false,"fork":false,"pushed_at":"2011-09-21T09:12:04.000Z","size":100,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-16T07:41:25.151Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/specht.png","metadata":{"files":{"readme":"README.textile","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}},"created_at":"2011-09-14T07:11:41.000Z","updated_at":"2014-05-21T22:04:18.000Z","dependencies_parsed_at":"2022-09-04T08:00:43.635Z","dependency_job_id":null,"html_url":"https://github.com/specht/copypasta","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/specht%2Fcopypasta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/specht%2Fcopypasta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/specht%2Fcopypasta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/specht%2Fcopypasta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/specht","download_url":"https://codeload.github.com/specht/copypasta/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248732119,"owners_count":21152839,"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-06T04:36:05.221Z","updated_at":"2025-04-13T14:44:33.829Z","avatar_url":"https://github.com/specht.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"h1. This is copypasta\n\nCopypasta is a straightforward way to implement for loops in text files. For example,\n\n\u003cpre\u003e\n#{for i in range(5)}\n#{i + 1}, check!\n#{end}\n\u003c/pre\u003e\n\nbecomes:\n\n\u003cpre\u003e\n\n1, check!\n\n2, check!\n\n3, check!\n\n4, check!\n\n5, check!\n\u003c/pre\u003e\n\nThe leading blank line results from the newline after the for block.\n\nCall with:\n\n\u003cpre\u003e\n$ ./copypasta.py test-range.txt.cp\n\u003c/pre\u003e\n\nh2. Syntax\n\nYou can start a for loop with @for [key] in [values]@ where values should be something which is iterable in Python, such as a list or a range. Every @for@ statement must be matched with an @end@ statement.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspecht%2Fcopypasta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspecht%2Fcopypasta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspecht%2Fcopypasta/lists"}