{"id":17318060,"url":"https://github.com/justinfx/fileseq","last_synced_at":"2026-07-05T05:01:34.276Z","repository":{"id":3860469,"uuid":"4945559","full_name":"justinfx/fileseq","owner":"justinfx","description":"A Python library for parsing frame ranges.","archived":false,"fork":false,"pushed_at":"2026-05-31T04:06:14.000Z","size":3341,"stargazers_count":280,"open_issues_count":1,"forks_count":43,"subscribers_count":26,"default_branch":"master","last_synced_at":"2026-06-12T03:04:16.021Z","etag":null,"topics":["filesequence","imagesequence","python","vfx"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/justinfx.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2012-07-08T11:13:37.000Z","updated_at":"2026-05-31T09:14:38.000Z","dependencies_parsed_at":"2026-03-03T22:01:09.659Z","dependency_job_id":null,"html_url":"https://github.com/justinfx/fileseq","commit_stats":{"total_commits":297,"total_committers":21,"mean_commits":"14.142857142857142","dds":"0.40740740740740744","last_synced_commit":"fbd2abddf1a4d192151da38e608685d9f24bea4f"},"previous_names":["sqlboy/fileseq"],"tags_count":56,"template":false,"template_full_name":null,"purl":"pkg:github/justinfx/fileseq","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinfx%2Ffileseq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinfx%2Ffileseq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinfx%2Ffileseq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinfx%2Ffileseq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justinfx","download_url":"https://codeload.github.com/justinfx/fileseq/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinfx%2Ffileseq/sbom","scorecard":{"id":543950,"data":{"date":"2025-08-11","repo":{"name":"github.com/justinfx/fileseq","commit":"6046a75fa53a22663ef710f30a1b69fd4b79ddd3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 2/23 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/justinfx/fileseq/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/justinfx/fileseq/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/justinfx/fileseq/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:69: update your workflow using https://app.stepsecurity.io/secureworkflow/justinfx/fileseq/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:71: update your workflow using https://app.stepsecurity.io/secureworkflow/justinfx/fileseq/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:83: update your workflow using https://app.stepsecurity.io/secureworkflow/justinfx/fileseq/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:87: update your workflow using https://app.stepsecurity.io/secureworkflow/justinfx/fileseq/ci.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/ci.yml:92","Warn: pipCommand not pinned by hash: .github/workflows/ci.yml:93","Warn: pipCommand not pinned by hash: .github/workflows/ci.yml:47","Warn: pipCommand not pinned by hash: .github/workflows/ci.yml:48","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   4 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 13 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T08:57:36.329Z","repository_id":3860469,"created_at":"2025-08-20T08:57:36.330Z","updated_at":"2025-08-20T08:57:36.330Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35143802,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-05T02:00:06.290Z","response_time":100,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["filesequence","imagesequence","python","vfx"],"created_at":"2024-10-15T13:18:43.758Z","updated_at":"2026-07-05T05:01:34.269Z","avatar_url":"https://github.com/justinfx.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u003cimg src=\"docs/_static/fileseq_large.png\" width=\"30%\" height=\"30%\" title=\"Fileseq\" alt=\"Fileseq\"\u003e\n\n[![Documentation Status](https://readthedocs.org/projects/fileseq/badge/?version=latest)](http://fileseq.readthedocs.io/en/latest/) [![Build status](https://github.com/justinfx/fileseq/actions/workflows/ci.yml/badge.svg)](https://github.com/justinfx/fileseq/actions/workflows/ci.yml)\n\nA Python library for parsing frame ranges and file sequences commonly\nused in VFX and Animation applications.\n\n## Frame Range Shorthand\n\nSupport for:\n\n* Standard: 1-10\n* Comma Delimited: 1-10,10-20\n* Chunked: 1-100x5\n* Filled: 1-100y5\n* Staggered: 1-100:3 (1-100x3, 1-100x2, 1-100)\n* Negative frame numbers: -10-100\n* Subframes: 1001-1066x0.25, 1001.5-1066.0x0.5\n* Padding: #=4 padded, @=1 padded\n* Alternate padding: #=1 padded, @=1 padded\n* Printf Syntax Padding: %04d=4 padded, %01d=1 padded\n* Houdini Syntax Padding: $F4=4 padding, $F=1 padded\n* Udim Syntax Padding: \u003cUDIM\u003e or %(UDIM)d, always 4 padded\n\n\n## FrameSets\n\nA FrameSet wraps a sequence of frames in a list container.\n\n### Iterate a FrameSet\n```python\nfs = fileseq.FrameSet(\"1-5\")\nfor f in fs:\n  print(f)\n```\n\n### Access Frames\n\n#### Using Indices:\n```python\n\u003e\u003e\u003e fs = fileseq.FrameSet(\"1-100:8\")\n\u003e\u003e\u003e fs[0] # First frame.\n1\n\u003e\u003e\u003e fs[-1] # Last frame.\n98\n```\n\n#### Using Convenience Methods:\n```python\n\u003e\u003e\u003e fs = fileseq.FrameSet(\"1-100:8\")\n\u003e\u003e\u003e fs.start() # First frame.\n1\n\u003e\u003e\u003e fs.end() # Last frame.\n98\n```\n\n## FileSequence\n\n### Instantiate from String\n```python\nfileseq.FileSequence(\"/foo/bar.1-10#.exr\")\nfileseq.FileSequence(\"/foo/bar.1-10x0.25#.#.exr\", allow_subframes=True)\n```\n\n### Format Path for VFX Software\n\n#### Using FileSequence.format Method:\n```python\n\u003e\u003e\u003e seq = fileseq.FileSequence(\"/foo/bar.1-10#.exr\")\n\u003e\u003e\u003e seq.format(template='{dirname}{basename}{padding}{extension}') \n\"/foo/bar.#.exr\"\n\u003e\u003e\u003e seq = fileseq.FileSequence(\"/foo/bar.1-10#.#.exr\", allow_subframes=True)\n\u003e\u003e\u003e seq.format(template='{dirname}{basename}{padding}{extension}')\n\"/foo/bar.#.#.exr\"\n```\n\n#### Joining:\n```python\n\u003e\u003e\u003e seq = fileseq.FileSequence(\"/foo/bar.1-10#.exr\")\n\u003e\u003e\u003e ''.join([seq.dirname(), seq.basename(), '%0{}d'.format(len(str(seq.end()))), seq.extension()])\n\"/foo/bar.%02d.exr\"\n```\n\n#### Alternate Padding Styles:\n```python\n\u003e\u003e\u003e seq = fileseq.FileSequence(\"/foo/bar.1-10#.exr\", pad_style=fileseq.PAD_STYLE_HASH1)\n\u003e\u003e\u003e list(seq)\n['/foo/bar.1.exr',\n '/foo/bar.2.exr',\n '/foo/bar.3.exr',\n '/foo/bar.4.exr',\n '/foo/bar.5.exr',\n '/foo/bar.6.exr',\n '/foo/bar.7.exr',\n '/foo/bar.8.exr',\n '/foo/bar.9.exr',\n '/foo/bar.10.exr']\n\u003e\u003e\u003e seq = fileseq.FileSequence(\"/foo/bar.1-10#.exr\", pad_style=fileseq.PAD_STYLE_HASH4)\n\u003e\u003e\u003e list(seq)\n['/foo/bar.0001.exr',\n '/foo/bar.0002.exr',\n '/foo/bar.0003.exr',\n '/foo/bar.0004.exr',\n '/foo/bar.0005.exr',\n '/foo/bar.0006.exr',\n '/foo/bar.0007.exr',\n '/foo/bar.0008.exr',\n '/foo/bar.0009.exr',\n '/foo/bar.0010.exr']\n```\n\n### Get List of File Paths\n```python\n\u003e\u003e\u003e seq = fileseq.FileSequence(\"/foo/bar.1-10#.exr\")\n\u003e\u003e\u003e [seq[idx] for idx, fr in enumerate(seq.frameSet())]\n['/foo/bar.0001.exr',\n '/foo/bar.0002.exr',\n '/foo/bar.0003.exr',\n '/foo/bar.0004.exr',\n '/foo/bar.0005.exr',\n '/foo/bar.0006.exr',\n '/foo/bar.0007.exr',\n '/foo/bar.0008.exr',\n '/foo/bar.0009.exr',\n '/foo/bar.0010.exr']\n```\n\n### Get List of File Paths as `pathlib.Path` instances\n`fileseq.FilePathSequence` supports the same semantics as `fileseq.FileSequence` but represents result paths as [`pathlib.Path`](https://docs.python.org/3/library/pathlib.html) instances instead of strings.\n\n```python\n\u003e\u003e\u003e seq = fileseq.FilePathSequence(\"/foo/bar.1-10#.exr\")\n\u003e\u003e\u003e [seq[idx] for idx, fr in enumerate(seq.frameSet())]\n[PosixPath('/foo/bar.0001.exr'),\n PosixPath('/foo/bar.0002.exr'),\n PosixPath('/foo/bar.0003.exr'),\n PosixPath('/foo/bar.0004.exr'),\n PosixPath('/foo/bar.0005.exr'),\n PosixPath('/foo/bar.0006.exr'),\n PosixPath('/foo/bar.0007.exr'),\n PosixPath('/foo/bar.0008.exr'),\n PosixPath('/foo/bar.0009.exr'),\n PosixPath('/foo/bar.0010.exr')]\n```\n\n## Finding Sequences on Disk\n\n### Check a Directory for All Existing Sequences\n```python\nseqs = fileseq.findSequencesOnDisk(\"/show/shot/renders/bty_foo/v1\")\n```\n\nOr, to get results as `pathlib.Path`, use the `FilePathSequence` classmethod:\n\n```python\nseqs = fileseq.FilePathSequence.findSequencesOnDisk(\"/show/shot/renders/bty_foo/v1\")\n```\n\n### Check a Directory for One Existing Sequence.\n* Use a '@' or '#' where you might expect to use '*' for a wildcard character. \n* For this method, it doesn't matter how many instances of the padding character you use, it will still find your sequence.\n\nYes:\n```python\nfileseq.findSequenceOnDisk('/foo/bar.@.exr')\n```\nYes:\n```python\nfileseq.findSequenceOnDisk('/foo/bar.@@@@@.exr')\n```\nNo: \n```python\nfileseq.findSequenceOnDisk('/foo/bar.*.exr')\n```\n\n* To find subframe sequences you must explicitly opt-in\n```python\nfileseq.findSequenceOnDisk('/foo/bar.#.#.exr', allow_subframes=True)\n```\n\n## Development\n\n### Getting Started\n```bash\npip install hatch              # Install build tool\npip install -e \".[dev]\"         # Install package with dev dependencies\n```\n\n### Running Tests\n```bash\nhatch run test\nhatch run test-cov  # with coverage report\n```\n\n### Regenerating the Parser\nAfter modifying `src/fileseq/grammar/fileseq.g4`:\n```bash\nhatch run generate  # Requires Java 11+\n```\n\n### Building Documentation\n```bash\nhatch run docs:build\nhatch run docs:serve  # View at http://localhost:8000\n```\n\n## Limitations\n\nWhile there may be many custom types of sequence patterns that could be considered a valid pipeline format, this library has\ntaken an opinionated stance on acceptable sequence formats. This is done to keep parsing rules manageable and to not\nover-complicate the logic. The parsing rules can and have been expanded in some ways over time, such as adding support\nfor new padding format patterns like printf \"%04d\", houdini \"$F\" and \"\\\u003cUDIM\u003e\". But other rules remain the same, such as expecting\na frame number component to be found just before the file extension component.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustinfx%2Ffileseq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustinfx%2Ffileseq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustinfx%2Ffileseq/lists"}